Search Header Logo

SQL and Database_1

Authored by Namita Apsingekar

English

12th Grade

Used 3+ times

SQL and Database_1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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;

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?