i want to display the no of courses available in each dept Pls Help me
i want to print courses for each department pls help me This Is MyTable
Data Retrival from Two Tables
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Deepak TewatiaRank #143 · 15.9K reputationPosted Dec 18, 2022, 3:59 AM EST
Hi jaya,
use the following query to display the no. of courses available in each dept:-
SELECT department.did, COUNT(coursedept.cid) FROM coursedept JOIN department ON coursedept.did = department.did GROUP BY department.did;Deepak TewatiaRank #143 · 15.9K reputationPosted Dec 18, 2022, 11:30 AM EST
Hi Jaya Prakash,
To display instructor names who are teaching 'c' and 'c++' use the below query:-
SELECT P.fname,P.lname FROM Person P INNER JOIN Courseinstructor CI on P.pid = CI.pid INNER JOIN course C ON CI.cid = c.cid WHERE C.cName IN ('C', 'C++');Jaya PrakashRank #1,293 · 1.3K reputationPosted Dec 18, 2022, 11:22 AM EST
how to display instructor names who are teaching 'c' and 'c++' help me with this also bro