Mastering SQL Concepts

Mastering SQL Concepts

University

20 Qs

quiz-placeholder

Similar activities

SQL Quiz

SQL Quiz

University

19 Qs

sql lab

sql lab

University

20 Qs

ORACLE_JR_SERIES_1

ORACLE_JR_SERIES_1

University

25 Qs

DDL

DDL

University

15 Qs

U3.2. Statements (JDBC)

U3.2. Statements (JDBC)

University

17 Qs

Database Concepts Quiz

Database Concepts Quiz

University

15 Qs

Kunci kekalahan

Kunci kekalahan

University

20 Qs

DBA CA 2

DBA CA 2

University

20 Qs

Mastering SQL Concepts

Mastering SQL Concepts

Assessment

Quiz

Computers

University

Medium

Created by

kani mozhi

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does SQL stand for?

Standard Query Language

Structured Query Language

Structured Query List

Simple Query Language

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL command is used to retrieve data from a database?

UPDATE

SELECT

INSERT

DELETE

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the WHERE clause in SQL?

To sort records in ascending order.

To join multiple tables together.

To filter records based on specified conditions.

To create new database tables.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the difference between INNER JOIN and LEFT JOIN.

INNER JOIN fills unmatched rows with default values from the left table.

INNER JOIN returns all rows from both tables regardless of matches.

LEFT JOIN only returns rows from the right table with no NULLs.

INNER JOIN returns matched rows only; LEFT JOIN returns all rows from the left table with matched rows from the right table, filling with NULLs if no match.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a primary key in a database?

A primary key is a type of foreign key.

A primary key is an optional field in a database.

A primary key is a unique identifier for a record in a database.

A primary key can be duplicated across records.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you count the number of rows in a SQL table?

SELECT COUNT(*) FROM table_name;

COUNT(table_name);

SELECT SUM(*) FROM table_name;

SELECT ROW_COUNT(table_name);

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What SQL function would you use to find the average value of a column?

COUNT()

MAX()

SUM()

AVG()

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?