SQL 2

SQL 2

11th Grade

14 Qs

quiz-placeholder

Similar activities

SQL Queries -Functions

SQL Queries -Functions

11th - 12th Grade

10 Qs

J277 - 2.2 - The use of SQL to search for data

J277 - 2.2 - The use of SQL to search for data

10th Grade - University

10 Qs

SQL (1)

SQL (1)

10th Grade - University

10 Qs

PHP MySQL

PHP MySQL

7th Grade - Professional Development

17 Qs

dbms

dbms

11th - 12th Grade

15 Qs

GCSE 2.2 SQL

GCSE 2.2 SQL

9th - 11th Grade

12 Qs

Quiz 1 SQL

Quiz 1 SQL

11th Grade

10 Qs

SQL

SQL

11th - 12th Grade

12 Qs

SQL 2

SQL 2

Assessment

Quiz

Computers, Other

11th Grade

Medium

Created by

O Hawkridge

Used 12+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What word is missing from the line below?
SELECT *
_______ CUSTOMER;
FROM
WHERE
SELECT
ORDER BY

2.

DRAG AND DROP QUESTION

20 sec • 1 pt

Drag the options into the correct boxes to complete the query

To display the detail of employee having "e" in their name in descending order of salary

SELECT * ​ (a)   emp ​ (b)   ename ​ (c)   %e%" ​ (d)   SAL ​ (e)   ;

FROM
WHERE
LIKE "
ORDER BY
DESC

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following queries is valid

SELECT name, course_name FROM student WHERE age>50 and <80;   

SELECT name, course_name FROM student WHERE age>50 and age <80;

SELECT name, course_name FROM student WHERE age>50 and WHERE age<80;

None of these

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In an SQL SELECT statement querying a single table, the asterisk (*) means that:

All records are to be returned.

None the options is correct.

All fields of the table are to be returned

All records meeting the full criteria are to be returned.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do we select all rows for the "Designer" table?

SELECT * FROM Designer

SELECT [All] FROM Designer

SELECT Designer.*

SELECT FROM Designer

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How would we script a SQL query to select "Description" from the Item table?

SELECT Item.Description

EXTRACT Description FROM Item

SELECT Item FROM Description

SELECT Description FROM Item

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which query would return only the fields DesignerID and Designer?

SELECT * FROM Designers

SELECT DesignerID, Name FROM Designers

SELECT DesignerID AND Designer FROM Designers

SELECT DesignerID, Designer FROM Designers

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?