SQL and Database Concepts Quiz3

SQL and Database Concepts Quiz3

University

15 Qs

quiz-placeholder

Similar activities

Stability

Stability

University

18 Qs

Dive in SQL

Dive in SQL

University

20 Qs

Robotics Day 5

Robotics Day 5

8th Grade - University

15 Qs

SQL Quiz

SQL Quiz

University

20 Qs

Combinational Logic Circuits

Combinational Logic Circuits

University

20 Qs

UNIT , DIMENSION & STANDARD

UNIT , DIMENSION & STANDARD

University

15 Qs

Lesson 4 Angular Motion

Lesson 4 Angular Motion

12th Grade - University

13 Qs

I+D+i GET

I+D+i GET

University

20 Qs

SQL and Database Concepts Quiz3

SQL and Database Concepts Quiz3

Assessment

Quiz

Engineering

University

Practice Problem

Hard

Created by

Tuấn Đình

FREE Resource

AI

Enhance your content in a minute

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

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

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?