Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

Assignment

Description of LASA:

For this assignment, you will build the database that you designed in M3 Assignment 2 LASA 1 and populate it with employee information. Then, you will execute Structured Query Language (SQL) statements against the database in order to insert, update, modify, and display the information contained in the database.

Scenario:

The president of Altair Software has reviewed and approved the database design that you completed in M3 Assignment 2 LASA 1. You will now build, configure, and populate the database. Additionally, since Altair Software is a fast-growing company, there have been several changes in salary and personnel since you designed the database. You will need to write SQL statements to insert, update, and remove records in the database, as well as a statement to display the records and run them against the database to see the results. The changes are as follows:

1. Both vice presidents easily surpassed their goals and objectives for the prior year and are being given salary raises. The new salary for the vice president position is $80,000.

2. To attract talented programmers directly out of college, Altair Software has decided to raise the base salary for both Programmer I and Programmer II by $5,000 to $40,000 and $50,000, respectively.

3. Programmer Arlene Smith was recruited by a competitor but in order to keep her with Altair Software, the company promoted her to the newly created position of Programmer III, with a salary of $60,000.

4. Altair Software hired two new employees:

i. Employee ID402Employee Last NameSmithEmployee First NameFrancesStreet Address4545 Oxbow LaneCityAnytownStateAZZIP Code85331DepartmentDEVManagerJohn SmithPositionProgrammer ISalary$40,000

ii. Employee ID403Employee Last NameSmithEmployee First NameGregStreet Address18951 Silverlake AvenueCitySometownStateAZZIP Code85332DepartmentSALESManagerJane SmithPositionSales RepresentativeSalary$25,000

5. Sales Representative Eric Smith left Altair Software to return to school to earn a bachelor's degree.

6. Programmer I, Bob Smith, moved out of state.

Tasks:

Note: As you complete the steps below, be sure to save your work often.

I. Create the Database for the Company

1. Using Microsoft Access 2010, create the tables that you designed in M3 Assignment 2 LASA 1. Be sure to use your third normal formtables. Enter each data field name in each table and save each table as you work.

2. Open each table in Design View (right-click the table in the navigation pane and click Design View) and set the appropriate field to be the Primary Key.

3. While in Design View, ensure that each field is configured for the right type of data (text or number, for instance) and set the field size appropriately.

4. On the Database Tools tab, in the Relationships group, click Relationships. Using your entity-relationship diagram as a guide, create the appropriate relationships between the tables by matching the appropriate data fields from each table.

5. Open each table (double-click the table in the navigation pane) and manually enter the appropriate company data. When you are done, each table should contain the same data that was entered in your spreadsheet from M3 Assignment 2 LASA 1.

II. Display the Information in the Database

1. Create an SQL query to display all the information in the database by following the steps below:

i. On the Create tab, in the Queries group, click Query Design.

ii. Select all the tables in your database by holding the Ctrl key and clicking on each of the tables.

iii. Click the Add button and then the Close button. The tables will be added to Design View window and you will see the relationships between the tables displayed.

iv. Refer to M3 Assignment 2 LASA 1 and add each of the data fields in the order in which they are listed in M3 Assignment 2 LASA 1 to the query by double-clicking each field name in the appropriate table. You will see the query being built in the Design View window.

v. On the Query Tools Design tab, in the Results group, click the Run button. This will execute the query against the database.

vi. Review the report. When you are satisfied, close the results of the query and click Yes when prompted to save the changes. Name the query "Display Employee Information".

viii. The query will now appear in the navigation pane. Right-click the query in the navigation pane, select Export, and then click PDF or XPS.

2. Note: For components C, D, and E, you will use SQL View to write simple SQL statements to modify the database. To enter SQL View, complete the following steps:

3. On the Create tab, in the Queries group, click Query Design.

4. When prompted to add tables, click the Close button.

5. On the Query Tools Design tab, in the Results group, click on the down arrow below the word View and select SQL View. This is where you will compose your SQL statements.

6. To run your SQL statements against the database, click the Runbutton in the Results group.

III. Insert Records into the Database

1. Create an SQL query to create a new position entitled "Programmer III" with a salary of $60,000. Run the query against the database. You will be prompted to confirm that you want to modify data in your database. Click Yes. Close the query and save it as "Insert New Position".

2. Create an SQL query to create a new employee record for Frances Smith. Run the query against the database. You will be prompted to confirm that you want to modify data in your database. Click Yes. Close the query and save it as "Insert New Programmer".

