Which of the following is a valid SQL data type for a date and time? MCQ with Answer and Explanation

Which of the following is a valid SQL data type for a date and time?
A. DATE
B. TIMESTAMP
C. All of the above
D. DATETIME
Answer: Option C
Solution (By JKExamLibrary)
Different DBMS support DATETIME, TIMESTAMP, DATE, etc. All are valid date/time types.

This question belongs to: Computer Database Management System (DBMS)

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Database Management System (DBMS) Questions

Question #1 Report Error
What is the purpose of the SQL 'ORDER BY' clause?
A. To filter rows
B. To join tables
C. To group rows
D. To sort the result set

Correct Answer: Option D


Explanation:
ORDER BY sorts the query results in ascending or descending order based on specified columns.

This question belongs to: Computer Database Management System (DBMS)
Question #2 Report Error
What is the purpose of the SQL 'CONSTRAINT' keyword?
A. To create indexes
B. To create views
C. To join tables
D. To define rules for data integrity

Correct Answer: Option D


Explanation:
Constraints are used to enforce rules on data, such as NOT NULL, UNIQUE, PRIMARY KEY, FOREIGN KEY, and CHECK.

This question belongs to: Computer Database Management System (DBMS)
Question #3 Report Error
What does a database constraint called a 'CHECK' constraint do?
A. It verifies user authentication passwords.
B. It limits the range of values that can be placed in a column based on a specific condition.
C. It checks if the database server is running safely.
D. It automatically links tables together.

Correct Answer: Option B


Explanation:
A CHECK constraint enforces domain integrity by limiting the values accepted by a column to only those that satisfy a specified Boolean predicate.

This question belongs to: Computer Database Management System (DBMS)