Practical List Term 2 Class 12 CS
Practical List Term 2 Class 12 CS
I. Display product name and brand name from the tables PRODUCT and BRAND.
II. Display the average rating of Medimix and Dove brands
III. Display the name, price, and rating of products in descending order of rating.
Q20 .Write the outputs of the SQL queries (i) to (iv) based on the relations Teacher and Placement
given below:
Q21. Consider two tables, Orders (OrderID, CustomerID, OrderAmount) and Customers
(CustomerID, CustomerName). Write a query to show each CustomerName and their total
OrderAmount, but only include customers whose total OrderAmount is above $2,000.
Q22. Given two tables, Sales (SalesPersonID, ProductID, SaleAmount) and Products (ProductID,
Category, Price), write a query to find each Category and the total SaleAmount generated, but only
include categories with total sales over $10,000.
Mr. SURYA PRATAP SINGH
Q23 Write queries (a) to (d) based on the tables EMPLOYEE and DEPARTMENT given below: