Hello:
I have a table listing Project_ID, Project_Name, Project_Type and State.
For example (sorry if it loses alignment):
Project_ID Project_Name Project_Type State
01 Pillows Bedroom UT
02 TableCloth Kitchen HI
03 Cushion LivingRoom TX
04 Lantern Outdoor HI
05 Curtains Bedroom HI
06 SinkCover Kitchen HI
07 Mat LivingRoom UT
08 Pots Outdoor TX
...
I need to create output that will display a count of each Project_Type for each State.
For example (sorry if it loses alignment):
State Bedroom Kitchen LivingRoom Outdoor
===============================================================
UT 1 0 1 0
TX 0 0 1 1
HI 1 2 0 1
Can any one show me the way to write this? I believe my issue is probably in the GROUP BY.
Any advice is appreciated.
Thanks in advance!
I have a table listing Project_ID, Project_Name, Project_Type and State.
For example (sorry if it loses alignment):
Project_ID Project_Name Project_Type State
01 Pillows Bedroom UT
02 TableCloth Kitchen HI
03 Cushion LivingRoom TX
04 Lantern Outdoor HI
05 Curtains Bedroom HI
06 SinkCover Kitchen HI
07 Mat LivingRoom UT
08 Pots Outdoor TX
...
I need to create output that will display a count of each Project_Type for each State.
For example (sorry if it loses alignment):
State Bedroom Kitchen LivingRoom Outdoor
===============================================================
UT 1 0 1 0
TX 0 0 1 1
HI 1 2 0 1
Can any one show me the way to write this? I believe my issue is probably in the GROUP BY.
Any advice is appreciated.
Thanks in advance!