Question: Can someone please explain how to do these SQL questions? w Writer Home Insert Page Layout References Review View Section Cloud Sign in - X
Can someone please explain how to do these SQL questions?


w Writer Home Insert Page Layout References Review View Section Cloud Sign in - X do Cut Calibri (Body) 12 At A" A Tt AaBbCCD A 41 4 Paste Copy Format B I U . AB * X X2 A - ay - A - A E List Pa. New Style Find and Select Settings Painter Replace W WPS Cloud X Assignment 7(1).docx X + Share Q Find features Assignment 7 Directions: Use SQL Server to create the following queries. Save the queries in as Assignment7.sql. Page | 1 The grading criteria is located in the Assignment 7 box. Use the Sports database for this assignment. E 1. Create a view named PATIENT_SMALL_BALANCE. It consists of the patient number, last name, first name, and zip code for every patient that has a balance less than $1000.00. 2. Create the command using the PATIENT_SMALL_BALANCE VIEW to retrieve the patient last name, zip code and balance where the zip code is in 72379, 72381 and 72512. 3. Create view named THERAPIST_THERAPIES that returns Therapist ID, last name, first name, zip code, therapy code, and description of the therapy. You will need to join three tables, Therapist, Session and Therapies. 4. Create a query on that lists all the records from the THERAPIST_THERAPIES view where the Therapist ID is 'JR085'. 14 Page Num: 1 Page: 1/1 Section: 1/1 SetValue: 3.2in | Row: 9 Column: 81 | Words: 253 |= Spell Check 110% - Type here to search O w m M 9:59 AM 90OF X calls 7/31/2021w Writer Home Insert Page Layout References Review View Section Cloud Sign in - X do Cut Calibri (Body) 12 At A" A It AaBbCCD A A - ay . A . A E List Pa. 41 Paste Copy Format B I U - AB * X X2 New Style Find and Select Settings Painter Replace W WPS Cloud X Assignment 7(1).docx X + Share Q Find features 5. Write but do not execute a command to give John permission to retrieve data from the Patient table. 6. Create a query that allows Sally and Mary the permission to add new Therapies to the Therapies Tables. 7. Users John, Sally and Mary must be able to update the balance in the Patients table. Create a query that gives them permissions. 8. Create an Index on the Session Date field of the Sessions table. 9. Create query to add a foreign key constraint to the PatientNum field in the Sessions Table. 10. Create a query to add a check constraint to the UnitOfTime field in the Therapies table. The UnitOfTime is between 0 and 35. Page Num: 1 Page: 1/1 Section: 1/1 SetValue: 3.2in | Row: 9 Column: 81 | Words: 253 |= Spell Check 110% - + Type here to search O W m M 9:59 AM 90OF X 7/31/2021vSphere - 2630_Student2 - Sumn X 5 2630_Student2 X + X C D A infoadc.mccinfo.net/ui/webconsole.html?vmld=vm-27693Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
