Good morning,
I have a table that records all electronic signatures. The structure looks like this:
trt_plan_id client_id page_name seq emp_id
----------- --------- --------- --- ------
121706 1111 test 1 9999
121706 1111 test 2 8888
121706 1111 test 3 7777
121706 1111 test 4 0
121706 1111 test 5 0
121706 1111 test_2 1 9999
121706 1111 test_2 2 8888
121706 1111 test_2 3 7777
121706 1111 test_2 4 0
121706 1111 test_2 5 0
The are five signature lines on each of the pages and the emp_id is the person who electronically signed each one.
What I need to do is this:
trt_plan_id client_id page_name 1 2 3 4 5
----------- --------- --------- ---- ---- ---- ---- ----
121706 1111 test 9999 8888 7777 0 0
121706 1111 test_2 9999 8888 7777 0 0
If possible, I would prefer to use a view to do this.
Regards,
William Chadbourne
Oracle DBA
I have a table that records all electronic signatures. The structure looks like this:
trt_plan_id client_id page_name seq emp_id
----------- --------- --------- --- ------
121706 1111 test 1 9999
121706 1111 test 2 8888
121706 1111 test 3 7777
121706 1111 test 4 0
121706 1111 test 5 0
121706 1111 test_2 1 9999
121706 1111 test_2 2 8888
121706 1111 test_2 3 7777
121706 1111 test_2 4 0
121706 1111 test_2 5 0
The are five signature lines on each of the pages and the emp_id is the person who electronically signed each one.
What I need to do is this:
trt_plan_id client_id page_name 1 2 3 4 5
----------- --------- --------- ---- ---- ---- ---- ----
121706 1111 test 9999 8888 7777 0 0
121706 1111 test_2 9999 8888 7777 0 0
If possible, I would prefer to use a view to do this.
Regards,
William Chadbourne
Oracle DBA