The category name and a count of the number of products within each category. The listing should be sorted by category name.
A listing of the customer name, last name of employee who accepted the order, and the shipper for all orders from customers based in North America and shipped through either United Package or Federal Shipping. The listed must be sorted alphabetically by customer name.
Please use https://www.w3schools.com/sql/
Dear Student ,
As per requirement submitted above kindly find below solution.
Question 1:
SQL query :
SELECT CategoryName,count(ProductID) as 'number of
products'
FROM Categories, Products
where
Categories.CategoryID=Products.CategoryID
group by CategoryName
order by CategoryName;
Explanation :This SQL query will join two tables Categories, Products based on the CategoryID and will return the result.
**********************************
Question 2:
SQL query :
SELECT CustomerName,LastName,ShipperName FROM
Customers,Orders,Employees,Shippers where
Customers.CustomerID=Orders.CustomerID and
Orders.EmployeeID=Employees.EmployeeID and
Orders.ShipperID=Shippers.ShipperID and
country in ('Mexico','Canada','USA') and
ShipperName in ('United Package','Federal Shipping');
Explanation :The SQL query given above will join four tables Customers,Orders,Employees,Shippers and will return the result.
**********************************
NOTE :PLEASE FEEL FREE TO PROVIDE FEEDBACK ABOUT THE SOLUTION.
The category name and a count of the number of products within each category. The listing...
List all items sold by the company, sorted alphabetically by category and the alphabetically by item name. please give me an sql query for this question and i have tables as follows customer(customer_name,address,zipcode,customer_id,state),office_supplies(item_name,item_id,cost,category),orders(order_id,date,customer_id) order_details(quantity,order_id,item_id)
QUESTIONS Q01: Use the comment feature of SQL to print your full name, AUID and username in three separate lines at the top of the script file. From this point onwards, you should use the comment feature to separate your answers for each question. (0.2 mark) Q02: Write a SQL statement to retrieve all the rows from the Product table. All the columns should be renamed with proper spacing using the alias feature. For example, the UnitPrice column should be...
#6 Write a SELECT statement that returns these columns: The count of the number of orders in the Orders table The sum of the tax_amount columns in the Orders table Write a SELECT statement that returns one row for each category that has products with these columns: The category_name column from the Categories table The count of the products in the Products table The list price of the most expensive product in the Products table Sort the result set so...
Deliverable 1. Simple SQL Statements Caution: Read the instructions carefully! Each question is based on a single SQL statement, and the single SQL statement might contain sub-queries (additional SELECT statements) within the statement. Provide a list all of the Customer ID, Customer Names, and States and sort the list in alphabetical order by Customer Name. Provide a list of all of the Customer ID, Customer Names, and States, and sort the list by state with the Customer Names in alphabetical...
If possible please just send the SQL statement. Thank you Each question within deliverable 3 must begin on a new page and be sure to document the question as the title of each item at the top of each page. Also, using a 12-point font, include the SQL statement and then provide a screen shot of each query. The screen shots must include both the SQL statement and the results for each item below based on the data entered in...
can someone solve these quick please and thank you! sql chapter 4 Query #1: List the company name, contact name, contact title and the phone number for customers who HAVE NOT put in an order. Use an outer join. Query #2: Create a listing displaying the employee first name, last name and the full name (First name space Last Name) of the person they report to (Supervisor). This is a self-join. If an employee does not report to anyone then...
Bold is chapter 2 info Book name: Systems Analysis and Design in a Changing World 7e As an employee of a large international courier and shipping service, Bill Wiley met with many companies that shipped and received packages almost every day. He was frequently asked if his company could deliver local packages on the same day. Over several months, he observed that there appeared to be a substantial need for courier services in the city in which he lived. He...
I NEED TO WRITE THE FOLLOWING QUERIES IN MYSQL (13)Next, grant to a user admin the read privileges on the complete descriptions of the customers who submitted no orders. For example, these are the customers who registered themselves and submitted no orders so far. The granted privilege cannot be propagated to the other users. 0.3 (14)Next, grant to a user admin the read privileges on information about the total number of orders submitted by each customer. Note, that some customers...
2) compute contribution margin for each channel 3) compute break even point (in terms of number of orders and dollars) for each distribution channel (HINT - Fixed costs are all trade show expenses. Use depreciation for the booth as a fixed cost. The booth cost should be considered an investment not a fixed cost) 4) Calculate the number of orders at a target profit of $100,000 5) Calculate the profitability for both the low and high order estimates We were...