Purchase Solution

SQL Management Studio Database

Not what you're looking for?

Ask Custom Question

Use SQL Management Studio to create a database called ITCO630_P1.MDF. Be sure to store the database in a location that you will remember. Add the tables and data shown in the attachment to the database. Use the appropriate field types and lengths for the tables.

Create the following queries and save them all in a file called ITCO630_P1.SQL. Please note that you can execute individual queries in a query file by highlighting the lines that you want to execute before running the script. Define what database to use with a USE statement.
1. Get the full details of the employee table.
2. Get the full details of the employees who work in store S2.
3. Get the full details of the promotions with a budget greater than $100,000.
4. Get the employee number and promotion number for employees with unknown (NULL) jobs who work on promotion P2.
5. Using a subquery, get the first and last names of the employees who work in the Orange Appeal store.
6. Using a subquery, get full details of all the employees whose stores are located in Orlando.

Attachments
Purchase this Solution

Solution Summary

The solution provides SQL queries to create/populate the ITC0630_P1.MDF database. Attached zip file contains a complete solution with sql scripts, tables, commands, etc. and a word document containing the queries to the given question.

Solution Preview

Kindly see the attached folder for your database.

1. Get the full details of the employee table.
select e.*,s.* from employee as e
inner join store as s on s.store_no=e.store_no

2. Get the full details of the employees who work in store S2.
select e.*,s.* from employee as e
inner join store as s on s.store_no=e.store_no
where ...

Purchase this Solution


Free BrainMass Quizzes
Academic Reading and Writing: Critical Thinking

Importance of Critical Thinking

Cost Concepts: Analyzing Costs in Managerial Accounting

This quiz gives students the opportunity to assess their knowledge of cost concepts used in managerial accounting such as opportunity costs, marginal costs, relevant costs and the benefits and relationships that derive from them.

Transformational Leadership

This quiz covers the topic of transformational leadership. Specifically, this quiz covers the theories proposed by James MacGregor Burns and Bernard Bass. Students familiar with transformational leadership should easily be able to answer the questions detailed below.

Organizational Leadership Quiz

This quiz prepares a person to do well when it comes to studying organizational leadership in their studies.

Writing Business Plans

This quiz will test your understanding of how to write good business plans, the usual components of a good plan, purposes, terms, and writing style tips.