20 May Database Fundamentals Spring
MIS 4300 / ACCT 4300 Database Fundamentals Spring 2014 Homework Assignment Three Consider the relational schema of (part of) a firm database below. Write a SQL query for each of the following requirement. Run the queries using the database uploaded with the assignment and display the results. List the Vend_ID, Vend_Name, Vend_Contact of all vendors whose LAST name begins with ‘C’. List them in descending order of Vend_City. (Query should return 2 rows) List the vendor city and the number of vendors in each city where the number of vendors is greater than 2. Use the alias TotalVendors for the number of vendors. (Query should return 2 rows) Display Ord_ID, Ord_Date of all orders where condition (c) is met and simultaneously either one of conditions (a) and (b) are met Vend_ID starts with the letter “P” Ord_Status is “Rec” Ord_Tot_Cost is greater than or equal to $2000 but less than or equal to $5500 (Query should return 4 rows) Display the loc_description and item_id of all items whose storage quantity is greater than 15. (Query should return 4 rows) Display the Rep_ID, Rep_Date and Item_ID of all items where either the Rep_Cost is less than $50 or the Item_Buy_Date date is between 1/1/1910 and 1/1/1915. (Query should return 4 rows) Display the ID and name of vendors who have NOT placed any order. (Query should return 3 rows) Display the item ID, store quantity and location description of the items having the lowest store quantity. Note: there are three such items. (Query should return 3 rows) Display the vendor ID and vendor name of the items whose item quantity is the largest. (Query should return 2 rows) Display the item ID and item quantity of all items whose item quantity is less than the average quantity. Also display the average quantity. (Query should return 6 rows) How many times the vendor has placed an order for the item ID = 1 (rename it as NUMORD)? Also display the vendor name and the location description for the item_ID = 1?…
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
About Writedemy
We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.
How It Works
To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Are there Discounts?
All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.
