Using SQL Server Management Studio, create all four tables of the sample database The sample database...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Using SQL Server Management Studio, create all four tables of the sample database The sample database used in this book represents a company with departments and employees. Each employee in the example belongs to exactly one department, and each department has one or more employees. Jobs of employees center on projects: each employee works at the same time on one or more projects, and each project engages one or more employees. The data of the sample database can be represented using four tables: department employee project works on Tables 1-1 through 1-4 show all the tables of the sample database. dept_no d1 d2 d3 dept_name location Research Dallas Accounting Seattle Marketing Dallas Table 1-1 The department Table emp_no emp_fname emp_Iname dept no 25348 Matthew Smith d3 10102 Ann Jones d3 18316 John Barrimore dl 29346 James James d2 2581 Elke Hansel d2 9031 Elsa Bertoni d2 28559 Sybill Moser d1 Table 1-2 The employee Table project no project_name budget pl Apollo 120000 p2 Gemini 95000 p3 Mercury 186500 Table 1-3 The project Table emp_no project_no job enter_date 10102 P1 Analyst 2016.10.1 10102 P3 Manager 2018.1.1 25348 P2 Clerk 2017.2.15 18316 P2 NULL 2017.6.1 29346 P2 NULL 2016.12.15 2581 P3 Analyst 2017.10.15 9031 PI Manager 2017.4.15 28559 PL NULL 2017.8.1 28559 P2 Clerk 2018.2.1 9031 P3 Clerk 2016.11.15 29346 P1 Clerk 2017.1.4 The department table represents all departments of the company. Each department has the following attributes: department (dept_no, dept_name, location) dept no represents the unique number of each department, dept_name is the name of cach department, and location is the location of the corresponding department. The employee table represents all employees working for the company. Each employee has the following attributes: employee (emp_no, emp_fname, emp_Iname, dept_no) emp_no represents the unique number of each employee. emp_fname and emp_Iname are the first name and last name of each employee, respectively. Finally, dept no is the number of the department to which the employee belongs. Each project of the company is represented in the project table. This table has the following columns: project (project no, project_name, budget) project no represents the unique number of each project. project_name and budget specify the name and the budget of each project, respectively. The works on table specifies the relationship between employees and projects. It has the following columns: works on (emp_no, project no, job, enter_date) emp_no specifies the employee number and project no specifies the number of the project on which the employee works. The combination of data values belonging to these two columns is always unique. job and enter_date specify the task and the starting date of an employee in the corresponding project, respectively. Rubrics: 1. Creating tables: department - 20 points employee - 20 points project - 20 points works on 20 points 2. Add screenshots in SSMS to a word document along with appropriate description. (20 points) Using SQL Server Management Studio, create all four tables of the sample database The sample database used in this book represents a company with departments and employees. Each employee in the example belongs to exactly one department, and each department has one or more employees. Jobs of employees center on projects: each employee works at the same time on one or more projects, and each project engages one or more employees. The data of the sample database can be represented using four tables: department employee project works on Tables 1-1 through 1-4 show all the tables of the sample database. dept_no d1 d2 d3 dept_name location Research Dallas Accounting Seattle Marketing Dallas Table 1-1 The department Table emp_no emp_fname emp_Iname dept no 25348 Matthew Smith d3 10102 Ann Jones d3 18316 John Barrimore dl 29346 James James d2 2581 Elke Hansel d2 9031 Elsa Bertoni d2 28559 Sybill Moser d1 Table 1-2 The employee Table project no project_name budget pl Apollo 120000 p2 Gemini 95000 p3 Mercury 186500 Table 1-3 The project Table emp_no project_no job enter_date 10102 P1 Analyst 2016.10.1 10102 P3 Manager 2018.1.1 25348 P2 Clerk 2017.2.15 18316 P2 NULL 2017.6.1 29346 P2 NULL 2016.12.15 2581 P3 Analyst 2017.10.15 9031 PI Manager 2017.4.15 28559 PL NULL 2017.8.1 28559 P2 Clerk 2018.2.1 9031 P3 Clerk 2016.11.15 29346 P1 Clerk 2017.1.4 The department table represents all departments of the company. Each department has the following attributes: department (dept_no, dept_name, location) dept no represents the unique number of each department, dept_name is the name of cach department, and location is the location of the corresponding department. The employee table represents all employees working for the company. Each employee has the following attributes: employee (emp_no, emp_fname, emp_Iname, dept_no) emp_no represents the unique number of each employee. emp_fname and emp_Iname are the first name and last name of each employee, respectively. Finally, dept no is the number of the department to which the employee belongs. Each project of the company is represented in the project table. This table has the following columns: project (project no, project_name, budget) project no represents the unique number of each project. project_name and budget specify the name and the budget of each project, respectively. The works on table specifies the relationship between employees and projects. It has the following columns: works on (emp_no, project no, job, enter_date) emp_no specifies the employee number and project no specifies the number of the project on which the employee works. The combination of data values belonging to these two columns is always unique. job and enter_date specify the task and the starting date of an employee in the corresponding project, respectively. Rubrics: 1. Creating tables: department - 20 points employee - 20 points project - 20 points works on 20 points 2. Add screenshots in SSMS to a word document along with appropriate description. (20 points)
Expert Answer:
Related Book For
Database Processing Fundamentals, Design, and Implementation
ISBN: 978-0133876703
14th edition
Authors: David M. Kroenke, David J. Auer
Posted Date:
Students also viewed these databases questions
-
To demonstrate the ability to propose, implement, and query the database. Problem: MovinOn Inc. is a moving company that provides moving and storage services in California, Nevada, and Arizona....
-
How do cognitive-behavioral techniques, mindfulness practices, and resilience training contribute to the mitigation of stressors and the promotion of psychological well-being in high-pressure...
-
Use f(x) and g(x) to find a formula for each expression. Identify its domain. (a) (f + g)(x) (c) (fg)(x) (b) (f- g)(x) (d) (f/g)(x)
-
The strength of concrete used in commercial construction tends to vary from one batch to another. Consequently, small test cylinders of concrete sampled from a batch are "cured" for periods up to...
-
A farmer grows wheat, which she sells to a miller for $100. The miller turns the wheat into flour, which she sells to a baker for $150. The baker turns the wheat into bread, which she sells to...
-
Brand personality is the characterisation of brands as perceived by consumers. Explain what is meant by this through the use of appropriate practical everyday illustrations.
-
The July 1, 20X5, trial balance for the Bond Redemption and Interest Debt Service Fund of the County of Hawaii, Hawaii, is presented here. The resources of the fund are committed to debt service. The...
-
Sunland Windows manufactures a hand-painted bamboo window shade for standard-size windows. Production and sales data for 2022 are as follows: Variable manufacturing costs Fixed manufacturing costs...
-
Given a database of the results of an election, find the number of seats won by each party. There are some rules to going about this: There are many constituencies in a state and many candidates who...
-
At the present time, Turnbull Enterprises does not have any preferred stock outstanding but is looking to include preferred stock in its capital structure in the future. Turnbull has found some...
-
In the current year, Nighthawk Corporation, a calendar year C corporation, has $5,980,000 of adjusted taxable income and $179,400 of business interest income. Nighthawk has no floor plan financing...
-
Oriole Corp. had total variable costs of $151,250, total fixed costs of $130,500, and total revenues of $275,000. (a1) Your answer is incorrect. Calculate contribution margin ratio. Contribution...
-
Acme Company uses process costing. During the current month, the third processing department's beginning work in process inventory includes 2,400 units that are 45% complete with respect to direct...
-
Camping Company manufactures camping tents from a lightweight synthetic fabric. Each tent uses the following standard material and labor costs. Direct Labor Direct Material Standard cost per tent 2...
-
Steve and Company have budgeted sales commissions of $ 6 0 0 , 0 0 0 for 2 0 2 4 , based on sales estimates of $ 3 , 0 0 0 , 0 0 0 for the same year. After the first quarter however, they realize...
-
Paris Corporation has 15,000 shares of $90 par common stock outstanding On June 8, Paris Corporation declared a 4 stock dividend to be issued August 12 to stockholders of record on July 13 The market...
-
Aztec Furnishings makes hand-crafted furniture for sale in its retail stores. The furniture maker has recently installed a new assembly process, including a new sander and polisher. With this new...
-
What is the purpose of a database?
-
Describe how to change the maximum cardinality from 1:1 to 1:N. Assume that the foreign key is on the side of the new child in the 1:N relationship.
-
Explain two ways forms and reports are used for data modeling.
-
The W250 28 A-36 steel column is fixed at its base. Its top is constrained to rotate about the \(y-y\) axis and free to move along the \(y-y\) axis. If \(e=350 \mathrm{~mm}\), determine the allowable...
-
The W250 \(\times 28\) A-36 steel column is fixed at its base. Its top is constrained to rotate about the \(y-y\) axis and free to move along the \(y-y\) axis. Determine the force \(\mathbf{P}\) and...
-
The W14 \(\times 53\) column is fixed at its base and free at its top. Determine the maximum eccentric load \(P\) that it can support without causing it to buckle or yield. Take \(E_{\mathrm{st}}=\)...
Study smarter with the SolutionInn App