CS6400 Exam Prep Questions and Answers Verified
100% Correct
If a relation's table in real life is ordered, should the contents of a relation be ordered as well? -
✔✔Tuples are not to be ordered, although can be
How to map a N:M relationship from Relation 'R' to 'S'? - ✔✔1.) Foreign key of relation 'R'
2.) Foreign key of relation 'S'
3.) Any relationship properties
How to map weak entity - ✔✔1.) Foreign key
2.) Weak key
3.) attributes of weak entity
For mapping to relations, what 3 items you must look for - ✔✔1.) entities
2.) relationships (N:M mainly)
3.) multi-value attributes
If you want to identify from two Relations ('R' and 'S') all the possible combinations - ✔✔
Can a relation have a foreign key refering to another column in the same relation? - ✔✔Yes,
typically the primary key (primary key can be more than one attribute, but only one primary key
can exist per relation)
When determining how many tuples will be the output of a 'left outer join' or 'right outer join'?
- ✔✔1.) If foreign key has all the items in the opposing table's primary key, then the number
of tuples will match the larger table's
2.) If the column with the foreign has some missing items from the original primary key, it will
be count of tuples in the large relation + missing foreign key items.
, What is the output of R U R? - ✔✔R; if it was Union all, then the output would include
duplicates
Does the Relation extension have to obey Relational intension? - ✔✔Absolutely; items
appended must obey the domain and data type subsets
3 types of constraints: - ✔✔inherent, schema, and application based
What is a result relation? - ✔✔result from a query
How to translate:
'''
Employee(e) and (∃x)(Works_On(w) and Project(p)
''''
into universal quantifier notation - ✔✔Employee(e) and (∀x)(Not(Works_on(w) OR NOT
(Project(p))
What is the key/primary key in a relation formed by a multi value attribute? - ✔✔The foreign
and the attribute
What's another way a relation can be declared? - ✔✔A declaration and assertion
Whats a transaction? - ✔✔executing program that performs db operations
If a record contains a key that is a referenced in another table and you try to delete it, what are
the options? - ✔✔1.) Restrict
'or'
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 Examsplug. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $12.49. You're not tied to anything after your purchase.