SQL and Database_1

SQL and Database_1

12th Grade

20 Qs

quiz-placeholder

Similar activities

REGULAR VERBS IN PAST

REGULAR VERBS IN PAST

KG - Professional Development

20 Qs

13.2Tables

13.2Tables

8th Grade - University

20 Qs

Technology

Technology

12th Grade

15 Qs

SQL Quizz #2

SQL Quizz #2

9th - 12th Grade

20 Qs

Full Stack Proficiency Quiz

Full Stack Proficiency Quiz

9th Grade - University

25 Qs

ending - ed /t/d/id/

ending - ed /t/d/id/

2nd Grade - University

15 Qs

SQL and Database_1

SQL and Database_1

Assessment

Quiz

English

12th Grade

Easy

Created by

Namita Apsingekar

Used 3+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the SELECT statement in SQL?

To retrieve data from a database.

To create new tables in a database.

To delete data from a database.

To update existing records in a database.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write a SQL query to retrieve all columns from a table named 'Students'.

SELECT ALL FROM Students;

SELECT * FROM Students;

FETCH * FROM Students;

GET * FROM Students;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the concept of primary key in a database.

A primary key is a unique identifier for a record in a database table, ensuring uniqueness and preventing null values.

A primary key is used to store large binary data in a database.

A primary key is an optional field that can contain null values.

A primary key can be duplicated across records in a table.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is normalization and why is it important in databases?

Normalization is important in databases because it minimizes data redundancy, enhances data integrity, and simplifies data management.

Normalization is only necessary for small databases.

Normalization has no impact on data integrity.

Normalization increases data redundancy and complexity.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write a SQL query to find the total number of records in a table named 'Orders'.

SELECT SUM(*) FROM Orders;

SELECT COUNT(*) FROM Orders;

SELECT TOTAL() FROM Orders;

SELECT COUNT(1) FROM Orders;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between INNER JOIN and LEFT JOIN?

INNER JOIN returns all rows from both tables; LEFT JOIN returns only unmatched rows.

INNER JOIN includes all rows from the left table; LEFT JOIN excludes unmatched rows from the right table.

INNER JOIN returns all rows regardless of matches; LEFT JOIN returns only matched rows.

INNER JOIN returns matched rows only; LEFT JOIN returns all left table rows and matched right table rows.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write a SQL query to retrieve the names of all students who scored above 80 in a subject.

SELECT name FROM students WHERE score < 80;

SELECT name FROM students WHERE score >= 80;

SELECT name FROM students WHERE score = 80;

SELECT name FROM students WHERE score > 80;

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?