Question

Need to find the partial and transitive dependencies of the following fields: cust_code = code that...

Need to find the partial and transitive dependencies of the following fields:

cust_code = code that identifies a customer

cus_lname = customer last name

cus_areacode = area code of the 7 digit phone number of a customer

cus_initial = customer initials

cus_balance = balance to be paid by the customer

cus_phone = 7 digit phone number

cus_fname = customer first name

inv_number = number representing an invoice

inv_date = date of the invoice

line_number = an invoice contains many items of sale; each sale is written as a line in an invoice with a number that identifies the particular sale line

line_units = number of units bought of the particular product in that line

P_code = product code

line_price = each line represents a product number of units, hence the line's total price

P_QOH = Quantity On Hand (for stock purposes)

P_discount = product specific discount

v_code = vendor code

p_price = price of the product

p_min = minimum number of units to be in stock (for ordering purpose)

p_description = description of the product

p_indate = when the product came in last time

v_code = vendor code

v_contact = contact info of vendor

v_phone = vendor phone number

v_order = last vendor order number

v_state = state of vendor

v_areacode = area code of vendor

0 0
Add a comment Improve this question Transcribed image text
Answer #1

cust_code , cus_lname, cus_initial , cus_fname

Cust code---->cus_areacode

cust_code--->cus_balance

cust_code------->cus_phone

cust code determines, lname,fname,initial therefore parital dependency exits

cust code determines cus_areacode,custbalance,customer phone therefore parital dependency exits between custcode to all other customer related attributes.

inv_number is a primary which determines the following attributes ,

thus inv_date ,line_number and line_units are partially dependent on inv_number

Transitive dependency exits betwen line_number and line_units because nonprimary key determines another attribute.Here line number is non primary key.

P_code determines P_discount,p_price ,p_description so they are partially dependent on p code

p_code--> P_Qoh, p_min, p_indate //partial dependency

p_code-->line_price //partial dependency

V_code determines v_contact, V_phone, V_state, V-area code //partial dependency

Transitive dependencyexists between V_order and line number ,line units, lineprice

v_code

p_price

p_min

p_description = description of the product

p_indate =

