EBK DATABASE CONCEPTS
7th Edition
ISBN: 9780133544886
Author: AUER
Publisher: PEARSON CUSTOM PUB.(CONSIGNMENT)
expand_more
expand_more
format_list_bulleted
Concept explainers
Expert Solution & Answer
Chapter 2, Problem 2.19RQ
Explanation of Solution
According to the reference of book, the terms “primary key” and “foreign key” are defined as follows:
Primary key:
- Primary key is like a candidate key in which it uniquely identifies each row in a relation.
- For example consider that there is an “Employee” table in which “emp_id” is unique so it is chosen as a primary key in
database table. - In this book, primary keys are underlined.
- For example consider that there is an “Employee” table in which “emp_id” is unique so it is chosen as a primary key in
Foreign key:
- To maintain the relationship between the database tables, the values are placed from one relation to second relation.
- The values used in first relation come under the primary key values whereas the values that are referred in second relation come under the foreign key...
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
What use does using keys serve exactly?
Explain the difference between Primary Key and Foreign Key , give example
is it true that a foreign key is a column in one table that contains the primary key value of associated object?select the correct answera)trueb) false
Chapter 2 Solutions
EBK DATABASE CONCEPTS
Ch. 2 - Prob. 2.1RQCh. 2 - Define the term entity, and give an example of an...Ch. 2 - Prob. 2.3RQCh. 2 - Prob. 2.4RQCh. 2 - Prob. 2.5RQCh. 2 - Prob. 2.6RQCh. 2 - Prob. 2.7RQCh. 2 - Prob. 2.8RQCh. 2 - Prob. 2.9RQCh. 2 - Define the term unique key and give an example.
Ch. 2 - Prob. 2.11RQCh. 2 - Prob. 2.12RQCh. 2 - Prob. 2.13RQCh. 2 - Describe four uses of a primary key.Ch. 2 - Prob. 2.15RQCh. 2 - Prob. 2.16RQCh. 2 - Prob. 2.17RQCh. 2 - Explain the term foreign key, and give an example.Ch. 2 - Prob. 2.19RQCh. 2 - Prob. 2.20RQCh. 2 - Explain three possible interpretations of a null...Ch. 2 - Give an example of a null value (other than one...Ch. 2 - Prob. 2.23RQCh. 2 - Prob. 2.24RQCh. 2 - Prob. 2.25RQCh. 2 - Prob. 2.26RQCh. 2 - Prob. 2.27RQCh. 2 - Define the term primary key in terms of functional...Ch. 2 - Prob. 2.31RQCh. 2 - Examine the data in the Veterinary Office...Ch. 2 - Prob. 2.33RQCh. 2 - Describe a modification problem that occurs when...Ch. 2 - Prob. 2.35RQCh. 2 - Prob. 2.36RQCh. 2 - Prob. 2.37RQCh. 2 - Apply the normalization process to the Veterinary...Ch. 2 - Prob. 2.39ECh. 2 - Prob. 2.40E
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.Similar questions
- Access path A database table is composed of records and fields hold data. Data is stored in records. A field is a part of a record and contains a single piece of data for the subject of the record. The access path for finding the list of books is AUTHOR: AuthorID, Lname BOOKAUTHOR: AuthorID, ISBN BOOKS: Pubdate, ISBNarrow_forwardA foreign key should normally have the same name as the primary key from which it was copied. Group of answer choices True Falsearrow_forwardwhich term defines a column or group of Columns that refers to a primary key in different table a)Composite key b) Super key c) Foreign key d) Simple keyarrow_forward
- Table 2 stores details of doctors, patients and dates of appointments. The Primary Key is (doctorID, patientID). i. Explain why the above table is not in 2nd Normal Form. ii. Normalize the table to 3rd Normal Form.arrow_forwardThe following table stores details of tutors, students and dates of lectures. The Primary Key is (TutorID, StudentID). TutorID TutorName StudentID StudentName Lecture_date T01 Kong S1052 Salim 10-May-19 T01 Kong S1051 Vikram 5-Jul-19 T02 Smith S1052 Salim 10-May-19 Explain why the above table is not in 2nd Normal Form. Normalize the table to 3rd Normal Form.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_forward
- Any relation must have at least ONE Select one: a. Foreign Key b. Composite key c. Alternate key d. Candidate keyarrow_forwardThe following fields are presented in the table: Member Last Name, MemberFirstName, Street, City, State, ZipCode and MemberFee. The table contains 75,000 documents. How would you build indexes for the table and why would you create these indexes?arrow_forwardComputer Science I need help with writing the query in a SQL server Management (database) the question is what are the procedure and triggers in these descriptions? or which procedure and trigger are used for this description If the Students have English as a second language, they need to be placed in classes only reserved for them. If English is a first language, then they need to be placed into specific classes reserved for them.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- A Guide to SQLComputer ScienceISBN:9781111527273Author:Philip J. PrattPublisher:Course Technology PtrProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage Learning
- Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:CengageProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage