SQL Programming

SQL Programming

4th Grade - Professional Development

10 Qs

quiz-placeholder

Similar activities

GCSE Databases & SQL

GCSE Databases & SQL

9th - 11th Grade

14 Qs

Database Fundamentals

Database Fundamentals

KG - University

10 Qs

SQL MCQ

SQL MCQ

University

9 Qs

Database SQL Part 1 V1

Database SQL Part 1 V1

Professional Development

13 Qs

IntroToDatabases W2

IntroToDatabases W2

University

12 Qs

SQL Query Assignment

SQL Query Assignment

12th Grade

10 Qs

GCSE 2.2 Records

GCSE 2.2 Records

10th Grade

12 Qs

GCSE 2.2 SQL

GCSE 2.2 SQL

9th - 11th Grade

12 Qs

SQL Programming

SQL Programming

Assessment

Quiz

Computers

4th Grade - Professional Development

Hard

Created by

omar khairy

Used 10+ times

FREE Resource

10 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Write the correct SQL statement to create a new table called Persons

ـــــــــــــــــــــــــ (

PersonID int,

LastName varchar(255),

FirstName varchar(255),

Address varchar(255),

City varchar(255)

);

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Select all records where the value of the City column starts with the letter "a".


SELECT * FROM Customers

______________________ ;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select all records where the City column has the value "Berlin"


SELECT * FROM Customers

ــــــــــــــــ City = "Berlin";

INSERT

SELECT

DROP

WHERE

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Select all records from the Customers table, sort the result alphabetically by the column City


SELECT * FROM Customers

ــــــــــــــــ City;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select all the different values from the Country column in the Customers table


SELECT ـــــــــــــــــــــ Country FROM Customers;

DISTICNT

DISTINCT

DITSINCT

DISTINTC

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select all records from the Customers where the PostalCode column is empty


SELECT * FROM Customers

WHERE PostalCode ــــــــــــــــــــــــــ ;

IS EMPTY

IS NULL

NOT FILLED

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Update the City column of all records in the Customers table


ــــــــــــــــــ Customers

ــــــــــ City = "Oslo"

UPDATE / MAKE

UPGRADE / SET

SET / UPDATE

UPDATE / SET

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?