Holiday Assignment For Class 12 Question
Holiday Assignment For Class 12 Question
a)Write a query to create following table in SQL.Also insert all the records in
table students.
b)To display the records from table STUDENT in alphabetical order as per the
name of the student.
c) To display the Class,DOB and City of studentswhose marks are between 450
and 551.
d) To display class and total number of students who have scored more than 450
marks.
Q4)Consider the following table named SBOP with details of account holders.
Write commands of MySql for (i) to (iii) and output for (v) to (vii).
TABLE SBOP
(vi) SELECT Name, Balance FROM SBOP WHERE Name LIKE “%i”;
WHERE Accountno="SB-5” ;
Q5) Consider the table SHOPEE given below. Write commands in MySQL for
(i) to (iv) and output for (v) to (vii).
TABLE SHOPEE
(i) To display names of the product, whose name starts with ‘C’ in ascending
order of Price.
(ii) To display code, product name and City of the products whose quantity is
less than 100.
(iii) To count distinct Company in the table.
(iv) To insert a new row in the table SHOPEE.
110, ‘Pizza’, ‘Papa Jones’, 120, ‘Kolkata’, 50.00 (All India 2012)