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 |
|
tariq2
Posting Yak Master
125 Posts |
Posted - 2010-08-31 : 11:27:18
|
| Hi, Im trying this query to find whats in one list and not the other:Query:select distinct periodkey from A_AOT group by periodkey having count(periodkey) >1 order by PeriodKey[NOT] in select distinct periodkey from A_AOT group by periodkey having count(periodkey) >0 order by PeriodKeyResponse:Incorrect Syntax near 'NOT'Many thanks |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2010-08-31 : 12:14:08
|
What do want to achieve when you are coding "having count(periodkey) >0"?Can you explain what the problem is?To solve the Syntax Error isn't enough to solve your problem. No, you're never too old to Yak'n'Roll if you're too young to die. |
 |
|
|
|
|
|