Systems Analysis and Design (Shelly Cashman Series) (MindTap Course List)
11th Edition
ISBN: 9781305494602
Author: Scott Tilley, Harry J. Rosenblatt
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Question
Chapter 9, Problem 3DT
Program Plan Intro
Identify the possible candidate keys, the likely primary key, a probable foreign key, and a potential secondary key for the given situation.
Expert Solution & Answer
Trending nowThis is a popular solution!
Students have asked these similar questions
Consider an automobile dealership with three locations. Data fields exist for stock number, vehicle identification number, make, model, year, color, and invoice cost. Identify the possible candidate keys, the likely primary key, a probable foreign key, and potential secondary keys. What is the best keys possible?
Consider a three-location vehicle dealership. Stock number, vehicle identification number, make, model, year, color, and invoice cost are all data variables. Determine the potential candidate keys, the most likely primary key, a likely foreign key, and possible subsidiary keys.
Think about a car dealership that has three locations. Stock number, vehicle identification number, make, model, year, color, and invoice cost are among the data variables that are available. Determine the prospective candidate keys, the probable main key, the likely foreign key, and the potential subsidiary keys. Which keys would be ideal?
Chapter 9 Solutions
Systems Analysis and Design (Shelly Cashman Series) (MindTap Course List)
Knowledge Booster
Similar questions
- Let's say a major key characteristic also functions as a candidate key. What response would you make to this?arrow_forwardconsider the database below and answer the query. pk refers to primary key and FK refers to foreign key. Employee(Employee_id(PK), First_name, Last_name, Email, Phone_number, Hire_Date, Job_ID(FK) COmmision_pct, manager_id, department_id(FK)) Departments(Department_id(PK), dept_name, manager_id(FK), location_id) Locations(Location_id(PK), street_address, postal_code, city, state_province, country_id) Countries(Country_id(PK), Country_name, region_id) Jobs(Job_id(PK), job_title, min_salary, max_salary) write a pl/sql script (using cursor and %TYPE) query to show the ames of all the departments which are not located in US or Canadaarrow_forwardconsider the database below and answer the query. pk refers to primary key and FK refers to foreign key. Employee(Employee_id(PK), First_name, Last_name, Email, Phone_number, Hire_Date, Job_ID(FK) COmmision_pct, manager_id, department_id(FK)) Departments(Department_id(PK), dept_name, manager_id(FK), location_id) Locations(Location_id(PK), street_address, postal_code, city, state_province, country_id) Jobs(Job_id(PK), job_title, min_salary, max_salary) write a pl/sql script (using cursor and %TYPE) query to show the ames of all the departments which are not located in US or Canadaarrow_forward
- consider the database below and answer the query. pk refers to primary key and FK refers to foreign key. Employee(Employee_id(PK), First_name, Last_name, Email, Phone_number, Hire_Date, Job_ID(FK) COmmision_pct, manager_id, department_id(FK)) Departments(Department_id(PK), dept_name, manager_id(FK), location_id) Locations(Location_id(PK), street_address, postal_code, city, state_province, country_id) Jobs(Job_id(PK), job_title, min_salary, max_salary) write a pl/aql script to create a procedure the string accordingly, if the employee is receiving any commision(COMMISSION_PCT) or not. the argument of the profedure is Empl_id. also, write the procedure callarrow_forwardconsider the database below and answer the query. pk refers to primary key and FK refers to foreign key. Employee(Employee_id(PK), First_name, Last_name, Email, Phone_number, Hire_Date, Job_ID(FK) COmmision_pct, manager_id, department_id(FK)) Departments(Department_id(PK), dept_name, manager_id(FK), location_id) Locations(Location_id(PK), street_address, postal_code, city, state_province, country_id) Jobs(Job_id(PK), job_title, min_salary, max_salary) write a pl/sql script to create a trigger that prints"the department name is changed from IT to sales" whenever the department is changed from IT to salesarrow_forwardconsider the database below and answer the query. pk refers to primary key and FK refers to foreign key. Employee(Employee_id(PK), First_name, Last_name, Email, Phone_number, Hire_Date, Job_ID(FK) COmmision_pct, manager_id, department_id(FK)) Departments(Department_id(PK), dept_name, manager_id(FK), location_id) Locations(Location_id(PK), street_address, postal_code, city, state_province, country_id) Jobs(Job_id(PK), job_title, min_salary, max_salary) wirte a function (with one argument : department name) that calculates and returns the total number of employees who are not working in IT department and earning more than $5000. write an appropriate call also. COMP 214 pl/sqlarrow_forward
- Closely examine the following tables and use it to answer the questions that follow: department course student_type student_category Student registration registration_type Suppose that the following are true: - all id column are primary keys in whichever table they are - the dept_id in course table is foreign key that is referencing the id column in the department table - the foreign keys stud_type_id, stud_cat_id in the student table are referencing the id columns in the student_type and student_category tables respectively. - the coursecode and stud_id columns in the registration table are foreign keys in the course and student tables respectively. 1. Design an Entity Relationship Diagram for the system above. 2. Write query that would return the names and contacts of all Local students. 3. Write a query that would return names, contact and locations of all departments that has a location text with Ave 3 as part of it. [hint: use the LIKE clause with “_” or “%”] 4. What would…arrow_forwardClosely examine the following tables and use it to answer the questions that follow:departmentstudent_type student_categorycourseStudentregistration registration_typeSuppose that the following are true:- all id column are primary keys in whichever table they are- the dept_id in course table is foreign key that is referencing the id column in the department table- the foreign keys stud_type_id, stud_cat_id in the student table are referencing the id columnsin the student_type and student_category tables respectively.- the coursecode and stud_id columns in the registration table are foreign keys in the courseand student tables respectively.1. Design an Entity Relationship Diagram for the system above.2. Write query that would return the names and contacts of all Local students.3. Write a query that would return names, contact and locations of all departments that has alocation text with Ave 3 as part of it. [hint: use the LIKE clause with “_” or “%”]4. What would be the result returned…arrow_forwardSuppose that the following are true:- all id column are primary keys in whichever table they are- the dept_id in course table is foreign key that is referencing the id column in the department table- the foreign keys stud_type_id, stud_cat_id in the student table are referencing the id columnsin the student_type and student_category tables respectively.- the coursecode and stud_id columns in the registration table are foreign keys in the courseand student tables respectively.1. Design an Entity Relationship Diagram for the system above.2. Write query that would return the names and contacts of all Local students.3. Write a query that would return names, contact and locations of all departments that has alocation text with Ave 3 as part of it. [hint: use the LIKE clause with “_” or “%”]4. What would be the result returned for the following query:SELECT first_name, last_name, student_type.name,student_category.nameFROM student, student_type, student_categoryWHERE stud_type_id =…arrow_forward
- If possible provide answer using dummy values. Person (PID, first_name, last_name, age, gender) School (school_ID, school_name, type, city, state) Education (PID, school_ID, degree, major, year) Company (company_ID, company_name, total_asset, headquarter) Branch (company_ID, branch_num, city, state) WorksAt (PID, company_ID, branch_num, start, end) Connection (PID, friend_ID) For each relation, the attribute(s) of the primary key is(are) underlined. In addition the following foreign key constraints hold: In Education, PID is a foreign key that references Person(PID), and school_ID is a foreign key that references School(school_ID) In Branch, company_ID is a foreign key that references Company(company_ID) In WorksAt, PID is a foreign key that references Person(PID); (company_ID, branch_num) is a foreign key that references Branch(company_ID, branch_num) In Connection, PID is a foreign key that references Person(PID); friend_ID is a foreign key that references…arrow_forwardQuestion 6. Consider the following relation: Invoice(Order_ID, Order_Date, Customer_ID, Customer_Name,Customer_Address,Product_ID, Product_Desc, Price, Order_Quantity) FD1 - Order_ID -> Order_Date, Customer_ID, Customer_Name, Customer_Address FD2 - Customer_ID -> Customer_Name, Customer_Address FD3 - Product_ID -> Product_Description, Price FD4 - Order_ID, Product_ID -> Order_Quantity What are the candidate keys of this relation? Give reasons to explain if this is in 1NF or not. If not, decompose it to 1NF. Give reasons to explain if this is in 2NF or not. If not, decompose it to 2NF. Give reasons to explain if this is in 3NF or not. If not, decompose it to 3NF.arrow_forwardDiscuss the notion of a candidate key being a characteristic that is part of a composite primary key.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education