MODERN DATABASE MGMT.(PEARSON CHANNEL)
13th Edition
ISBN: 9780136709299
Author: Hoffer
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
Chapter 9, Problem 9.36PAE
Program Plan Intro
(a)
To construct:
Table for the given transactions assuming the data as transient.
Program Plan Intro
(b)
To construct:
The tables for the given transactions if the data is periodic.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Q2: A-Given the following tables:
Student
Subject
Std_ID
001
002
003
004
Fname
Smith
Smith
Beal
Thomson
Lname
Jolin
Susan
Fred
Marie
Std_ID
001
001
002
002
003
Semester
004
Falls03
Spro4
Falls03
C_ID
Eng01
Ger01
Eng01
Ger01
Ger01
CSection
Spro4
Spro4
Spro4
1. For each table in the database, identify the primary key and the foreign key(s).
2. Do the tables exhibit entity integrity? Explain your answer?
3. Do the tables exhibit referential integrity? Explain your answer?
Ita01
ZZZZZZ
IN
2N
IN
2N
IN
CName
English
IN
German
English
German
German
Italian
Grade
A
B
A
B
A
B
Problem: JMS TechWizards is a local company that provides technical services to several small businesses in the area. The company currently keeps its technicians and clients’ records on papers. The manager requests you to create a database to store the technician and clients’ information.
The following table contains the clients’ information.
Client Number
Client Name
Street
City
State
Postal Code
Telephone Number
Billed
Paid
Technician Number
AM53
Ashton-Mills
216 Rivard
Anderson
TX
78077
512-555-4070
$315.50
$255.00
22
AR76
The Artshop
722 Fisher
Liberty Corner
TX
78080
254-555-0200
$535.00
$565.00
23
BE29
Bert's Supply
5752 Maumee
Liberty Corner
TX
78080
254-555-2024
$229.50
$0.00
23
DE76
D & E Grocery
464 Linnell
Anderson
TX
78077
512-555-6050
$485.70
$400.00
29
GR56
Grant Cleaners
737 Allard
Kingston
TX
78084
512-555-1231
$215.00
$225.00
22…
The following database will be used in this question:
SALESREP
SalesRepNo
654
734
345
434
RepName
Jones
Smith
Chen
Johnson
HireDate
01/02/2005
02/03/2007
01/25/2004
11/23/2004
CUSTOMER
CustNo
9870
8590
7840
4870
CustName
Winston
Gonzales
Harris
Miles
Balance
500
350
SalesRepNo
345
434
654
345
800
100
Chapter 9 Solutions
MODERN DATABASE MGMT.(PEARSON CHANNEL)
Ch. 9 - Prob. 9.1RQCh. 9 - Prob. 9.2RQCh. 9 - Prob. 9.3RQCh. 9 - List the five major trends that necessitate data...Ch. 9 - Prob. 9.5RQCh. 9 - Prob. 9.6RQCh. 9 - Prob. 9.7RQCh. 9 - Prob. 9.8RQCh. 9 - Prob. 9.9RQCh. 9 - Prob. 9.10RQ
Ch. 9 - List four objectives of derived data.Ch. 9 - Prob. 9.12RQCh. 9 - Prob. 9.13RQCh. 9 - Explain the pros and cons of logical data marts.Ch. 9 - Prob. 9.15RQCh. 9 - What is a helper table, and why is it often used...Ch. 9 - Describe the characteristics of a surrogate key as...Ch. 9 - Prob. 9.18RQCh. 9 - What is the purpose of conformed dimensions for...Ch. 9 - Prob. 9.20RQCh. 9 - Prob. 9.21RQCh. 9 - Prob. 9.22RQCh. 9 - Prob. 9.23RQCh. 9 - Prob. 9.24RQCh. 9 - Prob. 9.25RQCh. 9 - Describe the current key trends in data...Ch. 9 - Discuss the benefits of offering data warehousing...Ch. 9 - Prob. 9.28RQCh. 9 - List six typical characteristics of reconciled...Ch. 9 - Prob. 9.30RQCh. 9 - Prob. 9.31RQCh. 9 - Prob. 9.32RQCh. 9 - Prob. 9.33RQCh. 9 - Describe some field-level and record-level data...Ch. 9 - Prob. 9.35PAECh. 9 - Prob. 9.36PAECh. 9 - Prob. 9.37PAECh. 9 - Prob. 9.38PAECh. 9 - You are to construct a star schema for Simplified...Ch. 9 - Simplified Automobile Insurance Company would like...Ch. 9 - Prob. 9.41PAECh. 9 - Prob. 9.42PAECh. 9 - Prob. 9.43PAECh. 9 - Prob. 9.45PAECh. 9 - Prob. 9.46PAECh. 9 - Prob. 9.47PAECh. 9 - Prob. 9.48PAECh. 9 - Prob. 9.49PAECh. 9 - Prob. 9.50PAECh. 9 - Prob. 9.51PAECh. 9 - Prob. 9.52PAECh. 9 - Prob. 9.53PAECh. 9 - Prob. 9.54PAE
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- An EMPLOYEES table was added to the JustLee Books database to track employee information. Display a list of each employee’s name, job title, and manager’s name. Use column aliases to clearly identify employee and manager name values. Include all employees in the list and sort by manager name.arrow_forwardBelow is part of a Student database. The primary keys are highlighted in bold. Student (studNo, studName, address, mobileNo) Registration (studNo, courseNo, regDate, semester, session) Course (courseNo, courseName, creditHour, level) Project (projNo, projName, courseNo) Assignment (projectNo, studNo, startDate, dueDate, hoursSpent) QUESTION 1. Write a PL/SQL FUNCTION that calculates the cost each student has to pay for all courses taken. In the photo is example the cost detail for each course. 2. Write a PL/SQL Procedure to call the function you created in question 1 . Allow the user to enter the student ID (studno). SECOND PHOTO IS THE EXAMPLE OF EXPECTED OUTPUTarrow_forwardThe data in flat files has been provided: INVOICE TABLE INVOICE_NUM CUSTOMER_ID INVOICE_DATE EMPLOYEE_ID COIN_ID DELIVERY_ID 8111 11011 15 May 2021 emp103 7111 511 8112 11013 15 May 2021 emp101 7116 512 8113 11012 17 May 2021 emp101 7112 513 8114 11015 17 May 2021 emp102 7111 514 8115 11011 17 May 2021 emp102 7115 515 8116 11015 18 May 2021 emp103 7115 516 8117 11012 19 May 2021 emp105 7112 517 8118 11013 19 May 2021 emp105 7112 517 COIN_RETURNS TABLE RETURN_ID RETURN_DATE REASON CUSTOMER_ID COIN_ID EMPLOYEE_ID ret001 25 May 2021 Customer not satisfied with product 11011 7116 emp101 ret002 25 May 2021 Product missing part 11013 7114 emp103 COIN TABLE COIN_ID PRODUCT PRICE QTY 7111 1oz Gold Kruger Rand R 5 999 10 7112 1oz Silver Kruger Rand R 12 999 8 7113 Gold Big 5 Uncirculated R 15 999 8 7114 Silver Big 5 Pack R 7 999 5 7115 1oz Gold Palaeontology R 11 999 15 7116 1oz Silver Palaeontology R 7 999 12 COIN_DELIVERY TABLE…arrow_forward
- Assume the EMPLOYEE table contains four attributes, ID, DEPT, SALARY and NAME, and has the following rows ID DEPT SALARY NAME 100 SALES 40000 Smith 101 RD 38000 Terry 102 HR 60000 David 103 SALES 58000 Ellie 104 RD 70000 Judy The DEPARTMENT table contains two attributes, DEPTNAME and PHONE, and has the following rows: DEPTNAME PHONE RD 8596001234 SALES 8596005555 HR 8596009876 A.) The EMPLOYEE table needs to enforce the following integrity constraints: • The ID is the primary key. • The DEPT column is a foreign key that references the DEPTNAME in the DEPARTMENT table, so that any value that appears in the DEPT column should also exist in the DEPARTMENT table. • The value for the NAME column can never be null. What should be the statement used to create the EMPLOYEE table, if 1) the table was created as a partitioned table such…arrow_forwardQuestion: List the names of any pair of boats that have the same type. For example, one pair would be Anderson II and Escape, because the boat type for both boats is Sprite 4000. The first name listed should be the major sort key and the second name should be the minor sort key. Database: CREATE DATABASE ALEXAMARA; USE ALEXAMARA; CREATE TABLE MARINA_SLIP(SLIP_ID DECIMAL(4,0) PRIMARY KEY,MARINA_NUM CHAR(4),SLIP_NUM CHAR(4),LENGTH DECIMAL(4,0),RENTAL_FEE DECIMAL(8,2),BOAT_NAME CHAR(50),BOAT_TYPE CHAR(50),OWNER_NUM CHAR(4) );CREATE TABLE OWNER(OWNER_NUM CHAR(4) PRIMARY KEY,LAST_NAME CHAR(50),FIRST_NAME CHAR(20),ADDRESS CHAR(15),CITY CHAR(15),STATE CHAR(2),ZIP CHAR(5) ); INSERT INTO MARINA_SLIPVALUES(1,'1','A1',40,3800.00,'Anderson II','Sprite 4000','AN75');INSERT INTO MARINA_SLIPVALUES(2,'1','A2',40,3800.00,'Our Toy','Ray 4025','EL25');INSERT INTO MARINA_SLIPVALUES(3,'1','A3',40,3600.00,'Escape','Sprite 4000','KE22');INSERT INTO MARINA_SLIPVALUES(4,'1','B1',30,2400.00,'Gypsy','Dolphin…arrow_forwardWrite SQL statements to list the name of Lee’s subordinate employee. (Data Update) Write SQL statements to increase by 100000 the budget of the project whose name is starting with ‘B’. Write SQL statements to delete the rows for the LR (Little Rock) employees who are under the supervision of supervisor 8.arrow_forward
- Observe the table ENROLLMENT: ENROLLMENT TTE StudentID StudentName MajorID MajorName 111 Joe English 222 Bob History 333 Lisa H History Which of the following actions in the table ENROLLMENT will be affected by a modification anomaly (with its current 3 records)? None of the answers O Changing the name of Joe to Joseph O Changing the name of Lisa to Lizzy O Changing the name of Bob to Robert O Changing the name of English to English Literaturearrow_forwardQ8) Which option represent the relations that will result from mapping the following ERD: Instructor Lec ID name Semester Teaches Lecture Year Course ID Lec_Course a) Instructor (ID, Name) Teaches (ID, Course ID, Lec ID, Semester, Year) Lecture (Course ID, Lec ID, Semester, Year) Course (Course ID, Title, Credits) b) Instructor (ID, Name) Teaches (ID, Course ID, Lec ID, Semester, Year) Lecture (Course ID, Lec ID, Semester, Year) Course (Course ID, Title, Credits, Pre-Rea) c) Instructor (ID, Name) Teaches (ID, Course ID, Lec ID, Semester, Year) Lecture (Course ID, Lec ID, Semester, Year) Course (Course ID, Title, Credits) Pre_Req (Course_ID, Prereq_ID) d) Instructor (ID, Name) Teaches (ID, Course ID, Lec ID, Semester, Year) Lecture (Course ID, Lec ID, Semester, Year) Course (Course ID, Title, Credits) Pre_Req (Course ID, Prereq_ID) Title Course_ID Credits Course Pre_Req Prereq_IDarrow_forwardA company that provides a movie-streaming subscription service uses a relational database to store information on movies to answer customer questions. Each entry in the database contains the following items: Movie ID (the primary key), movie title, year made, movie type, MPAA rating, starring actor #1, starring actor #2, starring actor #3, and director. Movie types are action, comedy, family, drama, horror, science fiction, and western. MPAA ratings are G, PG, PG-13, R, NC-17, and NR (not rated). Using a graphics program, develop an entity-relationship diagram for a database application for this database.arrow_forward
- The database should contain the following six tables: Artists (artist_id: char(30), artist_name: char(30), artist_pop: int(5))Tracks (track_id: char(30), track_name: char(30), duration: int(10), tempo:real) Record (artist_id: char(30), track_id: char(30))Users (user_id: char(30), user_name: char(30), age: int(5), nationality: char(30), num_track_listened: int(10))Listen (user_id: char(30), track_id: char(30))Follow (user_id: char(30), artist_id: char(30), follow_date: datetime) Write a single SQL query for each request below. Find the ids of those users who have listened to at least one track but have not followed any artists. Find the ids and names of those users who have listened to some tracks recorded by the artist named 'Adele'. Find the ids and names of those users who have not listened to any track recorded by the artist named 'Adele'. Use ''NOT EXISTS'' to answer this query.arrow_forwardWhich one is correct Select the constraint (if any) that is violated by each the following operations in questions. Use Tables to answer the questions. STUDENTS COURSES NAME Sarah STUDENT COURSE CID 111 ID MAJOR BDATE CNAME Database PRECOURSE SID GRADE CS 1/2/1990 3/6/1991 111 60 Sahar CS 222 Prog2 Progl 444 60 All CIS 333 666 222 50 Khalid CS 1/11/1985 2/8/1986 444 Data struc 60 Abed CIS 555 Java 222 555 80 Omar CS 6/5/1993 666 Introduction 444 70 Insert into Courses O Key constraint O Entity Integrity Constraint Accepted O Key constraint & Domain constraint Domain constraint Referential Integrity Constraintarrow_forwardUsing the Henry Books database,Henry Books no longer carries books written by Barbara Owen. Delete this author from the authors table. You will insert 2 snips for this question. What construct did you use to delete author Barbara Owens? Insert the snip of the construct used: Insert the snip of the authors table. Be sure all rows are displayed:arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781305627482Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781285196145Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos CoronelPublisher:Cengage Learning
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781285196145
Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage