You have the following tables:   MANAGERS (MANAGER_ID, LAST_NAME, FIRST_NAME, DEPARTMENT) ACCOUNTS (ACCOUNT_NUMBER, MANAGER_ID, CUST_ID, BALANCE) CUSTOMERS (CUST_ID, LAST_NAME, FIRST_NAME)   Write a SQL statement that lists account number, balance, MANAGER’s last name,  CUSTOMER ID, and CUSTOMER’s last name for every account in the ACCOUNTS table.

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter12: Database Queries With Sql
Section: Chapter Questions
Problem 9RQ
icon
Related questions
icon
Concept explainers
Question
  1. You have the following tables:

 

MANAGERS (MANAGER_ID, LAST_NAME, FIRST_NAME, DEPARTMENT)

ACCOUNTS (ACCOUNT_NUMBER, MANAGER_ID, CUST_ID, BALANCE)

CUSTOMERS (CUST_ID, LAST_NAME, FIRST_NAME)

 

Write a SQL statement that lists account number, balance, MANAGER’s last name,  CUSTOMER ID, and CUSTOMER’s last name for every account in the ACCOUNTS table.

Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Query Syntax
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
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning