Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Select all rows and columns from the hospital _ basic table. 2 ) Select all the rows and columns from hospital _ basic where the
Select all rows and columns from the hospitalbasic table.
Select all the rows and columns from hospitalbasic where the Physician is not Molly Clock. rows
Select all rows and columns where the patient is Cary Richard from the hospitalbasic table. rows
Select all the rows and columns where the patients name begins with C from the hospitalbasic table. rows
Select all distinct rows and only the Name and Address columns from the hospitalbasic table order by patient name. rows
Select all rows and show only the procedure, patient, physician and nurse columns, where the nurse is NULL in the hospitalbasic table. rows
Select all rows and columns from hospitalbasic where the patient is Cary Richard, and the surgeon is Todd Quinlan. rows
Select all the rows and columns from hospitalbasic where the ID is between and inclusive and the patient is not Cary Richard. rows
Select all rows from the hospitalbasic table where the procedure is either Complete Walletectomy or Reversible Cryobobulation. Show only the procedure, name, and physician columns. rows
Select all distinct rows and only the physician and procedure columns from the hospitalbasic table where the name of the procedure ends with ectomy Order by physician. rows
Select all rows and only the physician, procedure, and date of procedure columns from the hospitalbasic table where Molly Clock is the physician. Limit the results by showing only the record with the latest date from date of procedure. row
Part
Introduction Follow the instructions to insert, update and delete data from the hospitalbasic table. Complete the questions in order.
Notes:
You will need to turn off Update Safe mode in your Preferences. Go to Edit Preferences SQL Editor and uncheck Safe Updates
Column names may be omitted as long as the VALUES clause lists all column values in the same order as the table's columns.
Any number of rows may be added with a single INSERT statement.
Omitting the WHERE clause in a DELETE statement results in all rows in the table being deleted
Include all screenshots of each step in a single word document. Screenshots should include executed statements and output.Make sure to include screenshots or code of each step you complete to answer the questions
Steps:
Insert the following data into the hospitalbasic table. Display all data from the table using a SELECT statement.
Antoinette Peterson lives at Pancakes Street. She arrived on and got a DragonTeeth Replacement by Carlton McCclure on in Room Antoinette stayed for two days. Her phone number on file is
Angelica Sutton lives at Waffle Rd She arrived on and received a Psychicnuclear Robotectomy performed by Clara Booth on in Room Angelica stayed in the hospital for days and did not provide a phone number.
UPDATE the following data in the table. Display all data from the table using a SELECT statement.
UPDATE the name of the procedure Reverse Rhinopodoplasty to Forward Rhinopodoplasty II rows
UPDATE the physician Elliot Reid to Elliot Dudemeister rows
UPDATE the cost of the Follicular Demiectomy procedure to $ rows
UPDATE all rooms on the th floor xx to NULL rows
b You will notice for some records in your hospitalbasic table there is a NULL value for the Assisting Nurse. The NULL value represents Nurse Thomas Jones: A Nurse who was mistakenly deleted from the database. UPDATE the hospitalbasic table so the NULL values are replaced with Thomas Jones.
DELETE the following data.
DELETE all records from thehospitalbasic database where the patient was Albert Coffey rows
DELETE all records from thehospitalbasic database where the address contains the keyword Street rows
DELETE all records from the hospitalbasic database where the patients phone number ends in and the cost is less than rows
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started