Ask DBMS Expert


Home >> DBMS

Task instructions

Overview

A workable database structure will be provided for Assessment 1 (Project)

Assessment 1 ( Project) Stage 1:

- The database structure is implemented using graphical tools with appropriate data either in MS Access or in MS SQL Server.
- You will design and execute simple SQL queries to extract data from this database.
- You will be asked to demonstrate, answer question about, and modify queries during feedback time.

Stage 2:
- 2 or 3 students will be expected to form a team.
- The database structure is implemented using SQL statements in MS SQL Server. Further tables are populated with appropriate data using SQL statements.
- You will design and execute complex SQL Queries to extract data from this database.
- You will be asked to demonstrate, answer question about, and modify queries during feedback time.
- Also answer questions on server concepts.

ASSESSMENT 1 (Project) Stage 2:

Context / Purpose:

Melbourne Pty limited is a car garage centre in Melbourne. They operate from many centres in Melbourne.

The business stores all their data (customer's details, car repairs, employee details, salaries, payment.....) in a fairly complex database called "Govinda".

You are working as an IT specialist in the organisation. In your current role, based on your manager's request, you are required to extract details from Govinda by designing & executing SQL queries.

A snapshot of "Govinda" database structure is shown below:

437_Database structure.jpg

ASSESSMENT 1 (Project) Stage 2

Aim / Purpose:
Student will develop skills in
- using SQL to create database structures, and store, retrieve and manipulate data in a relational database.
- designing a variety of SQL queries to match client requirements.
- understanding typical warnings and errors.
- troubleshooting SQL syntax errors.
- problem-solving.
- planning and organisational skills to analyse and organise data.
- numeracy skills to use arithmetical operators and mathematical functions
- programming skills.
- creating and using views and stored procedures.
- server concepts.

Instruction:
o Build the above model (Govinda structure) in MS SQL server (Refer question 1 below under design SQL queries:).
o Choose appropriate data types and sizes for each attribute carefully.
o Choose PK and FK as shown in the above structure.
o Populate tables with appropriate data, about 10 records in each table. So that when queries are executed, enough records are displayed.

- Design SQL Queries: 1 - 14

1. Use CREATE statement to build EMPLOYEE, CUSTOMER, CAR, SERVICE tables in MS SQL Server. Rest of the tables can be built by using GUI tools.

2. Use INSERT statement to enter sufficient number (minimum 10) of records into these tables.

3. "Alter" EMPLOYEE table to add a field called Mobile. Choose appropriate data type and size.

4. Design a SELECT statement to display EmployeeNo, last name and date of birth. The date of birth must be in the year 1990. The employee last name should start with letter "R". All duplicate records must be eliminated.

5. The Management needs listing of employees by last name and first name. The first name should be displayed in capital letters. The entire name should be joined together to display in a single column with a heading "Staff Name". The last and first name should be separated by a comma. The name should start with last name.

6. Employees working in finance department need restricted access to employee information. Create a view named StaffView that includes only EmployeeNo, First Name , Last Name, office phone. The view should have more meaningful names (for the fields) than given in the table / s. The first and last names should be combined to display (Eg: Krsna, RAMA) as EmployeeName & CAST as CHAR(20) .
a. Write a select statement on the view so that employee numbers more than 40 are displayed.

7. Drop StaffView from the database.

8. The management is interested in knowing when an employee is reaching 60 years so that they can send them additional info for certain courses. Add a field called employee gender (if missing) with data. Display details of EmployeeNo, Employee First Name and employee last name, employee gender.

9. Add a field called AmountDue to CUSTOMER table. Populate this field with appropriate data. Design a query to display details of amount due by a Customer. No cents should be displayed. (Hint: ROUND())

10. How many times an employee has worked in shifts? Show employee number, first name, number of times worked. Display details only when an employee has worked more than three times. Enter appropriate data to show results.

11. Add "Gender" field to CUSTOMER table. Display details of CustomerNo, first name, last name, suburb, Amountpaid for all female customers. Use RIGHT join to display details of all customers whether they made payment or not.

12. Design a query to display details of top 5% customers who paid less than the average amount paid by all male customers put-together.

13. The garage management has agreed to raise salary of all employees by 10%. Write a procedure named AmountIncrease with a parameter called percent_increase that increases the salary.

14. Write a trigger to check that the salary of an employee does not increase more than 10% of the current salary. Use EMPLOYEE table.
- Questions on Server concepts:

15. List major advantages of the client / server architecture compared with other computing approaches.

16. Describe advantages and disadvantages of database servers.

17. Illustrate with a diagram the relationships among the different client and server components. Also briefly explain them.

18. Explain briefly with a diagram the advantages / disadvantages of two-tier over three tier system.

Attachment:- Project.rar

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M92821050
  • Price:- $120

Guranteed 48 Hours Delivery, In Price:- $120

Have any Question?


Related Questions in DBMS

Data mining assignment -in this assignment you are asked to

Data Mining Assignment - In this assignment you are asked to explore the use of neural networks for classification and numeric prediction. You are also asked to carry out a data mining investigation on a real-world data ...

Sql query assignment -for this assignment you are to write

SQL Query Assignment - For this assignment you are to write your answers in a word document. This assignment is in three parts: Part A (reporting queries), Part B (query performance), Part C (query design). For this assi ...

The groceries datasetimagine 10000 receipts sitting on your

The groceries Dataset Imagine 10000 receipts sitting on your table. Each receipt represents a transaction with items that were purchased. The receipt is a representation of stuff that went into a customer's basket. That ...

You are in a real estate business renting apartments to

You are in a real estate business renting apartments to customers. Your job is to define an appropriate schema using SQL DDL in MySQL. The relations are Property(Id, Address, NumberOfUnits), Unit(ApartmentNumber, Propert ...

Objectivethe objective of this lab is to be familiar with a

OBJECTIVE: The objective of this lab is to be familiar with a process in big data modeling. You're required to produce three big data models using the MS PowerPoint software. This tool is available on UMUC Virtual Deskto ...

The relation memberstudentid organizationid roleid stores

The relation Member(StudentId, OrganizationId, RoleId) stores the membership information of student joining organization. For example, ('S1', 'O2', 'R3') indicates that student with Id 'S1' joined the organization with i ...

Relational database exerciseyou have been assigned to a new

Relational Database Exercise: You have been assigned to a new development team. A client is requesting a relational database system to manage their present store with the anticipation of adding more stores in the future. ...

Relational database design a given the following business

Relational Database Design A) Given the following business rules, identify entity types, attributes (at least two attributes for each entity, including the primary key) and relationships, and then draw an Entity-Relation ...

We can represent a data set as a collection of object nodes

We can represent a data set as a collection of object nodes and a collection of attribute nodes, where there is a link between each object and each attribute, and where the weight of that link is the value of the object ...

Data model development and implementationpurpose of the

Data model development and implementation Purpose of the assessment (with ULO Mapping) The purpose of this assignment is to develop data models and map Database System into a standard development environment to gain unde ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As