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

Done Test SQL blank

Uploaded by

Rynex Foilet
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)
5 views

Done Test SQL blank

Uploaded by

Rynex Foilet
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/ 4

1. What is returned by INSTR ('FREEONLINETEST', 'S')?

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

3. The SQL keyword BETWEEN is used for which query


A) to limit the columns displayed.
B) for ranges x
C) as a wildcard.
D) None of these above

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

6. Which of the following is true about the HAVING clause?


A) Similar to WHERE clause but is used for groups rather than rows. x
B) Similar to WHERE clause but is used for rows rather than columns.
C) Similar to the WHERE clause but is used for columns rather than groups.
D) None of the above

7. The result of a SQL SELECT statement is a ________ .


A) Report
B) Table x
C) Blob
D) File

8. The HAVING clause does which of the following?


A) Acts like a WHERE clause.
B) Acts like a WHERE clause but is used for columns rather than groups.
C) Acts like a WHERE clause but is used for groups rather than rows. 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

11. Which statement is true regarding routines and triggers?


A) Both run automatically.
B) Both are stored in the database.
C) Both consist of procedural code. x
D) Both have to be called to operate.

12. A sequence in SQL can generate a maximum number


A) 38 digits
B) 42 digits
C) 48 digits
D) 64 digits x

13. What the SQL WHERE clause


A) limits the row data are fetched x
B) limits the column data that are fetched.
C) Both A and B are correct.
D) Neither A nor B are correct
14. Which operator is used to compare the NULL values in Sql?
A) Equal to
B) IN
C) IS x
D) W None of the above

15. The wildcard in a WHERE clause is useful when?


A) An exact match is necessary in a SELECT statement
B) An exact match is not possible in a SELECT statement x
C) An exact match is necessary in a CREATE statement
D) An exact match is not possible in a CREATE statement

16. Which below option is not a type of index?


A) Unique Index.
B) Clustered Index
C) NonClustered Index
D) FULLTEXT Index x

17. Which below option is not a scalar function?


A) UCASE()
B) UCASE()
C) MID() x
D) MIN()

18. Which below option is not a Aggregate function?


A) AVG()
B) ROUND() x
C) SUM()
D) FIRST()

19. OLTP stands for ____?


A) Online Translating Processing
B) Optimum Transaction Processing
C) Online Transaction Processing x
D) None of the above

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

You might also like