0% found this document useful (0 votes)
65 views2 pages

12 Int (I.P.)

Paper
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views2 pages

12 Int (I.P.)

Paper
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

COAST GUARD PUBLIC SCHOOL, DAMAN

Subject: Informatics Practices (Code-065)


Unit Test Class–XII Marks: 35

Q1) Answer the following question carries 1 marks.


a) NULL value means:
(i) 0 value (ii) 1 value (iii) None value (iv) None of the above
b) Write the output for the following SQL commands:
Select round(15.193 , -1);
c) The clause that is used to arrange the result of SQL command intogroups.
a. Order by b. Group in c. Groups by d. Group by
d) Predict the output of the following SQL queries :
SELECT UPPER (MID("start up india",10));
e) predict the output of the following queries:
select round(8.72,3);
f) predict the output of the following queries:
iselect round(9.8);
Q2) Answer the following question carries 2 marks.
a) Define a function. Explain different types of it.
b) Shewani has recently started working in MySQL. Help her in understanding the difference between the
following : Count(column_name) and count(*)
c) Predict the output of the following queries:
i. Select power(5,3); ii. Select mod(5,3);
d) Mr. Som, a HR Manager in a multinational company “Star-X world ”has created the following table
to store the records of employees: He has written following queries:

i) select max(year(DOB)) from emp;


ii) select substr(ENAME,2,3) from emp where month(DOJ)=11;
e) Give output of the following queries as per given table: Table: INTERIOR

Q3) Answer the following queries & output carries 3 marks.


I)
a. Write SQL query to print records in descending order of year of admission.
b. Write SQL query to display house and number of students in each house.
c. Write SQL query to display CLASS wise highest fees.

II) Shreya, a database administrator has designed a database for a clothing shop. Help her by writing
answers of the following questions based on the given table:

i. Write a query to display the lowest price of the cloths.


ii. Write a query to count total number of cloths purchased of medium size.
iii. Write a query to count year wise total number of cloths purchased.

III) Explain the Function with example:


i. instr( ) ii. Substr( ) iii. left( )

Q4) Write suitable SQL query for the following carries 5 marks.

I) Write suitable SQL query for the following:


i. Display 7 characters extracted from 7th left characteronwards from the string ‘INDIA SHINING’
ii. Display the position of occurrence of string ‘COME’ in the string ‘WELCOME WORLD’.
iii. Round off the value 23.78 to one decimal place.
iv. Display the remainder of 100 divided by 9.
v. Remove all the expected leading and trailing spaces from a column user id of the table ‘USERS’.

II) Write suitable SQL query for the following:


i. Display name of the Month from your date of birth.
ii. Convert email-id to lowercase.
iii. Count the number of characters in your name.
iv. To remove leading spaces from the ‘ VANDE BHARAT ‘.
v. Display the string ‘CHEST’ from the string ‘MANCHESTERUNITED’.

You might also like