Viewing 3 posts - 16 through 18 (of 18 total)
try this:
select column1 from table1
except
select column1 from table2
this will give all the values in column1 in table1 that are not in cloumn1 of table2.
--Happy coding
June 8, 2015 at 1:20 pm
#1803796
Seems like you are using Rank() instead of Dense_Rank()
May 27, 2015 at 10:28 am
#1801012
i don't think you need to use the count function.
select t.id, SUM(type) from @t t
group by id
having SUM(type) = 0
May 27, 2015 at 10:19 am
#1801005