How many row of the result of the following query contains
SELECT *;
FROM Customers, Orders;
WHERE age <> 31 AND amount <> 400;
SQL basic query
Quiz
•
Other
•
University
•
Hard
Tín Bảo
Used 6+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
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
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?
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;
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
10 questions
Quis 4 Teori PJV
Quiz
•
University
10 questions
quiz -09/04/24
Quiz
•
University
10 questions
Introdução às Consultas SQL
Quiz
•
12th Grade - University
10 questions
Data Analytics Quiz -5
Quiz
•
University
7 questions
DB Quiz1
Quiz
•
University
8 questions
Base de Datos - SQL
Quiz
•
University
10 questions
Diagnóstico Fundamentos de Programación.
Quiz
•
University
12 questions
ADBMS Database Performance Tuning and Query Optimization Review
Quiz
•
University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade