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
Document preview thumbnail
Preview 2 out of 9 pages
Exam (elaborations)

DBMS EXAM QUESTIONS AND ANSWERS

Document preview thumbnail
Preview 2 out of 9 pages

DBMS EXAM QUESTIONS AND ANSWERS

Content preview

DBMS EXAM QUESTIONS AND ANSWERS

What is a database? - Answers - A collection of information organized for easy access,
management, and update

What is a database management system? - Answers - A random assortment of data

Which database model organizes data in a tree-like structure? - Answers - Hierarchical
Database

What is an ER diagram used for? - Answers - To represent real-world entities and their
relationships

This command adds one or more records to a database table. - Answers - INSERT

a built-in string function in PostgreSQL that concatenates two or more strings - Answers
- CONCAT

clause allows you to sort rows returned by a SELECT clause in ascending or
descending order based on a sort expression. - Answers - ORDER BY

What does ACID stand for in the context of database transactions? - Answers -
Atomicity, Consistency, Isolation, Durability

What does the COMMIT command do in SQL? - Answers - Ends the current transaction
and saves changes

What is the purpose of a trigger in PostgreSQL? - Answers - To automatically execute a
function when a specified event occurs

Which command is used to remove a trigger from a table in PostgreSQL? - Answers -
DROP TRIGGER

Which character data type in PostgreSQL can store a variable number of characters? -
Answers - VARCHAR

What does the NUMERIC(p, s) data type represent in PostgreSQL? - Answers - A fixed-
point number with p digits and s decimal places

What is a primary key? - Answers - A column or group of columns that uniquely
identifies a row in a table

Which of the following is a type of functional dependency? - Answers - Multivalued
Dependency

, Which command is used to create a new table in SQL? - Answers - CREATE TABLE

What constraint ensures that all values in a column are unique? - Answers - UNIQUE

data type can hold one of three possible values: true, false and NULL - Answers –
BOOLEAN

Which data type is used to store date and time values in PostgreSQL? - Answers -
TIMESTAMP

This command modifies data of one or more records. - Answers - UPDATE

What is the basic syntax for deleting rows from a table in PostgreSQL? - Answers -
DELETE FROM table_name WHERE condition;

How do you return the first n characters from a string in PostgreSQL? - Answers -
LEFT(string, n)

What function is used to replace all occurrences of a substring within a string in
PostgreSQL? - Answers - REPLACE

How do you extract a substring from a string in PostgreSQL? - Answers -
SUBSTRING(string FROM start FOR length)

Which clause is used to filter rows returned by a SELECT statement based on a
specified condition? - Answers - WHERE

Which clause is used to remove duplicate rows from a result set in PostgreSQL? -
Answers - DISTINCT

What operator is used to combine two conditions in a WHERE clause in PostgreSQL? -
Answers - AND

clause divides the rows returned from the SELECT statement into groups. - Answers -
GROUP BY

to calculate the sum of items - Answers - SUM()

to get the number of items in the groups. - Answers - COUNT()

is a SQL query nested inside a larger query - Answers - A subquery

once before the main query (outer query) executes. - Answers - The subquery (inner
query) executes

use the subquery result - Answers - The main query (outer query)

Document information

Uploaded on
December 20, 2024
Number of pages
9
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$12.99

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

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
GEEKA
3.8
(360)
Sold
2134
Followers
1447
Items
58391
Last sold
1 day ago


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