0% found this document useful (0 votes)
14 views3 pages

Worksheet 18 Answers

Uploaded by

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

Worksheet 18 Answers

Uploaded by

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

IP /CS - My SQL Worksheet-18

Question Bank
Answers
https://unacademy.com/@LovejeetArora
Chalo Sath Mil Kar kre Shuru….
1) The now()function in MySql is an example of .

a. Math function
b. Text function
c. Date Function
d. Aggregate Function
Ans:- c. Date Function

2) The command can be used to makes changes in the


structure of a table in SQL.
Ans:- ALTER

3) Write the SQL command that will display the time and date at which
the
command got executed.
Ans: SELECT NOW();

4) In SQL NULL value means :


(i) 0 value (ii) 1 value (iii) None value (iv) None of the
above
Ans:- iii) None value

5) Find the output of SQL Query:-


SELECT MOD(11, 3);
Ans:- 2

6) The MAX() function in MySql is an example of


___________________.
a. Math function
b. Text function
c. Date Function
d. Aggregate Function
Ans:- d. Aggregate Function

7) Write the output of the following SQL command.


select round(314.82,-1);
a. 314.0 b. 310.0 c. 314.8 d. 300.0
Ans:- d. 300

8) What will be the output of the following SQL command:


SELECT LTRIM(“ RAJKUMAR “);
Ans:- “RAJKUMAR “
(Removes spaces from left side)
9) Write the output of the following SQL command.

select pow(2.37,3.45);
IP /CS - My SQL Worksheet-18
Question Bank
Answers
https://unacademy.com/@LovejeetArora
Chalo Sath Mil Kar kre Shuru….
a. 17.62

b. 19.62

c. 18.35

d. 15.82

Ans:- a. 19.62

10) Having clause is used with ____________________________function.

a. Math function

b. Text function

c. Date Function

d. Aggregate Function

Ans:- Aggregate Function

11) Write the output of the query:

select instr('Toolbarbar','bar');

Ans:- 5

12) alter() function in MySql is part of ___________________

a. DDL command
b. DML Command
c. TCL command

Ans a. DDL Command

1 mark for the correct answer

13) The ____________command can be used to arrange data in some order in a table in SQL.
IP /CS - My SQL Worksheet-18
Question Bank
Answers
https://unacademy.com/@LovejeetArora
Chalo Sath Mil Kar kre Shuru….
Ans:- ORDER BY

14) Write the name of the clause used with SELECT command to search for a specific pattern in the
strings.

Ans:- LIKE

You might also like