![]() |
|
Archives of the TeradataForumMessage Posted: Wed, 30 Mar 2011 @ 19:58:54 GMT
Hi, Is there a way that I can use Array or other methods to achieve the Result from the Sample table? Ib m trying to avoiding using Case statement. Any help would be much appreciated. Hui Sample table
Rec_# Dpt_ID Dpt_Name Count
1 1 Computer 1
2 1 Computer 1
3 2 Accounting 1
4 3 Math 1
Result
Dpt_Name Computer Accounting Math
Count 2 1 1
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||