SlideShare a Scribd company logo
final home work for database/.DS_Store
__MACOSX/final home work for database/._.DS_Store
final home work for database/book_order relationship
screen.docx
Book Order Relationship Screen
__MACOSX/final home work for database/._book_order
relationship screen.docx
final home work for database/Graduate database final
assignment spring 2015.docGrad Database final Assignment
Spring 2015 200 points
(You MUST PRINT this assignment and turn it in at the
beginning of class on April 30)
NAME__________________________________
1. When defining a domain what are you trying to describe?
2. Give an example of a domain for a social security number?
3. A Doctor (the user of the database) has asked for an
additional field to be added to the patient table. There are many
reports that will use this field, but there are others that will not.
Explain what should happen to this database in that other
doctors and administrators may use it as well
4. Do you agree with the concept that a good database will have
no repeated data in the tables? Back up your answer
5. (See surgery table) A patient may have more than one
diagnosis associated with the surgery (represented by the dcode)
and more than one procedure code associated with the
surgery(represented by pcode) For example, the patient could
have two procedure codes and three diagnostic codes for each
surgery. What is wrong with the data in the table to the right?
6. Using the ER design below (keys defined with *), how may
tables will be defined and what data will be in the tables?
7. In the Access Relationship screen below, what can you say
about the demograph table? What can you say about the social
security number in the demograph table and all of the other
tables?
8. Using the handout for the Sales database, could cust_id and
inv_date be a key for the invoice table? Why or why not?
9. Using the handout for the Sales database, explain referential
integrity?
10. Using a hospital database, give an example of data
inconsistency that could exist in a database that was poorly
designed
11. Using a hospital database as an example, list three different
external views of the data in the database
12. What is data independence?
13. Describe what a key is and give an example of a possible
key if you were creating a patient appointment table
14. Using the book-order database relationship screen(included
with this exam), list 5 constraints you could define
15. Using the Access relationship handout for the Book Order
Database, what can you say about the prof_code in both the
Professor and Course_offerings tables?
16. Select two tables from the mail order database and prove if
they are in 2nd and/or 3rd normal form.
17. Your Uncle has a landscape business. He has a lot of repeat
customers, so it is very important to keep track of what services
they have done as well as the satisfaction of the work. Lately
there have been a few complaints, therefore you will need to
keep track of which employees are involved in each job for the
customer. Your uncle also wants to keep track of all materials
used on each job. Draw the ER diagram.
SQL section:
Use the book order database (design included) to answer all of
the following SQL statements:
1. List all publishers who do not have an email
2. Add another record to the courses table
3. Add 1 to year field in the book_order table
4. List all Professors who have no course offerings
5. Write the statement to define the setup_info table
6. Count the number of book orders for each year and semester
7. Add the foreign key between the tables publisher and
book_detail
8. List all course offerings grouped by semester and year
9. List the professor name, the course name and number and the
ISBN for all books ordered for the course
10. Make up an SQL statement of your own that involved at
least two tables. List what your query does.
Surgery Table�
�
Soc�
Surgery_date�
pcode�
dcode�
�
1�
1/7/2000�
571�
72�
�
2�
1/7/2000�
1094�
72�
�
3�
1/7/2000�
1089�
180�
�
4�
1/7/2000�
74�
1�
�
5�
1/5/2000�
69�
193�
�
6�
1/7/2000�
3�
1�
�
1�
1/1/2000�
0�
0�
�
8�
1/5/2000�
33�
21�
�
9�
1/5/2000�
32�
20�
�
2�
1/5/2000�
33�
20�
�
11�
1/7/2000�
0�
85�
�
12�
1/7/2000�
0�
85�
�
13�
1/7/2000�
3�
1�
�
14�
1/7/2000�
112�
1�
�
15�
1/7/2000�
0�
1�
�
M
M
* Field 1
Table two
Table one
Relate
*Field 3
*Field 2
__MACOSX/final home work for database/._Graduate database
final assignment spring 2015.doc
final home work for database/mailorder design.docCustomer
Table
Inventory Table
Orders Table
Database Exam #2
Fall 2011
Mail Order Database
M
Invoice
M
M
1
orders
has
Inventory
Customer
Invoice Table
inv_number�
cust_id�
inv_date�
inv_status�
�
1�
1237�
1/10/2011�
Open�
�
2�
1439�
3/2/2011�
Paid in Full�
�
3�
1509�
12/12/2010�
Paid in Full�
�
4�
1987�
5/8/2010�
Paid in Full�
�
5�
2908�
1/10/2011�
Open�
�
6�
3451�
1/2/2011�
Paid in Full�
�
7�
6745�
8/12/2010�
Open�
�
8�
8967�
6/1/2011�
Paid in Full�
�
9�
9780�
1/10/2010�
Open�
�
10�
1237�
12/2/2010�
Paid in Full�
�
11�
1987�
3/7/2011�
Open�
�
12�
1439�
4/3/2011�
Paid in Full�
�
13�
1509�
3/1/2010�
Open�
�
14�
1987�
5/4/2011�
Paid in Full�
�
15�
3451�
3/2/2010�
Open�
�
inv_number�
item_number�
�
1�
A098678�
�
1�
A554361�
�
2�
A986512�
�
3�
B986797�
�
4�
A776543�
�
4�
A986513�
�
4�
B999887�
�
5�
B986796�
�
5�
B999887�
�
5�
B999888�
�
6�
A098678�
�
6�
A776543�
�
7�
A458730�
�
7�
B986797�
�
8�
A986512�
�
8�
B986797�
�
8�
B999887�
�
9�
A098678�
�
10�
A098678�
�
10�
B986797�
�
11�
A986513�
�
11�
B986543�
�
12�
A098678�
�
12�
A564348�
�
13�
A776543�
�
13�
B895743�
�
14�
A098678�
�
14�
A564348�
�
15�
B573257�
�
15�
B956321�
�
item_number�
item_name�
item_price�
�
A098678�
Sasaki Bowel�
$125.00�
�
A458730�
Noritake Blue Vase�
$49.99�
�
A554361�
Royal Doulton tea set�
$500.00�
�
A564348�
Mikasa glass set�
$569.00�
�
A776543�
Noritake glass set�
$345.00�
�
A985441�
Mikasa Clock�
$225.00�
�
A986512�
Sasaki Picture Frame 8"�
$20.00�
�
A986513�
Sasaki Picture Frame 10"�
$25.00�
�
A987654�
Royal Doulton Apple�
$29.00�
�
A998776�
Silk House Plant�
$50.00�
�
B124245�
Garden tools�
$45.00�
�
B345987�
Grandfather Clock�
$1,399.99�
�
B573257�
China flower pot set�
$99.99�
�
B895743�
Garden Bench�
$269.99�
�
B956321�
Spring door wreath�
$35.00�
�
B986543�
Dried Roses in vase�
$89.00�
�
B986796�
Silk house plant 4"�
$30.00�
�
B986797�
Silk house plant 6"�
$40.00�
�
B999887�
8" chrome shelf Unit�
$350.00�
�
B999888�
6" chrome shelf Unit�
$299.00�
�
cust_id�
clname�
cfname�
street�
city�
state�
zip�
�
1237�
Smith�
Greg�
101 Third Street�
Uniontown�
PA�
15401-0000�
�
1439�
Atkins�
John�
14 Jenkins Avenue�
Morgantown�
WV�
14092-0000�
�
1509�
Brown�
Grodon�
519 Hilling Drive�
Cleveland�
OH�
14356-0000�
�
1987�
Ashcroft�
Andrew�
75 Piller Drive�
Pittsburgh�
PA�
15231-0000�
�
2908�
Redding�
Chris�
98 Victory Lane�
Brownsville�
PA�
15423-0000�
�
3451�
Jones�
Thomas�
65 Main Street�
Boston�
MA�
15601-0000�
�
5521�
Murray�
Geroge�
1255 West 42nd �
New York�
NY�
14896-0000�
�
6745�
Green�
Julia�
15 Belmount Circle�
Chicago�
IL�
28676-0000�
�
8967�
Johnson�
Kevin�
55 Murray Avenue�
Pittsburgh�
PA�
15211-0000�
�
9780�
Livengston�
Mary�
1 Trimont Lane�
Pittsburgh�
PA�
15235-0000�
�
__MACOSX/final home work for database/._mailorder
design.doc
1- Find and describe 2 non-durable goods and 2 durable goods.
Your explanation should include talking about the materials
that are used, the intended use of the product, and how long it
is supposed to last which includes explaining why each
material is durable/non-durable. Include references!
2- Choose one of the top 50 manufacturing companies and
describe what their top product is. Try to determine the cost
of production-vs-the selling price for that product. Include
references
3- What role does manufacturing play relative to the standard
of
living in a country? Give an example of a country (other than
the
USA) that utilizes manufacturing and has a high standard of
living.
What are big manufacturing industries in that that country?