3. Create an SQL query to create a new employee record for Greg Smith. Run the query against the database. You will be prompted to confirm that you want to modify data in your database. Click Yes. Close the query and save it as "Insert New Sales Representative".

IV. Update Records in the Database

1. Create an SQL query to update Arlene Smith to Programmer III. Run the query against the database. You will be prompted to confirm that you want to modify data in your database. Click Yes. Close the query and save it as "Update Employee".

2. Create an SQL query to update the salary for the Vice President position to $80,000. Run the query against the database. You will be prompted to confirm that you want to modify data in your database. Click Yes. Close the query and save it as "Update Vice President Salary".

3. Create an SQL query to update the salary for the Programmer I position to $40,000. Run the query against the database. You will be prompted to confirm that you want to modify data in your database. Click Yes. Close the query and save it as "Update Programmer I Salary".

4. Create an SQL query to update the salary for the Programmer II position to $50,000. Run the query against the database. You will be prompted to confirm that you want to modify data in your database. Click Yes. Close the query and save it as "Update Programmer II Salary".

V. Delete Records from the Database

1. Create an SQL query to delete Eric Smith from the database. Run the query against the database. You will be prompted to confirm that you want to modify data in your database. Click Yes. Close the query and save it as "Delete Sales Representative".

2. Create an SQL query to delete Bob Smith from the database. Run the query against the database. You will be prompted to confirm that you want to modify data in your database. Click Yes. Close the query and save it as "Delete Programmer I".

3. Create a 1- to 2-page Microsoft Word document that includes answers to the following questions:

1. When an employee leaves Altair Software, the company deletes the employee record from the human resources database. Is this a good practice? Why or why not? How would you suggest the company handle employee separations?

VI. Display the Information in the Database

1. Repeat Step B.6.g and name the PDF as M5_A1_Lastname_Firstname_EmpInfoAfter.PDF.

7. Compile SQL Queries and Database Reports for Submission

1. For each of the ten SQL queries you have created, perform the following steps:

i. Open the query in Design View (right-click the query in the navigation pane and click Design View).

ii. On the Query Tools Design tab, in the Results group, click on the down arrow below the word View and select SQL View.

iii. Copy the entire SQL statement and paste it into a Microsoft Word document.

2. Create a 2- to 3-page document in Microsoft Word and paste all of the SQL statements you created in Step E.3. Label each statement with the appropriate name, e.g., "Update Employee".

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M92474944
  • Price:- $70

Priced at Now at $70, Verified Solution

Have any Question?


Related Questions in DBMS

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 ...

Case study problem 1 the case study company has experienced

Case Study: Problem 1 The case study company has experienced rapid growth in both the size of its client base and also in the services provided to clients. Unfortunately, the growth in data management policies, procedure ...

Sqlquery 1 how many products have standard price less than

SQL Query 1. How many products have standard price less than 1000? Query 2: Display all attributes for products made of "Cherry" from Product table w/o referring to column names. Query 3: Display all product names having ...

Question suppose we have two kinds of doctors hospital

Question : Suppose we have two kinds of doctors: hospital doctors and family physicians. In addition to the doctor's id number, name, specialty, and years of experience, we want to record the hospital name for the hospit ...

You can work on this assignment individually or in a group

You can work on this assignment individually or in a group of 2. If you are working in a group please establish a group in Assignment 2 Group on Canvas In this assignment you are asked to explore the use of neural networ ...

Select from e d pwhere edeptddept and dcitypcity and

Select * From E, D, P WHERE E.dept=D.dept AND D.city=P.city AND D.budget>1M AND P.priority=A; Assuming relations have the same size and uniform distributions, what is the best plan with Nested Loop joins only? Write it a ...

Stored procedure please create the following stored

Stored procedure. Please create the following stored routines using CPS3740_2017S database using the tables in dreamhome database. xxxx is your email id 1) Implement a stored procedure p3Q21_xxxx to display the Branch ci ...

Your taskyou have been commissioned to develop a database

Your task You have been commissioned to develop a database system that is capable of keeping records for FU's table tennis matches from now on. The database needs to keep a record of: - All team information, including pl ...

Question a suppose you are a marathon runner that can run a

Question : a) Suppose you are a marathon runner that can run a maximum of n miles on a single bottle of water. You are given a map of your marathon route with all the water stations marked. Design an efficient algorithm ...

You are responsible for keeping track of meal expenses for

You are responsible for keeping track of meal expenses for ten employees while at a business lunch to which your employer has invited you to attend. Write an algorithm that inputs the lunch costs for each the ten employe ...

  • 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