Question:

Amit wants to be familiar with SQL. One of his friends Anand suggests him to execute the following SQL commands:
(A) Create Table Student
(B) Use Database DB
(C) Select * from Student
(D) Insert into Student
In which order Amit needs to run the above commands?

Updated On: Nov 4, 2024
  • (A), (B), (C), (D)
  • (A), (B), (D), (C)
  • (B), (A), (D), (C)
  • (C), (B), (D), (A)
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

The correct sequence is to select the database first (USE DATABASE DB), then create the table, insert data, and finally retrieve data using SELECT.
Was this answer helpful?
0
0