SQL set 1

Quiz
•
Other
•
University
•
Medium
ESPARK 2023
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Query to select all records with "bar" in their name?
a)SELECT * FROM people WHERE name LIKE "%bar%";
b)SELECT * FROM people WHERE name = "%bar%";
c)SELECT * FROM people WHERE name = "_bar_"
d)SELECT * FROM people WHERE name IN ("bar");
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
SQL query used to fetch unique values from a field?
a)SELECT column_name FROM table_name WHERE COUNT(column_name) = 1;
b)SELECT UNIQUE column_name FROM table_name WHERE COUNT(column_name) = 1;
c)SELECT UNIQUE column_name FROM table_name;
d)SELECT DISTINCT column_name FROM table_name;
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
An SQL query to delete a data from the table and memory while keeping the structure of the table intact?
a)TRUNCATE TABLE table_name;
b)DELETE FROM TABLE table_name;
c)DROP TABLE table_name;
d)DROP FROM TABLE table_name;
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
The SQL WHERE clause:
a)limits the column data that are returned.
b)limits the row data are returned.
c)Both A and B are correct.
d)Neither A nor B are correct.
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following is the original purpose of SQL?
a)To specify the syntax and semantics of SQL data definition language
b)To specify the syntax and semantics of SQL manipulation language
c)To define the data structures
d)All of the above.
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
The command to eliminate a customer table from a database is:
a)REMOVE TABLE CUSTOMER;
b)DROP TABLE CUSTOMER;
c)DELETE TABLE CUSTOMER;
d)UPDATE TABLE CUSTOMER;
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following is the correct order of keywords for SQL SELECT statements?
a)SELECT, FROM, WHERE
b)FROM, WHERE, SELECT
c)WHERE, FROM,SELECT
d)SELECT,WHERE,FROM
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
SQL Quiz

Quiz
•
University
15 questions
dbms quiz kitsw

Quiz
•
University
10 questions
Banco de Dados Quiz

Quiz
•
University
10 questions
Sql Set 2

Quiz
•
University
14 questions
SQL - DEBUTANT

Quiz
•
University
12 questions
Ch 2 - Accessing Data - Part 1

Quiz
•
University
10 questions
Spreadsheets

Quiz
•
KG - University
8 questions
Base de Datos - SQL

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade