Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

Database Management Assignment - SQL Queries for Pine Valley Furniture Corporation

Part 1 - Define and Populate the Database

Use Oracle Database Configuration Assistant to create a database named PVFC-{Yourlastname} Make sure that it is NOT a container database.  Also provide passwords for users SYS and SYSDBA.

Connect as user sys with role as sysdba. In DBA view create a user, grant user appropriate privileges to connect and manipulate database objects.  Connect to the database as this user.

Use the attached DDL script CreateBigPV.sql to create tables and define constrains.   Please check the script to make use that you understand different data types, primary key, and foreign key constraints. 

Create the relational model for the database.  Compare it with Figure 2.22 in the textbook.  The following table gives the correspondence between the figure and tables.  You may notice in translating E-R diagrams to tables that some of the entities have been renamed - e.g. HAS SKILL in figure has been implemented as EmpoyeeSkill_T. 

Now use scripts Load1BigPV.sql and Load2BigPV.sql in that order to load data into the database.  (The order is important because of the referential integrity constraints; we have to load data into tables on 1 side of a relationship before we can load matching records on the many side of the relationship.)

Part 2 - SQL Queries for Data Retrieval

Create a New Project

Switch to data perspective and create a new project based on the connection.  Examine data in each table using SELECT command.

Practice SQL

Use Oracle SQL Developer to practice building SQL queries for exercises 6-57 through 6-85 on pages 284-286.  Some the queries will be very simple (e.g. 6-58, 6-59), some will require running aggregates (e.g. 6-69), some will require you to find additional date function in Oracle (e.g., 6-77).  More you practice, better you will become at developing SQL statements, 

Use definition on page 309 to create view TSALE.  Use this view to answer Query 1 on page 309.  Change SELECT query on page 310 to create view TOPTERRITORY query and then use this view to answer Query 2 on page 310.

Textbook - Modern Database Management, 12th edition by Jeffrey A. Hoffer, V. Ramesh and Heikki Topi.

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M92505849

Have any Question?


Related Questions in DBMS

Assignment -scenario setup a mock phase 3 clinical trial

Assignment - Scenario: Setup a Mock Phase 3 Clinical Trial for evaluating the efficacy of a Blood Pressure/Weight Loss/ or Muscle Strength Enhancement supplement. Assume that the testing takes place at a physician's offi ...

Sqlwrite a select statement that returns one column from

SQL Write a SELECT statement that returns one column from the Vendor table named Full Name. Create this column from the VendorContactFName and VendorContactLName columns. Format it as follows: last name, comma, first nam ...

Need an expert in the fields of system design to handle

Need an expert in the fields of system design to handle this project This is a system analysis and design project, not a research project. Refer to the list of deliverables in the instructions in the assignment to make s ...

Question create the physical data model for the logical

Question: Create the physical data model for the logical data model that you submitted in IP3. This should include all of the data definition language SQL. Your submission should include all DDL needed to: Create the tab ...

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

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

Sql assignmentin these exercises youll enter and run your

SQL Assignment In these exercises, you'll enter and run your own SELECT statements. You will use the MyGuitarShop database for these queries. If you do not already have the MyGuitarShop database, the SQL script and the i ...

Tableau is business intelligence software that helps people

Tableau is business intelligence software that helps people see and understand their data. Fast Analytics Connect and visualize your data in minutes. Tableau is 10 to 100x faster than existing solutions. Ease of Use Anyo ...

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

Project outline and requirements provide a brief

Project Outline and Requirements Provide a brief description of the organization (can be hypothetical) that will be used as the basis for the projects in the course. Include company size, location(s), and other pertinent ...

  • 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