adventurous1
Programmer
Hi...
I know there is a better way to do this but I dont know PL/SQL...
My table description is:
Record_Type varchar2(2)
Key_ID Number
Category Char(3)
Create_date_time Date
Hit_Num varchar2(8)
Insert_date varchar2(40)
Activity_code Varchar2(30)
The data is arranged like this:
Record Key_ID Category Create Hit_Num Insert Activity
Type Date Date Code
Time
AD 9998 SST 10/2/06 1220 1 10/2/06 PG1
AD 9998 SST 10/2/06 1221 2 10/2/06 PG2
AD 9998 SST 10/2/06 1226 3 10/2/06 APV
AD 9999 SST 10/2/06 1930 11 10/2/06 LINK
AD 9999 SST 10/2/06 1938 12 10/2/06 PG2
AD 9999 SST 10/2/06 1950 13 10/2/06 APV
AD 9999 SST 10/2/06 1950 14 10/2/06 LEAD
So, my question is, how can I generate summary records in this format:
Record Key_ID Create Date PG1 PG2 APV LINK LEAD
AD 9998 10/2/06 x x x
AD 9999 10/2/06 x x x x
Can anyone help me or teach me how to do this?
Thanks!!!
I know there is a better way to do this but I dont know PL/SQL...
My table description is:
Record_Type varchar2(2)
Key_ID Number
Category Char(3)
Create_date_time Date
Hit_Num varchar2(8)
Insert_date varchar2(40)
Activity_code Varchar2(30)
The data is arranged like this:
Record Key_ID Category Create Hit_Num Insert Activity
Type Date Date Code
Time
AD 9998 SST 10/2/06 1220 1 10/2/06 PG1
AD 9998 SST 10/2/06 1221 2 10/2/06 PG2
AD 9998 SST 10/2/06 1226 3 10/2/06 APV
AD 9999 SST 10/2/06 1930 11 10/2/06 LINK
AD 9999 SST 10/2/06 1938 12 10/2/06 PG2
AD 9999 SST 10/2/06 1950 13 10/2/06 APV
AD 9999 SST 10/2/06 1950 14 10/2/06 LEAD
So, my question is, how can I generate summary records in this format:
Record Key_ID Create Date PG1 PG2 APV LINK LEAD
AD 9998 10/2/06 x x x
AD 9999 10/2/06 x x x x
Can anyone help me or teach me how to do this?
Thanks!!!