Fetech the details from database

Assignment Help PL-SQL Programming
Reference no: EM13932957

Premiere Products Database (figure 1.2)

Table: REP

REP_NUM

LAST_NAME

FIRST_NAME

STREET

CITY

STATE

ZIP

COMMISSION

RATE

20

Kaiser

Valerie

624 Randall

Grove

FL

33321

$20,542.50

0.05

35

Hull

Richard

532 Jackson

Sheldon

FL

33553

$39,216.00

0.07

 

65

Perez

Juan

1626 Taylor

Fillmore

FL

33336

$23,487.00

0.05

 

 

 

 

 

Table:  CUSTOMER

CUSTOMER_NUM

CUSTOMER_NAME

STREET

CITY

STATE

ZIP

BALANCE

CREDIT_LIMIT

REP_NUM

148

Al's Appliance and Sport

2837 Greenway

Fillmore

FL

33336

$6,550.00

$7,500.00

20

282

Brookings Direct

3827 Devon

Grove

FL

33321

$431.50

$10,000.00

35

356

Ferguson's

382 Wildwood

Northfield

FL

33146

$5,785.00

$7,500.00

65

408

The Everything Shop

1828 Raven

Crystal

FL

33503

$5,285.25

$5,000,00

35

462

Bargains Galore

3829 Central

Grove

FL

33321

$3,412.00

$10,000.00

65

524

Kline's

838 Ridgeland

Fillmore

FL

33336

$12,762.00

$15,000.00

20

608

Johnson's Department Store

372 Oxford

Sheldon

FL

33553

$2,106.00

$10,000,00

65

687

Lee's Sport and Appliance

282 Evergreen

Altonville

FL

32543

$2,851.00

$5,000.00

35

725

Deerfield's Four Seasons

282 Columbia

Sheldon

FL

33553

$248.00

$7,500.00

35

842

All Season

28 Lakeview

Grove

FL

33321

$8,221.00

$7,500.00

20

Table: ORDERS

ORDER_NUM

ORDER_DATE

CUSTOMER_NUM

21608

10/20/2003

148

21610

10/20/2003

356

21613

10/21/2003

408

21614

10/21/2003

282

21617

10/23/2003

608

21619

10/23/2003

148

21623

10/23/2003

608

Table: ORDER_LINE

ORDER_NUM

PART_NUM

NUM_ORDERED

QUOTED_PRICE

21608

AT94

11

$21.95

21610

DR93

1

$495.00

21610

DW11

1

$399.99

21613

KL62

4

$329.95

21614

KT03

2

$595.00

21617

BV06

2

$794.95

21617

CD52

4

$150.00

21619

DR93

1

$495.00

21623

KV29

2

$1,290.00

Table: PART

PART_NUM

DESCRIPTION

ON_HAND

CLASS

WAREHOUSE

PRICE

AT94

Iron

50

HW

3

$24.95

BV06

Home Gym

45

SG

2

$794.95

CD52

Microwave Oven

32

AP

1

$165.00

DL71

Cordless Drill

21

HW

3

$129.95

DR93

Gas Range

8

AP

2

$495.00

DW11

Washer

12

AP

3

$399.99

FD21

Stand Mixer

22

HW

3

$159.95

KL62

Dryer

12

AP

1

$349.95

KT03

Dishwasher

8

AP

3

$595.00

KV29

Treadmill

9

SG

2

$1,390.00

 Use SQL to make the following changes to the Premiere Products database.  After each change, execute an appropriate query

to show that the change was made correctly.

1.  Use the following information to create a new table named NON_SP_GOOD.

Column

Type

Length

Decimal Places

Nulls Allowed?

Description

PART_NUM

Char

4

 

No

Part number (primary Key)

DESCRIPTION

Char

15

 

 

Part Description

ON_HAND

Decimal

4

0

 

Number of units on hand

CLASS

Char

2

 

 

Item class

PRICE

Decimal

6

2

 

Unit price

2. Insert into the NON_SP_GOOD table the part number, part description, number of units on hand, item class, and unit price

from the PART table for each part that is not in item class SG.

3.  In the NON_SP_GOOD table, change the description of part number AT94 to "Deluxe Iron."

4.  In the NON_SP_GOOD table, increase the price of each item in item class HW by 2%. (Hint: Multiply each price by 1.02.)

5.  Add the following part to the NON_SP_GOOD table: part number: LJ28; description: Electric Razor; number of units on hand:

21; class: AP; and price: 39.95.

