Practical problems 3
Practical problems 3
Extend your customer orders query to include the Main Office address for each customer,
including the full street address, city, state or province,
postal code, and country or region
Tip: Note that each customer can have multiple addressees in the SalesLT.Address table, so
the database developer has created
the SalesLT.CustomerAddress table to enable a many-to-many relationship between
customers and addresses.
Your query will need to include both of these tables, and should filter the results so that
only Main Office addresses are included.
As you continue to work with the Adventure Works customer and sales data, you must create
queries for reports that have been requested by the sales team.
The sales manager wants a list of all customer companies and their contacts (first name and
last name),
showing the sales order ID and total due for each order they have placed.
Customers who have not placed any orders should be included at the bottom of the list with
NULL values for the order ID and total due.
A sales employee has noticed that Adventure Works does not have address information for all
customers.
You must write a query that returns a list of customer IDs, company names, contact names
(first name and last name),
and phone numbers for customers with no address stored in the database.
3.2:
From DimDepartmentGroup, Write a query display DepartmentGroupName and
their parent DepartmentGroupName