More Related Content

DOCX
Customer TableInventory TableOrders Table.docx
PDF
Database use
POT
10359485
DOCX
Create a sql script containing your data definition language (ddl)
PDF
Illustrated Microsoft Office 365 and Access 2016 Intermediate 1st Edition Fri...
DOCX
AccessProjectIS312—Fall2015Last Updated1009.docx
PPTX
PPT_TLE6_W6_Q1.pptx.....................
PPTX
PPT_TLE6_W6_Q1.pptxhhhjhjhhhhhhhhhhhhhhhhhhhhhhh
Customer TableInventory TableOrders Table.docx
Database use
10359485
Create a sql script containing your data definition language (ddl)
Illustrated Microsoft Office 365 and Access 2016 Intermediate 1st Edition Fri...
AccessProjectIS312—Fall2015Last Updated1009.docx
PPT_TLE6_W6_Q1.pptx.....................
PPT_TLE6_W6_Q1.pptxhhhjhjhhhhhhhhhhhhhhhhhhhhhhh

Similar to final home work for database.DS_Store__MACOSXfinal home wo.docx (20)

PDF
Microsoft Access 2013 Comprehensive 1st Edition Pratt Solutions Manual
PDF
MS ACCESS Tutorials
PDF
Accounting Information Systems The Crossroads of Accounting and IT 2nd Editio...
PDF
Microsoft Access 2013 Comprehensive 1st Edition Pratt Solutions Manual
DOCX
Part 2Provider Database (Open Office Database)Use the project.docx
PDF
Sql Lab 4 Essay
DOCX
Part 2Provider Database (Open Office Database)Use the project des.docx
PDF
Access 2010
PDF
Essential Access Exercises week 1-4.pdf
PDF
Microsoft Access 2013 Comprehensive 1st Edition Pratt Solutions Manual
PDF
Microsoft Access 2013 Comprehensive 1st Edition Pratt Solutions Manual
DOCX
1 Analytics Group Project Instructions OBJEC.docx
PDF
Microsoft Access 2013 Comprehensive 1st Edition Pratt Solutions Manual
DOCX
Chapter 13 Business Intelligence and Data Warehouses Problems.docx
PDF
New Perspectives on Microsoft Excel 2010 Comprehensive 1st Edition Parsons So...
PPT
Unit 1.3 Introduction to Programming (Part 2)
DOCX
Access Project IS312—Fall 2015 Last Updated 10092015 .docx
PDF
Accounting Information Systems The Crossroads of Accounting and IT 2nd Editio...
DOCX
Dba2 spec
PDF
Modern Database Management 11th Edition Hoffer Solutions Manual
Microsoft Access 2013 Comprehensive 1st Edition Pratt Solutions Manual
MS ACCESS Tutorials
Accounting Information Systems The Crossroads of Accounting and IT 2nd Editio...
Microsoft Access 2013 Comprehensive 1st Edition Pratt Solutions Manual
Part 2Provider Database (Open Office Database)Use the project.docx
Sql Lab 4 Essay
Part 2Provider Database (Open Office Database)Use the project des.docx
Access 2010
Essential Access Exercises week 1-4.pdf
Microsoft Access 2013 Comprehensive 1st Edition Pratt Solutions Manual
Microsoft Access 2013 Comprehensive 1st Edition Pratt Solutions Manual
1 Analytics Group Project Instructions OBJEC.docx
Microsoft Access 2013 Comprehensive 1st Edition Pratt Solutions Manual
Chapter 13 Business Intelligence and Data Warehouses Problems.docx
New Perspectives on Microsoft Excel 2010 Comprehensive 1st Edition Parsons So...
Unit 1.3 Introduction to Programming (Part 2)
Access Project IS312—Fall 2015 Last Updated 10092015 .docx
Accounting Information Systems The Crossroads of Accounting and IT 2nd Editio...
Dba2 spec
Modern Database Management 11th Edition Hoffer Solutions Manual
Ad

More from mydrynan (20)

DOCX
CSIA 413 Cybersecurity Policy, Plans, and Programs.docx
DOCX
CSIS 100CSIS 100 - Discussion Board Topic #1One of the object.docx
DOCX
CSI Paper Grading Rubric- (worth a possible 100 points) .docx
DOCX
CSIA 413 Cybersecurity Policy, Plans, and ProgramsProject #4 IT .docx
DOCX
CSI 170 Week 3 AssingmentAssignment 1 Cyber Computer CrimeAss.docx
DOCX
CSE422 Section 002 – Computer Networking Fall 2018 Ho.docx
DOCX
CSCI  132  Practical  Unix  and  Programming   .docx
DOCX
CSCI 714 Software Project Planning and EstimationLec.docx
DOCX
CSCI 561Research Paper Topic Proposal and Outline Instructions.docx
DOCX
CSCI 561 DB Standardized Rubric50 PointsCriteriaLevels of .docx
DOCX
CryptographyLesson 10© Copyright 2012-2013 (ISC)², Inc. Al.docx
DOCX
CSCI 352 - Digital Forensics Assignment #1 Spring 2020 .docx
DOCX
CSCE 1040 Homework 2 For this assignment we are going to .docx
DOCX
CSCE509–Spring2019Assignment3updated01May19DU.docx
DOCX
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
DOCX
CSCE 3110 Data Structures & Algorithms Summer 2019 1 of .docx
DOCX
CSCI 340 Final Group ProjectNatalie Warden, Arturo Gonzalez, R.docx
DOCX
CSC-321 Final Writing Assignment In this assignment, you .docx
DOCX
Cryptography is the application of algorithms to ensure the confiden.docx
DOCX
CSc3320 Assignment 6 Due on 24th April, 2013 Socket programming .docx
CSIA 413 Cybersecurity Policy, Plans, and Programs.docx
CSIS 100CSIS 100 - Discussion Board Topic #1One of the object.docx
CSI Paper Grading Rubric- (worth a possible 100 points) .docx
CSIA 413 Cybersecurity Policy, Plans, and ProgramsProject #4 IT .docx
CSI 170 Week 3 AssingmentAssignment 1 Cyber Computer CrimeAss.docx
CSE422 Section 002 – Computer Networking Fall 2018 Ho.docx
CSCI  132  Practical  Unix  and  Programming   .docx
CSCI 714 Software Project Planning and EstimationLec.docx
CSCI 561Research Paper Topic Proposal and Outline Instructions.docx
CSCI 561 DB Standardized Rubric50 PointsCriteriaLevels of .docx
CryptographyLesson 10© Copyright 2012-2013 (ISC)², Inc. Al.docx
CSCI 352 - Digital Forensics Assignment #1 Spring 2020 .docx
CSCE 1040 Homework 2 For this assignment we are going to .docx
CSCE509–Spring2019Assignment3updated01May19DU.docx
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
CSCE 3110 Data Structures & Algorithms Summer 2019 1 of .docx
CSCI 340 Final Group ProjectNatalie Warden, Arturo Gonzalez, R.docx
CSC-321 Final Writing Assignment In this assignment, you .docx
Cryptography is the application of algorithms to ensure the confiden.docx
CSc3320 Assignment 6 Due on 24th April, 2013 Socket programming .docx
Ad

Recently uploaded (20)

PDF
Trump Administration's workforce development strategy
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Pharma ospi slides which help in ospi learning
PPTX
master seminar digital applications in india
PDF
Computing-Curriculum for Schools in Ghana
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Weekly quiz Compilation Jan -July 25.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Yogi Goddess Pres Conference Studio Updates
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Trump Administration's workforce development strategy
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
Anesthesia in Laparoscopic Surgery in India
Pharma ospi slides which help in ospi learning
master seminar digital applications in india
Computing-Curriculum for Schools in Ghana
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
O7-L3 Supply Chain Operations - ICLT Program
Weekly quiz Compilation Jan -July 25.pdf
Final Presentation General Medicine 03-08-2024.pptx
Yogi Goddess Pres Conference Studio Updates
VCE English Exam - Section C Student Revision Booklet
Chinmaya Tiranga quiz Grand Finale.pdf
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
RMMM.pdf make it easy to upload and study
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape

final home work for database.DS_Store__MACOSXfinal home wo.docx