Query to select all records with "bar" in their name?
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
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 Quizizz
7 questions
SQL basic query

Quiz
•
University
10 questions
Introdução às Consultas SQL

Quiz
•
12th Grade - University
10 questions
Modul 8

Quiz
•
University
10 questions
BD 2.1

Quiz
•
3rd Grade - University
10 questions
AL7KAMC

Quiz
•
KG - University
10 questions
Spreadsheets

Quiz
•
KG - University
10 questions
Sql Set 2

Quiz
•
University
14 questions
SQL - DEBUTANT

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade