Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

BSIT 2 – Database Management Systems 6

Rating
-
Sold
-
Pages
24
Grade
A+
Uploaded on
17-03-2025
Written in
2024/2025

BSIT 2 – Database Management Systems 6

Institution
Database Management Systems
Course
Database management systems

Content preview

1. Which SQL statement is used to return the number of rows in a table?

A. SELECT COUNT()

B. SELECT SUM()

C. SELECT MAX()

D. SELECT MIN()

Answer: A) SELECT COUNT()

Rationale: The COUNT() function is used to return the number of rows in a table.




2. Which of the following is a non-relational database?

A. MySQL

B. PostgreSQL

C. MongoDB

D. Oracle

Answer: C) MongoDB

Rationale: MongoDB is a non-relational (NoSQL) database, which stores data in JSON-like

documents rather than relational tables.




3. What is a foreign key?

A. A primary key in a different table

,B. A key that uniquely identifies records in the current table

C. A key used for indexing the database

D. A key used to sort the records

Answer: A) A primary key in a different table

Rationale: A foreign key is a field in one table that uniquely identifies a row in another table.




4. What is the purpose of the EXPLAIN keyword in SQL?

A. To display the execution plan for a query

B. To explain the database schema

C. To summarize the table structure

D. To explain error messages

Answer: A) To display the execution plan for a query

Rationale: The EXPLAIN keyword is used to display the execution plan for a SQL query,

helping to analyze and optimize query performance.




5. Which of the following is NOT an advantage of normalization?

A. Reduces redundancy

B. Increases data integrity

C. Makes the database more complex

D. Improves query performance

Answer: C) Makes the database more complex

, Rationale: Normalization reduces redundancy, improves integrity, but may make the database

more complex with multiple tables.




6. In SQL, which of the following is used to retrieve unique values from a column?

A. SELECT ALL

B. DISTINCT

C. UNIQUE

D. LIMIT

Answer: B) DISTINCT

Rationale: The DISTINCT keyword is used to retrieve unique values from a column.




7. Which SQL command is used to update data in a table?

A. INSERT

B. UPDATE

C. DELETE

D. SELECT

Answer: B) UPDATE

Rationale: The UPDATE command is used to modify existing records in a table.




8. What does the SQL keyword LIMIT do?

A. Restricts the number of records returned

Written for

Institution
Database management systems
Course
Database management systems

Document information

Uploaded on
March 17, 2025
Number of pages
24
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$10.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
douglasmugwe82
5.0
(1)

Get to know the seller

Seller avatar
douglasmugwe82 Teachme2-tutor
Follow You need to be logged in order to follow users or courses
Sold
2
Member since
1 year
Number of followers
0
Documents
4239
Last sold
7 months ago
fully answered questions and answer

fully answered questions and answer

5.0

1 reviews

5
1
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions