Morshed Chittagong
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Morshed Chittagong
-
-
On 8/27/2019 at 6:51 AM, CoolB said:
SELECT * FROM Customers
WHERE NOT Country='Germany' AND NOT Country='USA'and not country="Mexico";I am new to SQL and learning "where not" syntax. Wonder how can I make the above string shorter? or any other way this can be written? how do I use <> here?
SELECT * FROM Customers WHERE Country NOT IN ( 'Germany','USA','Mexico');
u can use NOT IN( ) operator.
Stored Procedure
in SQL
Posted
What do u mean by YOUR in your post? what you need is not clear on the post. pls elaborate.