My table contains only 6 records. What I would like to do is combine (group) rows #1 and #2 into one line with the column Setups returned as a 2 instead of a 1. Only returning 5 rows of results, but I am having problems doing this. This is my query:
Select (convert(char(10), Setup, 101)) as Dates, Count(Setup) as Setups, Line from ttable_setups group by line, setup
These are the results:
Dates Setups Line
1 12/11/2008 1 456
2 12/11/2008 1 456
3 12/11/2008 1 451
4 12/12/2008 1 455
5 12/13/2008 1 454
6 12/14/2008 1 456
Please help if you can, I am frustrated and confused. Thank you so much.
Select (convert(char(10), Setup, 101)) as Dates, Count(Setup) as Setups, Line from ttable_setups group by line, setup
These are the results:
Dates Setups Line
1 12/11/2008 1 456
2 12/11/2008 1 456
3 12/11/2008 1 451
4 12/12/2008 1 455
5 12/13/2008 1 454
6 12/14/2008 1 456
Please help if you can, I am frustrated and confused. Thank you so much.