Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
arkiboys
Master Smack Fu Yak Hacker
1433 Posts |
Posted - 2012-01-18 : 05:03:24
|
Hi,There is a table tblMain with fields such as:...[FieldName] [varchar](50) NOT NULL,[Operator] [varchar](6) NOT NULL,[Value] [varchar](50) NOT NULLcode FieldName Operator Value---------------------------------------------xyz Currency = GBPUIT Age > 12YPI Currency IN USD, JPY, XXXDSA Monitor NOT IN Toshiba, SamsungQuestion:How can the sql be built to execute the query based on the data above?i.e.for say, code DSA, I would like to execute the following query:select * from tblData where Monitor not in ('Toshiba', 'Samsung')Thanks |
|
X002548
Not Just a Number
15586 Posts |
|
arkiboys
Master Smack Fu Yak Hacker
1433 Posts |
Posted - 2012-01-19 : 08:01:22
|
Thanks |
 |
|
|
|
|