
SQL and Database Concepts Quiz3

Quiz
•
Engineering
•
University
•
Hard
Tuấn Đình
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following SQL statement do? Delete from Customer_T where state = ‘HI’;
Deletes all records from customer_t where the state is equal to HI
Removes the Customer_T table from the database
Deletes all records from the Customer_T table
Doesn’t delete anything because of a syntax error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is one of the basic types of joins in DB?
Outer join
Self-join
Equi-join
All of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the below SELECT statement is used to select all columns of EMP table?
SELECT ALL FROM emp
SELECT # FROM emp
SELECT * FROM emp
SELECT empno, ename, deptno, sal, job, mgr, hiredate FROM emp
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Select DatePart(yy, ‘20/01/2021’) As ‘Năm’
01
2021
20
20/01/2021
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Determine the error in the below SELECT statement SELECT ename, deptno, sal FROM emp WHERE job=CLERK;
WHERE clause cannot refer the column JOB since it doesn’t appear in the SELECT column list
Character literal CLERK must be enclosed within single quotes
Character literal CLERK must be enclosed within parentheses
No error in the query
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the benefits of Triggers?
Generating some derived column values automatically
Enforcing referential integrity
Synchronous replication of tables
All of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following steps: Transaction A retrieves record R at time T Transaction B retrieves the same record at time T+1 Transaction A updates the record at time T+2 (based on value seen at time T) Transaction B updates the same record at time T+3 (based on value seen at time T+1) What is the result of the above sequence of steps?
Transaction B’s update would be overwritten by transaction A’s update
Transaction A’s update would be overwritten by transaction B’s update
Transaction B’s update would be overwritten by transaction B’s update
Transaction A’s update would be overwritten by transaction A’s update
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
MOSFET

Quiz
•
University
20 questions
Hackharbor 3.0 Day 4:Tech

Quiz
•
University
10 questions
Understanding PGP Services

Quiz
•
University
10 questions
Exploring Marketing Strategies

Quiz
•
University
15 questions
Exploring Optimization Concepts

Quiz
•
University
17 questions
Understanding Metric Prefixes Worksheet

Quiz
•
9th Grade - University
15 questions
PEISS

Quiz
•
University
14 questions
MGT 315 - CHAPTER 6

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Engineering
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University