i have this sample data,
Code:
empno date A T U
00001 11/01/2003 S
00001 11/02/2003 10
00001 11/03/2003 F
00001 11/04/2003
00001 11/05/2003
.
.
.
00001 11/30/2003 34
00001 12/01/2003 45
00001 12/02/2003
00001 12/03/2003 S
00001 12/04/2003 X
00001 12/05/2003
.
.
.
00001 12/31/2003
00002 11/01/2003
00002 11/02/2003 10
00002 11/03/2003
00002 11/04/2003 40
00002 11/05/2003
.
.
.
00002 11/30/2003
00002 12/01/2003 S
00002 12/02/2003
00002 12/03/2003
00002 12/04/2003
00002 12/05/2003
.
.
.
00002 12/31/2003
how can i select all these records so that i can have this,
Code:
nov dec
empno day A T U A T U
00001 1 S 45
00001 2 10
00001 3 F
00001 4
00001 5
.
.
.
etc..
any help pls?