Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

STEP1: Create a new table for diagnostic patient who had complications. Named the table OVARIAN_COMP_SUM which has three attributes; PLCO_ID, study Yr, and med days

image text in transcribed
STEP1: Create a new table for diagnostic patient who had complications. Named the table OVARIAN_COMP_SUM which has three attributes; PLCO_ID, study Yr, and med days for all patients whose cancer type is Ovarian cancer, complication summary is direct surgical, complication code is Blood loss requiring transfusion for diagnostic patients. If the patient has multiple complications, take the first values. The OVARIAN_COMP_SUM table should have 93 rows. Use create table and bulk insert in one SQL statement to get full credit, otherwise half credit. [4] Show the program at the first red arrow. Show the first 10 rows at the second red arrow and the last 10 rows at the third red arrow by snipping them. STEP2: Add two new columns proc_days and SUM into the table OVARIAN_COMP_SUM [2] Show the PL/SQL statements at the fourth red arrow. STEP3: Write a PL/SQL program using cursor that reads from OVARIAN_DIAGNOSTIC table and updates values of proc_days. If the patient has multiple rows, take the first values, skip others [7]. Show the program at the fifth red arrow. Show the first 10 rows of the result at the sixth red arrow by snipping them. STEP4: Write a PL/SQL program using cursor that adds values of med days and proc days in a row and then saves them in a SUM column. [7] Show the program at the seventh red arrow. Show the first 10 rows at the eight red arrow and the last 10 rows at the nineth red arrow by snipping them

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning ASP.NET 4.5 Databases

Authors: Sandeep Chanda, Damien Foggon

3rd Edition

1430243805, 978-1430243809

More Books

Students also viewed these Databases questions

Question

What are the inputs to master scheduling? What are the outputs?

Answered: 1 week ago