SQL set 1

SQL set 1

University

10 Qs

quiz-placeholder

Similar activities

Statistics for Psychology - Quiz 2

Statistics for Psychology - Quiz 2

University

10 Qs

Music

Music

KG - Professional Development

10 Qs

Latest Technology in Modern Hotel

Latest Technology in Modern Hotel

University

10 Qs

Dragon Mania Ledgends Quiz

Dragon Mania Ledgends Quiz

1st Grade - Professional Development

10 Qs

19EC1001 QA

19EC1001 QA

University

10 Qs

Time Value of Money

Time Value of Money

University

13 Qs

Juego en Equipo

Juego en Equipo

University

11 Qs

Hip-Biomechanics

Hip-Biomechanics

University

10 Qs

SQL set 1

SQL set 1

Assessment

Quiz

Other

University

Practice Problem

Medium

Created by

ESPARK 2023

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?