This computer science problem involves algorithmic thinking and programming concepts. The solution below explains the approach, logic, and implementation step by step.

ScanSolve AI Answer
Answer
C.Matricle
Step 1: Identify the tables needed.
To find doctors who prescribed a specific medication, we need information from the DOCTOR, CONSULTATION, and PRESCRIPTION tables. The PRESCRIPTION table links CONSULTATION (and thus DOCTOR) to MEDICATION via CodeSS.
Step 2: Join the tables.
We will join DOCTOR with CONSULTATION using Matricle, and CONSULTATION with PRESCRIPTION using ConsulNo.
Step 3: Filter by medication CodeSS.
We will filter the results where CodeSS in the PRESCRIPTION table matches 'MEBENDAZOL224'.
Step 4: Select distinct doctor names.
To avoid listing the same doctor multiple times if they prescribed the medication more than once, we use DISTINCT.
codeSS: MEBENDAZOL224 is:SELECT DISTINCT D.Name, D.Surname
FROM DOCTOR D
JOIN CONSULTATION C ON D.Matricle = C.Matricle
JOIN PRESCRIPTION P ON C.ConsulNo = P.ConsulNo
WHERE P.CodeSS = 'MEBENDAZOL224';
3 done, 2 left today. You're making progress.
Get instant step-by-step solutions to any question. Free to start.
Ask Your QuestionStill have questions?
Identify the tables needed. To find doctors who prescribed a specific medication, we need information from the DOCTOR, CONSULTATION, and PRESCRIPTION tables.
This computer science problem involves algorithmic thinking and programming concepts. The solution below explains the approach, logic, and implementation step by step.