HiI have this table...CREATE TABLE [dbo].[Cards]( [ID] [int] IDENTITY(1,1) NOT NULL, [CardO] [nvarchar](255) NULL, [DateAdded] [datetime] NULL
That have data like thisINSERT INTO Cards (CardO, DateAdded) VALUES ('0', '2011-01-01')INSERT INTO Cards (CardO, DateAdded) VALUES ('145', '2011-04-21')INSERT INTO Cards (CardO, DateAdded) VALUES ('78', '2011-03-03')INSERT INTO Cards (CardO, DateAdded) VALUES ('0', '2011-05-08')INSERT INTO Cards (CardO, DateAdded) VALUES ('0', '2011-05-08')
I want to count the number of CardO that have values = 0 and also count CardO that have values different from 0, so I get a result like this...NumberofCardOZero = 3NumberofCardONotZero = 2How would I do that?