DBMS
DBMS
2. Which of the following is the correct order of keywords for SQL SELECT statements?
C.WHERE, FROM,SELECT
D.SELECT,WHERE,FROM
Answer: Option A
3. Which of the following are the five built-in functions provided by SQL?
Answer: OptionA
Answer: Option B
A.for ranges.
C.as a wildcard.
Answer: Option A
A.SORT BY
B.ALIGN BY
C.ORDER BY
D GROUP BY
Answer: Option C
8. Which of the following do you need to consider when you make a table in SQL?
A.Data types
B.Primary keys
C.Default values
D.All of the above.
Answer: Option D
9. Every time attribute A appears, it is matched with the same value of attribute B, but not the same
value of attribute C. Therefore, it is true that:
A . A → B.
B. A → C.
C. A → (B,C).
D. (B,C) → A.
Answer: Option A
A.record.
B.relation.
C.column.
D.field.
Answer: Option A
11. In the relational model, relationships between relations or tables are created by using:
A.composite keys.
B.determinants.
C.candidate keys.
D.foreign keys.
Answer: Option D
12. In SQL, what is the difference between CHAR and VARCHAR data types?
C. No difference
Answer B
A.ALTER TABLE
B.DROP COLUMN
C.DateOfBirth
D.date
Answer D
15. In the query "SELECT Name FROM Employees WHERE Age > 30 AND Department = 'HR';",
A.All Correct
Answer A
ROLLBACK;
A. Performs an undo operation on the delete operation.
A.Select the top 5 entries for all the columns in the students' table.
B.Select all the entries from the students' table other than the top 5 entries
C.Selects all entries from the student table except 5 random rows
Answer A
A.DDL
B.DML
C. HTML
D.XML
Answer: Option B
19. Which forms have a relation that contains information about a single entity?
a) 4NF
b) 2NF
c) 5NF
d) 3NF
Answer: D
Answer: A
Answer: B
Answer: D
Answer: d
Answer: B
25. SELECT name ____ instructor name, course id
FROM instructor, teaches
WHERE instructor.ID= teaches.ID;
Which keyword must be used here to rename the field name?
a) From
b) Rename
c) As
d) Join
Answer: C
Answer: D
Answer: B
Answer: B
Answer: B
30. The union operation automatically __________ unlike the select clause.
a) Adds tuples
b) Eliminates unique tuples
c) Adds common tuples
d) Eliminates duplicate
Answer: d