PRACTICAL ans(24-25)
PRACTICAL ans(24-25)
a) To display the C_ID, Supplier name, Supplier Address, Consumer Name and
Consumer Address for every Consumer.
select c_id,suppliername,supplieraddress,cname,caddress from supplier
s,consumer cwhere s.supplierid=c.supplierid.
b) To display Consumer details in ascending order of CName
Select * from consumer orderby cname;
c) To display number of Consumers from each city.
Select count(*),Ccity from consumer groupby Ccity;
d)To display number of supplier name for each city whose count is greater than one.
Select count(*),suppliercity from supplier groupby suppliercity having count(*)>1;
Q3. Practical Record (Report File) [7]
Q4. Project file [8]
Q5. Viva Voce [3]
SSCE COMPUTER SCIENCE
PRACTICAL EXAMINATION 2024-2025
SET B
a) To display fname, cname, fees from faculty and courses for the faculty whose
salary is more than 8000.
Select Fname,Cname from Faculty F,Courses C where F.F_ID=C.F_ID
and F.salary >8000;
b) To display the Fname, Lname whose Hiring date is more than 01-01-2000.
Select Fname,Lname from Faculty where Hire_date> “2000-01-01”;
c) To display Fname whose first letter starts with “R”.
Select Fname from faculty where Fname like “R%”.
d) Select COUNT(DISTINCT F_ID) from COURSES;
Count(distinct F_ID)
4
a) Display name of all doctors who are in “ORTHOPEDIC” having more than 10
years of experience from the table DOCTOR.
Select name from doctor where dept= „orthopedic „and experience>10;
b) Display the average salary of all doctors working in “ENT” department (using
both tables) where salary=basic+Allowance.
Select avg(basic+Allowance) from doctor D,salary S where D.id=S.id and
dept=‟ENT‟;
c) Display the minimum allowance of all female doctors.
Select min(Allowance) from doctor D,salary S where D.id=S.id and sex=‟F‟;
d) Display the highest consultation fee of all doctors departmentwise.
Select max(consultation),dept from doctor D,salary S where D.id=S.id
groupby dept;