Question: 1 . Write a SELECT statement that inner joins the Categories table to the Products table and returns these columns: category _ name, product _

1. Write a SELECT statement that inner joins the Categories table to the Products table and returns these columns: category_name, product_name, list_price. Use the Implicit Syntax for an Inner Join to join between the tables.
Sort the result set in ascending order by the fields category_name and product_name. Note that the default ordering is by ascending order, but we want to explicitly specify it using the keyword ASC.
2. Write a SELECT statement that inner joins the Products table to the Order_Items and returns these columns: product_name, list_price, item_price, discount_amount.
Return one row for each order_item for the product that starts with Washburn
Use the Explicit Syntax for an Inner Join to join between the tables, and look at the columns to identify either a primary key foreign key relationship or an ad-hoc relationship.
3. Write a SELECT statement that inner joins the Products table to the Order_Items and returns these columns: product_name, list_price, item_price, discount_amount.
To join the tables, use (pun intended) the Join Using Clause.
Return one row for each order_item (meaning a record holding product_name, list_price, item_price, discount_amount), but only for order_items that have a discount_amount that is greater than 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!