Hi,
Can someone help me here.
I need to create a query that will convert my 2 or 3 line record output to one line when the ID is same.
ID...RecordCount..Name........Row.....Exception
1......1..........ABC..........10.......5
2......1..........DEF..........5........6
2......2..........DEF..........0........5
2......3..........DEF..........5........1
3......1..........GHI..........5........5
Required Output:
ID..RecordCount..Name........Row...Exception....Row....Exception...Row...Exception
1......1.........ABC.........10.......5.........NULL....NULL.......NULL....NULL
2......1.........DEF..........5.......6..........0.......5..........5........1
3......1.........GHI..........5........5.........NULL....NULL......NULL.....NULL
Can someone help me here.
I need to create a query that will convert my 2 or 3 line record output to one line when the ID is same.
ID...RecordCount..Name........Row.....Exception
1......1..........ABC..........10.......5
2......1..........DEF..........5........6
2......2..........DEF..........0........5
2......3..........DEF..........5........1
3......1..........GHI..........5........5
Required Output:
ID..RecordCount..Name........Row...Exception....Row....Exception...Row...Exception
1......1.........ABC.........10.......5.........NULL....NULL.......NULL....NULL
2......1.........DEF..........5.......6..........0.......5..........5........1
3......1.........GHI..........5........5.........NULL....NULL......NULL.....NULL