6.  Delete every part in the NON_SP_GOOD table for which the class is HW.

7.  In the NON_SP_GOOD table, change the class for part KL62 to null.

8.  Add a column named ON_HAND_VALUE to the NON_SP_GOOD table.  The allocation is a seven-digit number with two decimal

places, representing the product of the number of units on hand and the price.  Then set all values of ON_HAND to ON_HAND *

PRICE.

9.  In the NON_SP_GOOD table, increase the length of the PART_DESCRIPTION column to 30 characters.

10.  Delete the NON_SP_GOOD table from the Premiere Products database.

Reference no: EM13932957

Questions Cloud

Evaluate the impact of nutrition, eating behavior : Assess interaction and influences of genetics, heredity, and environmental factors on the prenatal development of individuals with hearing impairments.
Did larson have an express contract with johnson : She claimed that she could therefore sue the Humane Society for its failure to capture the dogs that had bitten her. Was she entitled to recover?
What is relationship between firms profits and stock price : An article in the Wall Street Journal contained the following; " Burberry Group issued a surprise profit warning on Tuesday.... The announcement sent the Burberry's stock down to 21%. What is the relationship between a firm's profits and its stock pr..
Used to qualify property for the marital deduction : A Q-TIP Trust may be used to qualify property for the marital deduction. All the following statements concerning the requirements that must be met for an effective Q-TIP Trust are correct EXCEPT:
Fetech the details from database : Delete the NON_SP_GOOD table from the Premiere Products database.
Describe what was observed using the senses : Describe a situation where at least two significantly different perceptions might be held. (need an example) Create a perception checking statement directed towards one of the other parties in the situation.
About after-tax return on their investment : Municipal bonds are usually tax-free. Since investor’s car about after-tax return on their investment, these bonds have higher yield than bonds whose interest rate payments are taxable. Investors demand compensation for default risk in the form of ri..
Evaluate five investment projects : Mr. de Ville, the owner of Tasman Ian de Ville Holdings Ltd. (TIDH) has asked you to evaluate five investment projects. TIDH has a $10,000,000 investment budget, an investment hurdle rate of 11.0 %, and the owner has a requirement that all investm..
Calculate monthly payment they would have to make to pay off : Kate and Jeremy buy a home. They take a $300,000 mortgage from a credit union after negotiating a 2.6% annual interest rate compouned semi annually. Calculate the monthly payments they would have to make to pay off the home in 25 years.

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Create a database model

Create a database model and Submit the table creation statements for the Database Model.

  Write pl-sql procedures and functions

Write PL/SQL procedures and functions to populate and query that database

  Sql questions

Write a query to display using the employees table the EMPLOYEE_ID, FIRST_NAME, LAST_NAME and HIRE_DATE of every employee who was hired after to 1 January, 1995.

  Run the lab_03_01.sql script

Run the lab_03_01.sql script in the attached file to create the SAL_HISTORY table. Display the structure of the SAL_HISTORY table.

  Write sql queries

Write a query to display the last name, department number, and salary of any employee whose department number and salary both match the department number and salary of any employee who earns a commission.

  Explaining sql insert statement to insert new row in cds

Write down a SQL insert statement to insert new row in "CDS" table.

  Write down name of actors in ascending order

Write down actors (or actress, your choice, but not both) who have won at least two (2) Academy Awards for best actor/actress. Provide the actor name, movie title & year. Order the result by actor name."

  What is an sql injection attack

What is an SQL injection attack? Explain how it works, and what precautions must be taken to prevent SQL injection attacks.What are two advantages of encrypting data stored in the database?

  Determine resonant frequency in series rlc resonant circuit

Given the series RLC resonant circuit in the figure, operating at variable frequency, determine: The resonant frequency ω o ,  The circuit’s quality factor Q , The cut-off frequencies, f 1  & f 2  and the bandwidth BW

  Query that uses cube operator to return lineitemsum

Write summary query which uses CUBE operator to return LineItemSum (which is the sum of InvoiceLineItemAmount) group by Account(an alias for AccountDesciption).

  Query to show customers were missing for existing orders

As DBA, your manager called a meeting and asked why there are so many orders for customers that don't exist in the customer table. Write query which would shows which customers were missing for existing orders. Use a join or a subquery.

  Sql query into a relational algebra statement

Turn this SQL query into a relational algebra statement? SELECT Request.reqfor, Ordering.invamt, Ordering.invnbr, Ordering.invdat

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd