SQL set 1

SQL set 1

University

10 Qs

quiz-placeholder

Similar activities

SQL - DEBUTANT

SQL - DEBUTANT

University

14 Qs

JSP

JSP

University

10 Qs

Games Materi

Games Materi

University

10 Qs

Modul 8

Modul 8

University

10 Qs

BD 2.1

BD 2.1

3rd Grade - University

10 Qs

AL7KAMC

AL7KAMC

KG - University

10 Qs

Sql Set 2

Sql Set 2

University

10 Qs

BAnDS Tournament Round 3

BAnDS Tournament Round 3

University - Professional Development

10 Qs

SQL set 1

SQL set 1

Assessment

Quiz

Other

University

Medium

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?