SQL basic query

SQL basic query

University

7 Qs

quiz-placeholder

Similar activities

environmental education

environmental education

University

10 Qs

GLS290 Aerial Camera

GLS290 Aerial Camera

University

10 Qs

CCHU5001_Week 3_Quiz

CCHU5001_Week 3_Quiz

University

10 Qs

Project mc²

Project mc²

2nd Grade - Professional Development

11 Qs

Greetings

Greetings

KG - University

10 Qs

Teaching as Vocation and Profession

Teaching as Vocation and Profession

University

10 Qs

Usahatani Faktor Modal

Usahatani Faktor Modal

University

11 Qs

Cont. Nacional - Aula 05 - Pancadaria

Cont. Nacional - Aula 05 - Pancadaria

University

10 Qs

SQL basic query

SQL basic query

Assessment

Quiz

Other

University

Practice Problem

Hard

Created by

Tín Bảo

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

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

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

How many row of the result of the following query contains

SELECT *;

FROM Customers, Orders;

WHERE age <> 31 AND amount <> 400;

20

16

12

0

2.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

How many row of the result of the following query contains

SELECT *;

FROM Customers, Orders;

WHERE age <> 31 OR amount <> 400;

25

22

23

24

3.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

With SQL, we want to select a column named "FirstName" from a table named "Persons". We also want the query result returns all string which the second character is ‘a’ and end with the character ‘h’.

Which one is the correct syntax?

Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Consider the following table. What is the output of the below query?

SELECT first_name AS fn, age AS a;

FROM Customers;

WHERE a = 31;

Media Image
Media Image
Media Image

Syntax Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct SQL Query Order of Execution?

FROM > WHERE > SELECT > ORDER BY

SELECT > FROM > WHERE > ORDER BY

SELECT > WHERE > FROM > ORDER BY

FROM > SELECT > WHERE > ORDER BY

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

How to specify the Referential Integrity Constraints in SQL?

Using PRIMARY KEY clause

Using UNIQUE clause

Using FOREIGN KEY clause

Using CHECK clause

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In addition to key and referential integrity constraints, other table constraints can also be specified through additional CHECK clauses at the end of a CREATE TABLE statement. These can also be called __________ constraints as they affected on each tuple individually as being inserted or modified.

row-based

column-based

key

optional

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?