Mastering SQL Concepts

Mastering SQL Concepts

University

20 Qs

quiz-placeholder

Similar activities

DATABASE

DATABASE

University

20 Qs

SQL_2

SQL_2

University

20 Qs

SQL4-Join/aggregate functions/group by

SQL4-Join/aggregate functions/group by

University

19 Qs

UTS Basis Data II - ITM

UTS Basis Data II - ITM

University

15 Qs

SQL Basics

SQL Basics

University

20 Qs

Praktikum Basis Data Quiz

Praktikum Basis Data Quiz

University

20 Qs

DBMS LAB

DBMS LAB

University

20 Qs

SQL Exam

SQL Exam

University

19 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?