Podcast
Questions and Answers
Which SQL statement is used to retrieve data from a database?
Which SQL statement is used to retrieve data from a database?
Which SQL clause is used to filter data based on specified conditions?
Which SQL clause is used to filter data based on specified conditions?
Which of the following is the CORRECT order of keywords for SQL SELECT statements?
Which of the following is the CORRECT order of keywords for SQL SELECT statements?
The command to eliminate the table from a database is _____.
The command to eliminate the table from a database is _____.
Signup and view all the answers
What is the difference between the DELETE and DROP commands?
What is the difference between the DELETE and DROP commands?
Signup and view all the answers
DELETE FROM Customer
WHERE State =’Negeri Sembilan’;
.
What does the following SQL statement do?
DELETE FROM Customer WHERE State =’Negeri Sembilan’; .
What does the following SQL statement do?
Signup and view all the answers
What is the difference between the CREATE DATABASE and CREATE TABLE commands?
What is the difference between the CREATE DATABASE and CREATE TABLE commands?
Signup and view all the answers
SQL can be used to:
i. Create database structures
ii. Query database data
iii. Modify database data
SQL can be used to:
i. Create database structures ii. Query database data iii. Modify database data
Signup and view all the answers
What happens when you omit the WHERE clause in a DELETE statement?
What happens when you omit the WHERE clause in a DELETE statement?
Signup and view all the answers
Which of the following is a valid SQL type?
Which of the following is a valid SQL type?
Signup and view all the answers
What is the output of the following SQL statement?
SELECT * FROM employees;
What is the output of the following SQL statement?
SELECT * FROM employees;
Signup and view all the answers
Which are Data Manipulation Language (DML) statements?
i. SELECT
ii. ALTER
iii. DROP
iv. DELETE
Which are Data Manipulation Language (DML) statements?
i. SELECT ii. ALTER iii. DROP iv. DELETE
Signup and view all the answers
What will the following SQL do?
DROP DATABASE mydb;
What will the following SQL do?
DROP DATABASE mydb;
Signup and view all the answers
In UPDATE statement, choose the correct answer to update firstname= Mary to firstname = Marry from a table named “staff”.
In UPDATE statement, choose the correct answer to update firstname= Mary to firstname = Marry from a table named “staff”.
Signup and view all the answers
Which of the following statement is TRUE about SQL?
Which of the following statement is TRUE about SQL?
Signup and view all the answers
How do DML commands differ from DDL commands in SQL?
How do DML commands differ from DDL commands in SQL?
Signup and view all the answers
Which SQL statement is used to insert data into a table?
Which SQL statement is used to insert data into a table?
Signup and view all the answers
Which SQL statement is used to remove rows of data from the database table?
Which SQL statement is used to remove rows of data from the database table?
Signup and view all the answers
In UPDATE statement, choose the correct answer to update firstname= Jamy to firstname = Jammy from a table named “staff”.
In UPDATE statement, choose the correct answer to update firstname= Jamy to firstname = Jammy from a table named “staff”.
Signup and view all the answers
Which are Data Definition Language (DDL) statements?
i. SELECT
ii. ALTER
iii. DROP
iv. DELETE
Which are Data Definition Language (DDL) statements?
i. SELECT ii. ALTER iii. DROP iv. DELETE
Signup and view all the answers
- What is the output of the following SQL statement?
SELECT * FROM student;
- What is the output of the following SQL statement?
SELECT * FROM student;
Signup and view all the answers
Which language is commonly used to query and manipulate data in a relational database?
Which language is commonly used to query and manipulate data in a relational database?
Signup and view all the answers
Which of the following is NOT a valid SQL type?
Which of the following is NOT a valid SQL type?
Signup and view all the answers
How does SQL update records in a database?
How does SQL update records in a database?
Signup and view all the answers