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?
- UPDATE
- INSERT
- DELETE
- SELECT (correct)
Which SQL clause is used to filter data based on specified conditions?
Which SQL clause is used to filter data based on specified conditions?
- GROUP BY
- ORDER BY
- WHERE (correct)
- HAVING
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?
- SELECT, FROM, WHERE (correct)
- FROM, WHERE, SELECT
- WHERE, FROM, SELECT
- SELECT, WHERE, FROM
The command to eliminate the table from a database is _____.
The command to eliminate the table from a database is _____.
What is the difference between the DELETE and DROP commands?
What is the difference between the DELETE and DROP commands?
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?
What is the difference between the CREATE DATABASE and CREATE TABLE commands?
What is the difference between the CREATE DATABASE and CREATE TABLE commands?
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
What happens when you omit the WHERE clause in a DELETE statement?
What happens when you omit the WHERE clause in a DELETE statement?
Which of the following is a valid SQL type?
Which of the following is a valid SQL type?
What is the output of the following SQL statement?
SELECT * FROM employees;
What is the output of the following SQL statement?
SELECT * FROM employees;
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
What will the following SQL do?
DROP DATABASE mydb;
What will the following SQL do?
DROP DATABASE mydb;
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”.
Which of the following statement is TRUE about SQL?
Which of the following statement is TRUE about SQL?
How do DML commands differ from DDL commands in SQL?
How do DML commands differ from DDL commands in SQL?
Which SQL statement is used to insert data into a table?
Which SQL statement is used to insert data into a table?
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?
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”.
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
- What is the output of the following SQL statement?
SELECT * FROM student;
- What is the output of the following SQL statement?
SELECT * FROM student;
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?
Which of the following is NOT a valid SQL type?
Which of the following is NOT a valid SQL type?
How does SQL update records in a database?
How does SQL update records in a database?
Flashcards are hidden until you start studying