Complete the following Queries using the northwind vm 1. List all the Customer c
ID: 3744175 • Letter: C
Question
Complete the following Queries using the northwind vm
1. List all the Customer company names and the cities they are from
2. What customers are from Madrid?
3. Why does a query for Montreal return no results even though there is a customer from there?
4. How many suppliers are there?
5. Add yourself as a new shipper
6. How many orders were made by CHOPS
7. What is the earliest order date?
8. What is the largest freight size?
9. What does CRUD stand for?
10. Why is the following statement bad?
Update myAddressBook set state=’Virginia’
11 What are two ways you could protect yourself from the issue in the previous question?
Explanation / Answer
1.
Select CustomerID,CustomerName,City from Customers;
2.
Select CustomerID,CustomerName from Customers where City = 'Madrid';
4.
Select count(SupplierID) from Suppliers ;
5.
Insert into Shippers(7686,'mycompany','87879070');
6.
Select count(OrderID) from OrderDetails inner join Products on OrderDetails.ProductID = Products.ProductID where ProductName = 'CHOPS';
7.
Select min(OrderDate) from Orders;
8.
Select max(Freight) from Orders;
9.
CRUD stand for Create ,Read,Update and Delete data using forms and reports.
10.
There is no condition with update statement. So all records of myAddressBook table will be updated with state=’Virginia’
11
add where clause with one or multiple conditions
Do ask if any doubt. Please upvote.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.