SQL Rev Class 12
SQL Rev Class 12
Which of the following SQL functions does not belong to the Math functions
category? (1)
GROUP BY DEPT;
Which of the following is a correct query to perform the given task? (1)
GROUP BY DEPT;
5 GROUP BY DEPT;
i. May
ii. March
iii. may
iv. march
i. Date
ii. Integer
iii. Year
iv. Month
i. select instr('[email protected]','.');
11.
(3)
12.
(8)
13. Write suitable SQL queries for the following: (5)
iv. To remove all the probable leading and trailing spaces from the
15. Name the suitable MySQL function(s) to remove leading, trailing and both type
of space characters from a string.Also give MySQL queries to depict the same. (2)
a. command that will display the month from current time and date
b. To display the name of the day eg, Friday or Sunday from your date of birth,
dob.
c. To display the starting position of your first name(fname) from your whole
name (name).
Write SQL queries using SQL functions to perform the following operations:
a) Display salesman name and bonus after rounding off to zero decimal places.
c) Display the four characters from salesman name starting from second
character.
e) Display the name of the weekday for the date of join of salesman
i) select power(instr('abcd412','1'),3);
18.
(5)