School of computer science and electronic engineering
Exercise 5: London Staff Report (10%)
Download 289.19 Kb. Pdf ko'rish
|
[APPROVED]ICP 2221 Assignment 2
- Bu sahifa navigatsiya:
- Exercise 6: Hard to Rent Property List (10%)
- Exercise 8: Salary Statistics (10%)
- Exercise 10: Staff at Branch B003 with Clients (10%)
Exercise 5: London Staff Report (10%)
Get a list of staff not based in Glasgow who have registered one or more clients. Your results table should include the staff number, staff member name, the branch they work at, and the city the staff member is based in. Exercise 6: Hard to Rent Property List (10%) Get a list of cities which have either a Branch or a Property for rent. You must use the UNION set operator in your solution.
Find all rental properties where the rent is less than the average rent of every property registered in branch B003.
List staff members and salaries where the salary is less than or equal to the average salary increased by 25% but also greater than or equal to the average salary decreased by 25%.
Develop a query to display the following result table:
The column salary total is a little complicated. First a sub-total is computed for each gender of employee in each branch, then a total salary bill for the branch is computed and finally a grand total of all salaries is computed. So on the first row the figure of £36000 represents the total salary bill for female employees based in branch B003. On the third row is the salary bill for all employees in branch B003. The last row is grand total. ICP 2221
Laboratory Exercises
School of Computer Science and Electronic Engineering, Bangor University Semester 1, 2020
Get the names of staff members and the clients they have registered. The results table should only show results where the client has been registered at branch B003.
Use Blackboard to submit your SQL script file. Each script should: • contain appropriately formatted queries • contain one or more lines of comment per query • follow a consistent style of indentation • capitalise all reserved words The deadline for submission is announced on the Blackboard system. Late submissions will be penalised in line with School policy. Marks for this laboratory exercise are awarded for: • correct result table
• correct query • comments, layout and query structure • conceptual understanding
• writing efficient queries When submitting work it is your responsibility to ensure that all work submitted is: • consistent with stated requirements • entirely your own work • submitted on time Please note that there are severe penalties for submitting work which is not your own. If you have
fact with appropriate program comments. To obtain a mark you must attend a laboratory session and be prepared to demonstrate your program and to answer questions about the coding. Non-attendance at labs will result in your work not being marked. Download 289.19 Kb. Do'stlaringiz bilan baham: |
ma'muriyatiga murojaat qiling