Home Forums SQL Server 2008 T-SQL (SS2K8) T-SQl help... RE: T-SQl help...
etirem
SSCommitted
Points: 1655
More actions
September 21, 2013 at 1:43 pm
#1652151
The Groups are created based on CDate and Dept.
For the CID, the CDate is in ASC order and if Dept=C and the next row is Dept=C...and next row is also Dept=C is a Group. This means if Dept=C value comes one after the other it is a Group.