SQL basic query
Quiz
•
Other
•
University
•
Practice Problem
•
Hard
Tín Bảo
Used 6+ times
FREE Resource
Enhance your content in a minute
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
QUIZ 1
Quiz
•
University
10 questions
SHINE
Quiz
•
University
10 questions
EFFECTIVE GROUP DISCUSSION
Quiz
•
9th Grade - University
10 questions
Business Ethics
Quiz
•
University
10 questions
CALCITONIN (MUSCULOSKELETAL)
Quiz
•
University
10 questions
UK Knowledge Test
Quiz
•
University
10 questions
Alien Hand Syndrome
Quiz
•
University
10 questions
Introduction to CSS
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
