Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Plzzz hellp me !!!! Plzzz Database ! I want two Query Implementation ... Here gi

ID: 3712589 • Letter: P

Question

Plzzz hellp me !!!! Plzzz

Database !

I want two Query Implementation ...

Here give out the SQL views and queries. For each one; write the view/query statement that you selected then write its SQL solution.

1- Retrieve the names of companies who haven't manufactured any drugs. (This is an Example)

SELECT   Cname

FROM       Company

WHERE   NOT EXISTS ( SELECT *

               FROM Drug

                  WHERE Cname=PCname);

You have to create two views and eight queries. Choose them from the list then indicate their implementation and results. Note: The values on the blue color can be change according to the entered data

Explanation / Answer

1)

Find all Volunteers who do not have any skills.

SELECT Volunteers
FROM Volunteer
WHERE skill IS NULL;

2)

List all Patients who are also Volunteers at the Hospital.

SELECT   pname

FROM       person

WHERE EXISTS ( SELECT pname

               FROM patient

&&

SELECT vname

               FROM volunteer);

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote