Introduction to SQL Questions and Answers

Take Exam

Introduction to SQL Questions with Answers help you master the fundamentals of Structured Query Language used in database management. SQL knowledge is essential for data handling, queries, and relational database operations, making it a vital skill for technical interviews and placement exams like TCS, Accenture, and Infosys. These programming questions and answers cover SELECT, INSERT, JOIN, and normalization concepts. Practice online SQL tests or download SQL MCQ PDFs with solutions to build strong command over database queries and improve your interview readiness.

Introduction to SQL

Showing 10 of 34 questions

1.  You can add a row using SQL in a database with which of the following?

  • ADD
  • CREATE
  • INSERT
  • MAKE
Show Answer Report

2. The command to remove rows from a table 'CUSTOMER' is:

  • REMOVE FROM CUSTOMER ...
  • DROP FROM CUSTOMER ...
  • DELETE FROM CUSTOMER WHERE ...
  • UPDATE FROM CUSTOMER ...
Show Answer Report

3. The SQL WHERE clause:

  • limits the column data that are returned.
  • limits the row data are returned.
  • Both A and B are correct.
  • Neither A nor B are correct.
Show Answer Report

4. Which of the following is the original purpose of SQL?

  • To specify the syntax and semantics of SQL data definition language
  • To specify the syntax and semantics of SQL manipulation language
  • To define the data structures
  • All of the above.
Show Answer Report

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

  • An exact match is necessary in a SELECT statement.
  • An exact match is not possible in a SELECT statement.
  • An exact match is necessary in a CREATE statement.
  • An exact match is not possible in a CREATE statement.
Show Answer Report

6. A view is which of the following?

  • A virtual table that can be accessed via SQL commands
  • A virtual table that cannot be accessed via SQL commands
  • A base table that can be accessed via SQL commands
  • A base table that cannot be accessed via SQL commands
Show Answer Report

7. The command to eliminate a table from a database is:

  • REMOVE TABLE CUSTOMER;
  • DROP TABLE CUSTOMER;
  • DELETE TABLE CUSTOMER;
  • UPDATE TABLE CUSTOMER;
Show Answer Report

8. ON UPDATE CASCADE ensures which of the following?

  • Normalization
  • Data Integrity
  • Materialized Views
  • All of the above.
Show Answer Report

9. SQL data definition commands make up a(n) ________ .

  • DDL
  • DML
  • HTML
  • XML
Show Answer Report

10. Which of the following is valid SQL for an Index?

  • CREATE INDEX ID;
  • CHANGE INDEX ID;
  • ADD INDEX ID;
  • REMOVE INDEX ID;
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test