Search Header Logo

SQL set 1

Authored by ESPARK 2023

Other

University

Used 4+ times

SQL set 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?