Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
SQL Server 2008 - General
»
Select all usernames except few usernames
Select all usernames except few usernames
Rate Topic
Display Mode
Topic Options
Author
Message
jaype-365633
jaype-365633
Posted Sunday, February 14, 2010 10:06 PM
Grasshopper
Group: General Forum Members
Last Login: Yesterday @ 11:37 PM
Points: 17,
Visits: 107
Hi, i am having a table with usernames(Field is USERID), select * gives all usernames
but i need to take that except 2 or 3 usernames, please help me on the query
Thanks
Jprakash
Post #865361
krayknot
krayknot
Posted Sunday, February 14, 2010 10:16 PM
Old Hand
Group: General Forum Members
Last Login: Friday, October 07, 2011 1:41 AM
Points: 346,
Visits: 534
select * from <TABLE> where <cOLUMN> not in (nVALUES)
kshitij kumar
kshitij@krayknot.com
www.krayknot.com
Post #865363
jaype-365633
jaype-365633
Posted Sunday, February 14, 2010 11:11 PM
Grasshopper
Group: General Forum Members
Last Login: Yesterday @ 11:37 PM
Points: 17,
Visits: 107
Thanks a lot kshitij kumar it worked out well, can you please help on joining the tables with two or three databases
Post #865370
krayknot
krayknot
Posted Sunday, February 14, 2010 11:36 PM
Old Hand
Group: General Forum Members
Last Login: Friday, October 07, 2011 1:41 AM
Points: 346,
Visits: 534
jaype-365633 (2/14/2010)
Thanks a lot kshitij kumar it worked out well, can you please help on joining the tables with two or three databases
in LINQ or iin SQL??
kshitij kumar
kshitij@krayknot.com
www.krayknot.com
Post #865374
jaype-365633
jaype-365633
Posted Monday, February 15, 2010 1:02 AM
Grasshopper
Group: General Forum Members
Last Login: Yesterday @ 11:37 PM
Points: 17,
Visits: 107
in SQL-2008, all the databases are in same server
Post #865399
luckysql.kinda
luckysql.kinda
Posted Tuesday, February 16, 2010 1:51 AM
Old Hand
Group: General Forum Members
Last Login: Wednesday, April 24, 2013 11:19 AM
Points: 309,
Visits: 645
What is LINQ KrayKnot?
Post #865898
nigel.
nigel.
Posted Wednesday, February 17, 2010 2:27 AM
Ten Centuries
Group: General Forum Members
Last Login: Today @ 7:31 AM
Points: 1,163,
Visits: 2,601
luckysql.kinda (2/16/2010)
What is LINQ KrayKnot?
Click here
--
Nigel
Useful Links:
How to post data/code on a forum to get the best help
The "Numbers" or "Tally" Table - Jeff Moden
Post #866820
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.