can you just implement these queries given down below and give output CNIC Name Contact Dose1 Center Dose2 Center XXXXXXXXXX Nasir XXXXXXXXXX Lachi Kohat 2 XXXXXXXXXX Shahab XXXXXXXXXX kohat 3 Dara...


can you just implement these queries given down below and give output





























CNIC




Name




Contact




Dose1 Center




Dose2 Center



22401-6645321-1



Nasir



3409991112



Lachi



Kohat 2



14301-6045321-5



Shahab



3409991112



kohat 3



Dara





Question


The subjects who have been vaccinated different types in Dose1 and Dose2. For instance, subjects who were vaccinated ‘Sinovac’ in the first dose, while Pfizer in the second dose.





Solution


SELECT CNIC, Name, Contact, Dose1 Center,Dose2 Center
FROM Vaccination
WHERE Dose1 Name <> (SELECT Dose2 Name FROM Vaccination);





Question


How many Viles of each type have been consumed so far.





Answer


SELECT Dose1 Name , COUNT(CNIC)
FROM Vaccination
GROUP BY Dose1 Name;





Qustion


Suggest the name of Incharge for thebest performance award based on the highest number of subjects vaccinated on a single day





Answer


SELECT name
FROM Vaccination
GROUP BY name
ORDER BY Count(Name) DESC
LIMIT 1;





Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here