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)

A First Course in Database Systems - Solutions, summaries, and outlines. 2022 updated

Rating
-
Sold
-
Pages
444
Grade
A+
Uploaded on
29-01-2022
Written in
2021/2022

Description: INCLUDES Some or all of the following - Supports different editions ( newer and older) - Answers to problems & Exercises. in addition to cases - Outlines and summary - Faculty Approved answers. - Covers ALL chapters.

Show more Read less
Institution
Course

Content preview

Exercise 2.2.1a



For relation Accounts, the attributes are:



acctNo, type, balance



For relation Customers, the attributes are:



firstName, lastName, idNo, account



Exercise 2.2.1b



For relation Accounts, the tuples are:



(12345, savings, 12000),

(23456, checking, 1000),

(34567, savings, 25)



For relation Customers, the tuples are:



(Robbie, Banks, 901-222, 12345),

(Lena, Hand, 805-333, 12345),

(Lena, Hand, 805-333, 23456)



Exercise 2.2.1c

,For relation Accounts and the first tuple, the components are:



123456  acctNo

savings  type

12000  balance



For relation Customers and the first tuple, the components are:



Robbie  firstName

Banks  lastName

901-222  idNo

12345  account



Exercise 2.2.1d



For relation Accounts, a relation schema is:



Accounts(acctNo, type, balance)




For relation Customers, a relation schema is:



Customers(firstName, lastName, idNo, account)



Exercise 2.2.1e

,An example database schema is:



Accounts (

acctNo,

type,

balance

)

Customers (

firstName,

lastName,

idNo,

account

)



Exercise 2.2.1f



A suitable domain for each attribute:



acctNo  Integer

type  String

balance  Integer

firstName  String

lastName  String

idNo  String (because there is a hyphen we cannot use Integer)

account  Integer

, Exercise 2.2.1g



Another equivalent way to present the Account relation:



acctNo balance type

34567 25 savings

23456 1000 checking

12345 12000 savings




Another equivalent way to present the Customers relation:



idNo firstName lastName account

805-333 Lena Hand 23456

805-333 Lena Hand 12345

901-222 Robbie Banks 12345



Exercise 2.2.2



Examples of attributes that are created for primarily serving as keys in a relation:

Connected book

Written for

Institution
Course

Document information

Uploaded on
January 29, 2022
Number of pages
444
Written in
2021/2022
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$40.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
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.
TestBanks2022 Harvard University
Follow You need to be logged in order to follow users or courses
Sold
2172
Member since
4 year
Number of followers
1702
Documents
2238
Last sold
2 days ago

4.0

351 reviews

5
191
4
59
3
45
2
18
1
38

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