DBI 202 Exam Questions with 100% Correct
Answers
A ____ is a collections of tables, views, triggers, and so on
A. Schema
B. Cluster
C. Catalog
D. None of the others - ✔️✔️a
What is a stored procedure in database?
A. A system relation
B. A temporary relation
C. A temporary object
D. None of the others - ✔️✔️d
Database management systems support following languages, EXCEPT
A. data definition language
B. data manipulation language
C. data controlling language
D. data securing language - ✔️✔️d
Authorizing access to database, coordinating, monitoring its use, acquiring software, and
hardware resources, ____ are responsibilities of
,A. database administrator
B. database designer
C. database programmer
D. database user - ✔️✔️a
All of followings are correct, EXCEPT
A. Super key is a key
B. Key is a super key
C. If X is a key, then any set of attributes consists of X is super key
D. Every relation has at least one key - ✔️✔️a
The description of data model consists of all followings, EXCEPT
A. structure of data
B. operations on data
C. constraints on data
D. privileges on data - ✔️✔️d
A set of (current) tuples for a given relation best describes
A. relation's schema
B. relation's instance
C. relation's content
D. relation's table - ✔️✔️b
Which SQL keyword is used to retrieve only unique values?
,A. DIFFERENT
B. DISTINCT
C. UNIQUE
D. UNION - ✔️✔️b
A trigger is ____
A. a special type of view
B. a special type of table
C. a special type of store procedure, executed when certain event occurs
D. Non of the others - ✔️✔️c
Functional dependency is
A. a constraint on two different relations
B. a constraint on a set of attributes of a relation
C. a constraint on two sets of attributes of a relation
D. a constraint on two sets of attributes of two different relations - ✔️✔️c
Subquery cannot be used in
A. FROM clause
B. WHERE clause
C. GROUP BY clause
D. HAVING clause - ✔️✔️c
, Given relation R(A,B), which of followings is valid?
A. SELECT A, B, COUNT(*) FROM R GROUP BY A
B. SELECT A, B, COUNT(*) FROM R GROUP BY A, B
C. SELECT A, COUNT(*) FROM R GROUP BY B
D. SELECT A, B, COUNT(*) FROM R GROUP BY B - ✔️✔️b
Given relation R(A, B) with attribute A (nullable) and B (not null), following queries are used to
count the tuples of R
A. SELECT COUNT(*) FROM R
B. SELECT COUNT(A) FROM R
C. SELECT COUNT(B) FROM R
D. A and C - ✔️✔️d
SQL triggers may be awakened by some events, EXCEPT
A. INSERT
B. UPDATE
C. DELETE
D. ALTER - ✔️✔️d
A trigger belongs to
A. a single table in the database
B. all tables in the database
C. more than one table in the database
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Examcheatcode. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $14.49. You're not tied to anything after your purchase.