Done Test SQL blank
Done Test SQL blank
A) 10
B) 12 x
C) 1
D) 2
2. Which of the following query is correct for using comparison operators in SQL?
A) SELECT name,department FROM employee WHERE age>50 and <60;
B) SELECT name,department FROM employee WHERE age>50 and age<60; x
C) SELECT name,department FROM employee WHERE age>50 and WHERE age<60;
D) None of these
4. A command that lets you change one or more field in a table is:
A) INSERT
B) MODIFY x
C) LOOK-UP
D) All of the above
5. When three or more AND and OR conditions are combined, it is easier to use the SQL
keyword(s);
A) NOT IN only
B) Wildcard
C) Both IN and NOT IN x
D) None of the above
9. _________ command makes the updates performed by the transaction permanent in the
database?
A) ROLLBACK
B) TRUNCATE
C) COMMIT x
D) DELETE
10. Which type of JOIN is used to returns rows that do not have matching values?
A) Outer JOIN x
B) EQUI JOIN
C) Natural JOIN
D) LEFT JOIN
20. What is the command used to fetch first 5 characters of the string?
A) Select SUBSTRING(Name,1,5) as name from student x
B) Select SUBSTRING(Name,0,5) as name from student
C) Select name from student limit 1,5
D) None of the above