Part B: (70 marks)
1. List and describe briefly 4 Built-in functions (aggregate functions) in SQL with examples.
Note: You are required to show how to use these functions inside a SQL query by using an example.
(10 Marks)
2. You are required to download the database file called “Colonial Adventure Tours” (which is available in Moodle Learning management system), on to your hard drive.
Write SQL queries (do not use QBE) for the following questions and execute the queries using the above database on MS Access. Include screen shots of the outputs and all SQL statements you used to answer following questions (2(a) – 2(e)).
(3 marks for each screen shot & 5 marks for each query= 8 x 5 =40 Marks )
a. List the name, distance and start location for each trip that has the type Hiking and that has the distance greater than 8 miles.
b. List the name of each trip and distance that has the type Paddling or that is located in Poland.
c. Find how many reservations include a trip with a Total price (TripPrice+otherfees ) that is greater than $20 but less than $75.
d. Count the number of trips originate in each state.
e. Create a new table maned “Hiking” that includes TripID, NumPersons from Reservation table and Trip Type, Trip Name columns from Trip table where Trip type is “Hiking” .
3.
a. Describe types of anomalies that may occur on the following table that has redundant data.
(10 Marks)
b. Propose a suitable solution to overcome anomalies identified in 3(a).
(10 Marks)
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 “Place Order” 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.