Add a comment
Know the answer?
Add Answer to:
Need to find the partial and transitive dependencies of the following fields: cust_code = code that...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 2. Find the maximum QOH of all products. it generates INVOICE PK IN NUMBER FK1CuS_CODE INV_DATE...

    2. Find the maximum QOH of all products. it generates INVOICE PK IN NUMBER FK1CuS_CODE INV_DATE contains CUSTOMER PK CUS_CODE CUS_LNAME CUS FNAME CUS INITIAL CUS AREACODE CUS PHONE CUS_BALANCE + LINE PKFK1 INV_NUMBER +PX LINE NUMBER FK2 P CODE LINE_UNITS LINE_PRICE is found in VENDOR PKY_CODE V_NAME CONTACT HF - Supplies PRODUCT PK ecoot P_DESCRIPT P_INDATE P QOH P_MIN P PRICE P_DISCOUNT FK1V_CODE V_AREACODE V_PHONE V_STATE V_ORDER

  • this is about databases and SQL, please help me with this and i promise i will...

    this is about databases and SQL, please help me with this and i promise i will thumbs you up :) let me know if you need more info please try to get this done i will definitely thumbs you up :)) PROJECT TOPIC: Library: Books, Copies of the books, Patrons, Checkouts when creating ERD diagram, the notation must be in crows notation, attached at the bottom is an example of crows foot notation in databases so you can understand. PDF...

  • this is about databases and SQL, please help me with this and i promise i will...

    this is about databases and SQL, please help me with this and i promise i will thumbs you up :) let me know if you need more info please try to get this done i will definitely thumbs you up :)) PROJECT TOPIC: Library: Books, Copies of the books, Patrons, Checkouts when creating ERD diagram, the notation must be in crows notation, attached at the bottom is an example of crows foot notation in databases so you can understand. PDF...

  • What would I have to write into the MySQL Workbench query to execute these commands? -...

    What would I have to write into the MySQL Workbench query to execute these commands? - Show all vendor information with vendor contact information in upper case like "SMITH". - Show the customer balance in total, in average, in minimized and in maximized value. - Show all customer information whose balance is greater than $500. - Aggregate the total cost of products grouped by V_CODE, and only show the records with total exceeds $500, and list the records in descending...

  • * myCompany.SQL Introduction to SQL Script file for ORACLE DBMS This script file creates the following...

    * myCompany.SQL Introduction to SQL Script file for ORACLE DBMS This script file creates the following tables: VENDOR, PRODUCT, CUSTOMER, INVOICE, LINE EMPLOYEE and loads the default data rows */ set echo on; set serveroutput on; select systimestamp from dual; show user; ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-YYYY'; DROP TABLE LINE CASCADE CONSTRAINTS; DROP TABLE INVOICE CASCADE CONSTRAINTS; DROP TABLE CUSTOMER CASCADE CONSTRAINTS; DROP TABLE PRODUCT CASCADE CONSTRAINTS; DROP TABLE VENDOR CASCADE CONSTRAINTS; DROP TABLE EMPLOYEE CASCADE CONSTRAINTS; CREATE TABLE...

  • Using the ch08_saleco database write a T-SQL query to display the customer code, invoice number invoice...

    Using the ch08_saleco database write a T-SQL query to display the customer code, invoice number invoice date, and invoice subtotal from invoice conditioned on the invoice subtotal is greater than $100 and from only customer codes 10011 and 10012. (hint: in) /* Database Systems, 8th Ed., Rob/Coronel */ /* Type of SQL : SQL Server */ CREATE TABLE CUSTOMER ( CUS_CODE int, CUS_LNAME varchar(15), CUS_FNAME varchar(15), CUS_INITIAL varchar(1), CUS_AREACODE varchar(3), CUS_PHONE varchar(8), CUS_BALANCE float(8) ); INSERT INTO CUSTOMER VALUES('10010','Ramas','Alfred','A','615','844-2573','0'); INSERT...

  • Create a stored procedure named prc_inv_amounts to update the INV_SUBTOTAL, INV_TAX, and INV_TOTAL. The procedure takes the invoice number as a parameter. The INV_SUBTOTAL is the sum of the LINE_TOTAL...

    Create a stored procedure named prc_inv_amounts to update the INV_SUBTOTAL, INV_TAX, and INV_TOTAL. The procedure takes the invoice number as a parameter. The INV_SUBTOTAL is the sum of the LINE_TOTAL amounts for the invoice, the INV_TAX is the product of the INV_SUBTOTAL and the tax rate (8 percent), and the INV_TOTAL is the sum of the INV_SUBTOTAL and the INV_TAX /* Database Systems, Coronel/Morris */ /* Type of SQL : SQL Server */ /* WARNING: */ /* WE HIGHLY RECOMEND...

  • Answer all questions on paper: Consider the database model below The database model FIGURE 7.1 CUSTOMER...

    Answer all questions on paper: Consider the database model below The database model FIGURE 7.1 CUSTOMER INVOICE LINE PK CUS CODE INV NUMBER FK1 CUS_COOE NV DATE CUS LNAME CUS FNAME CUS INITIAL CUS AREACODE CUS PHONE CUS BALANCE LINE UNITS LINEPRICE - isfound in VENDOR PRODUCT V NAME supplies P INDATE P DESCRIPT CONTACT de- V AREACODE V PHONE V STATE V ORDER ?,.QOH P MIN P PRICE Write the SQL code for creating the database and all the...

  • Question 1. For each table, identify the primary key and the foreign key(s). If a table...

    Question 1. For each table, identify the primary key and the foreign key(s). If a table does not have a foreign key, write None. Question 2. Do the tables exhibit entity integrity? Answer yes or no, and then explain your answer. Question 3. Do the tables exhibit referential integrity? Answer yes or no, and then explain your answer. Write NA (Not Applicable) if the table does not have a foreign key. Question 4. Describe the type(s) of relationship(s) between CUSTOMER...

  • Create SQL statements based on the given tables: Code to create the tables: CREATE DATABASE LAB...

    Create SQL statements based on the given tables: Code to create the tables: CREATE DATABASE LAB4DB; USE LAB4DB; CREATE TABLE CUSTOMER ( CUS_CODE int primary key, CUS_LNAME varchar(15), CUS_FNAME varchar(15), CUS_INITIAL varchar(1), CUS_AREACODE varchar(3), CUS_PHONE varchar(8), CUS_BALANCE float(8) ); INSERT INTO CUSTOMER VALUES('10010','Ramas','Alfred','A','615','844-2573','0'); INSERT INTO CUSTOMER VALUES('10011','Dunne','Leona','K','713','894-1238','0'); INSERT INTO CUSTOMER VALUES('10012','Smith','Kathy','W','615','894-2285','345.86'); INSERT INTO CUSTOMER VALUES('10013','Olowski','Paul','F','615','894-2180','536.75'); INSERT INTO CUSTOMER VALUES('10014','Orlando','Myron','','615','222-1672','0'); INSERT INTO CUSTOMER VALUES('10015','O''Brian','Amy','B','713','442-3381','0'); INSERT INTO CUSTOMER VALUES('10016','Brown','James','G','615','297-1228','221.19'); INSERT INTO CUSTOMER VALUES('10017','Williams','George','','615','290-2556','768.93'); INSERT INTO CUSTOMER VALUES('10018','Farriss','Anne','G','713','382-7185','216.55'); INSERT INTO CUSTOMER VALUES('10019','Smith','Olette','K','615','297-3809','0'); /*...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT