A Guide to SQL
9th Edition
ISBN: 9781111527273
Author: Philip J. Pratt
Publisher: Course Technology Ptr
expand_more
expand_more
format_list_bulleted
Concept explainers
Expert Solution & Answer
Chapter 2, Problem 9RQ
Explanation of Solution
Functional dependency:
- A column “X” is said to be functionally dependent on another column “Y”, when at any point of time, a value for “X” determines a single value for “Y”.
- In other words, a column “X” is said to be functionally dependent on another column “Y”, when two tuples agree on attribute “X” values then they should also agree on attribute “Y” values.
- It is usually represented as “XY”, where the terms “X” and “Y” are composite.
- It can be said as either “Y” is functionally dependent on “X” or as “X” functionally determines “Y”...
Expert Solution & Answer
Trending nowThis is a popular solution!
Students have asked these similar questions
You are designing a table for the Sales department. You need to include a column that contains each sales total. Which data type should you specify for this column?
Select one:
a. CHAR
b. DATE
c. NUMBER
d. VARCHAR
In the process of query optimization, query cost refers to:
A) How long it takes to execute a query.
B) How much electricity is used to execute a query.
C) How many query hints were used to execute a query.
D) All of the above.
Write advantage and disadvantage of a query
Chapter 2 Solutions
A Guide to SQL
Ch. 2 - Prob. 1RQCh. 2 - What is an attribute?Ch. 2 - What is a relationship? What is a one-to-many...Ch. 2 - Prob. 4RQCh. 2 - What is a relation?Ch. 2 - Prob. 6RQCh. 2 - Prob. 7RQCh. 2 - How do you qualify the name of a field, and when...Ch. 2 - Prob. 9RQCh. 2 - What is a primary key? What is the primary key for...
Ch. 2 - Prob. 11RQCh. 2 - Prob. 12RQCh. 2 - Define second normal form. What types of problems...Ch. 2 - Define third normal form. What types of problems...Ch. 2 - Prob. 15RQCh. 2 - Prob. 16RQCh. 2 - List the changes you would need to make to your...Ch. 2 - Prob. 1TDCh. 2 - Prob. 2TDCh. 2 - Prob. 3TDCh. 2 - Prob. 4TDCh. 2 - Prob. 5TDCh. 2 - Prob. 1CATCh. 2 - Identify the functional dependencies in the...Ch. 2 - Prob. 3CATCh. 2 - Determine the functional dependencies that exist...Ch. 2 - Prob. 2SCGCh. 2 - Prob. 3SCG
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
- What happens if you try to decrease the scale or precision of a NUMBER column to a value less than the data already stored in the field?arrow_forwardCreate the following indexes: a. Create an index named TRIP_INDEX1 on the TRIP_NAME column in the TRIPtable. b. Create an index named TRIP_INDEX2 on the TYPE column in the TRIP table. c. Create an index named TRIP_INDEX3 on the LAST_NAME and FIRST_NAME columns in the CUSTOMER table.arrow_forwardPerform the following tasks: a. Create an index named ITEM_INDEX1 on the ITEM_NUM column in the ORDER_LINEtable. b. Create an index named ITEM_INDEX2 on the CATEGORY column in the ITEMtable. c. Create an index named ITEM_INDEX3 on the CATEGORY and STOREHOUSE columnsin the ITEM table. d. Create an index named ITEM_INDEX4 on the CATEGORY and STOREHOUSEcolumns in the ITEM table. List categories in descending order.arrow_forward
- What are the guidelines to keep in mind when using a column alias?arrow_forwardA unique identifier for a data row that consists of more than one field is commonly called a: primary plus key composite primary key foreign key none of the abovearrow_forwardWhat is the maximum number of columns you can define as a primary key when using the column-level approach to creating a table? a. 0 b. 1 c. 30 d. 255arrow_forward
- A Data Table is one of the table types that you can associate with a given table. Group of answer choices True Falsearrow_forwardAlter table product so that column productType is an integer instead of a varchar, not null should be maintained. Alter table product so that column productType is a foreign key to table productType, column id Alter table customer so that column zipCode is a foreign key to table çityState. column zipCode Alter table customer to drop column city and state Alter table employee so that column zipCode is a foreign key to table çityState. column zipCode Alter table employee to drop column city and state Alter table supplier so that column zipCode is a foreign key to table çityState, column zipCode Alter table supplier to drop column city and statearrow_forwardQ9) find the least expensive priceQ10) List the UNIQUE v_code of vendors that provide productsQ11) find the most expensive priceQ12) List the number of products by vendor with the average price, include only the rows withaverage price below 10.00Q13) List all vendor rows (including the ones that have no matching products) and all matchingproduct rowsarrow_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 Ptr
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageNp Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage