0% found this document useful (0 votes)
10 views

Holiday Assignment For Class 12 Question

Uploaded by

vittroshni
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Holiday Assignment For Class 12 Question

Uploaded by

vittroshni
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

THE INDIAN COMMUNITY SCHOOL KUWAIT

CLASS XII IT(802)


Q1)

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.

Q2)Give example of DDL and DML commands in sql

Q3)What do you mean by degree and cardinality of a table?

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

(i) To display Accountno, Name and DateOfopen of account holders having


transactions more than 8.
(ii) To display all information of account holders whose transaction value is not
mentioned.
(iii) To add another column Address with datatype and size as VARCHAR(25).

(v) SELECT COUNT (*) FROM SBOP;

(vi) SELECT Name, Balance FROM SBOP WHERE Name LIKE “%i”;

(vii) SELECT ROUND (Balance,-3) FROM SBOP

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)

(v) SELECT Pname FROM SHOPEE WHERE Pname IN (‘Jam’, ‘Coffee’);


(vi) SELECT COUNT(DISTINCT City) FROM SHOPEE;

(vii) SELECT MAX(Qty) FROM SHOPEE WHERE City = ‘Mumbai’

6)What is the purpose of constructor?

7)Explain about exception handling in detail

8)Explain about array and binary search.

9)What do you mean by wrapper class?

10)Explain different Data types in Java?

You might also like