Find out the total sales, minimum sales, maximum sales and the number of invoices during the 2nd quarter of 2017 (April to June 2017).

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
icon
Related questions
Question

Find out the total sales, minimum sales, maximum sales and the number of invoices during the 2nd quarter of 2017 (April to June 2017).

The image displays a relational database schema consisting of multiple interconnected tables. Each table represents a different entity within a business database system. Below is a description of each table and its associated fields:

1. **Department Table**
   - **DEPT_NUM**: Numeric identifier for the department (Decimal 5,0).
   - **DEPT_NAME**: Name of the department (Varchar 50).
   - **DEPT_MAIL_BOX**: Department mailbox number (Varchar 3).
   - **DEPT_PHONE**: Department phone number (Varchar 9).
   - **EMP_NUM**: Employee number (Decimal 6,0).

2. **Employee Table**
   - **EMP_NUM**: Unique number for each employee (Decimal 6,0).
   - **EMP_FNAME**: Employee's first name (Varchar 20).
   - **EMP_LNAME**: Employee's last name (Varchar 25).
   - **EMP_EMAIL**: Employee's email address (Varchar 25).
   - **EMP_PHONE**: Employee phone number (Varchar 20).
   - **EMP_HIREDATE**: Date of hire (Date).
   - **EMP_TITLE**: Job title (Varchar 45).
   - **EMP_COMM**: Commission rate (Decimal 2,2).
   - **DEPT_NUM**: Associated department number (Decimal 5,0).

3. **Salary History Table**
   - **EMP_NUM**: Employee number (Decimal 6,0).
   - **SAL_FROM_DATE**: Start date of the salary period (Date).
   - **SAL_END_DATE**: End date of the salary period (Date).
   - **SAL_AMOUNT**: Salary amount (Decimal 10,2).

4. **Invoice Table**
   - **INV_NUM**: Invoice number (Decimal 38,0).
   - **INV_DATE**: Date of the invoice (Date).
   - **CUST_CODE**: Customer code (Decimal 38,0).
   - **INV_TOTAL**: Total amount on the invoice (Decimal 11,2).
   - **EMPLOYEE_ID**: Employee responsible for the invoice (Decimal 6,0).

5. **Customer Table**
   - **CUST_CODE**: Unique customer code (Decimal 38,0).
   - **CUST_FNAME**: Customer's first name (Varchar 20).
Transcribed Image Text:The image displays a relational database schema consisting of multiple interconnected tables. Each table represents a different entity within a business database system. Below is a description of each table and its associated fields: 1. **Department Table** - **DEPT_NUM**: Numeric identifier for the department (Decimal 5,0). - **DEPT_NAME**: Name of the department (Varchar 50). - **DEPT_MAIL_BOX**: Department mailbox number (Varchar 3). - **DEPT_PHONE**: Department phone number (Varchar 9). - **EMP_NUM**: Employee number (Decimal 6,0). 2. **Employee Table** - **EMP_NUM**: Unique number for each employee (Decimal 6,0). - **EMP_FNAME**: Employee's first name (Varchar 20). - **EMP_LNAME**: Employee's last name (Varchar 25). - **EMP_EMAIL**: Employee's email address (Varchar 25). - **EMP_PHONE**: Employee phone number (Varchar 20). - **EMP_HIREDATE**: Date of hire (Date). - **EMP_TITLE**: Job title (Varchar 45). - **EMP_COMM**: Commission rate (Decimal 2,2). - **DEPT_NUM**: Associated department number (Decimal 5,0). 3. **Salary History Table** - **EMP_NUM**: Employee number (Decimal 6,0). - **SAL_FROM_DATE**: Start date of the salary period (Date). - **SAL_END_DATE**: End date of the salary period (Date). - **SAL_AMOUNT**: Salary amount (Decimal 10,2). 4. **Invoice Table** - **INV_NUM**: Invoice number (Decimal 38,0). - **INV_DATE**: Date of the invoice (Date). - **CUST_CODE**: Customer code (Decimal 38,0). - **INV_TOTAL**: Total amount on the invoice (Decimal 11,2). - **EMPLOYEE_ID**: Employee responsible for the invoice (Decimal 6,0). 5. **Customer Table** - **CUST_CODE**: Unique customer code (Decimal 38,0). - **CUST_FNAME**: Customer's first name (Varchar 20).
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Basic sql queries
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education