Write a SQL statement that shows vendor name, vendor area code and vendor phone number for vendors that live in Tennessee.
Write a SQL statement that shows vendor name, vendor area code and vendor phone number for vendors that live in Tennessee.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Use Figure 3 provided in the handout to answer this question.
Write a SQL statement that shows vendor name, vendor area code and vendor phone number for vendors that live in Tennessee.

Transcribed Image Text:The provided image illustrates a relational database model consisting of five tables: CUSTOMER, INVOICE, LINE, PRODUCT, and VENDOR. Each table contains various fields, serving different purposes within the database structure. Here’s a detailed breakdown:
### Relational Diagram
1. **CUSTOMER Table**
- **Primary Key (PK)**: Cus_Code
- **Fields**:
- Cus_LName
- Cus_FName
- Cus_Initial
- Cus_AreaCode
- Cus_Phone
- Cus_Balance
2. **INVOICE Table**
- **Primary Key (PK)**: Inv_Number
- **Foreign Key (FK1)**: Cus_Code
- **Fields**:
- Inv_Date
3. **LINE Table**
- **Primary Key (PK)**: (Inv_Number, Line_Number)
- **Foreign Keys**:
- FK1: Inv_Number
- FK2: P_Code
- **Fields**:
- Line_Units
- Line_Price
4. **PRODUCT Table**
- **Primary Key (PK)**: P_Code
- **Fields**:
- P_Description
- P_InDate
- P_QOH
- P_Min
- P_Price
- P_Discount
- V_Code
5. **VENDOR Table**
- **Primary Key (PK)**: V_Code
- **Fields**:
- V_Name
- V_Contact
- V_AreaCode
- V_Phone
- V_State
- V_Order
### Data Tables
#### CUSTOMER Table:
- Consists of records for customers, listing details like name, contact information, and account balance.
#### INVOICE Table:
- Details each invoice with a unique invoice number, linked to customers and including the invoice date.
#### LINE Table:
- Captures items within an invoice, detailing quantities and prices per line item.
#### PRODUCT Table:
- Contains product details including descriptions, pricing, stock levels, and associated vendor codes.
#### VENDOR Table:
- Lists vendor-specific information like contacts, phone numbers, and geographical location.
This diagram outlines the relationships and keys required for managing interconnected data in enterprise applications, offering a typical structure for database design in retail or inventory-related services.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps

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.Recommended textbooks for you

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

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