Writing and execuinge sql command

Assignment Help PL-SQL Programming
Reference no: EM1351454

Q1) You are going to create new table to be housed in the USERS01 tablespace.

The table name will be METALS and will be used to store a description of various metals. The following offers some additional direction on how the table should be created.

The table shall have a primary key called METALS_ID.

An inline primary key constraint shall be defined. The constraint name shall be METALS_ID_PK shall be used.

An addition column of METAL_DESCRIPTION shall be added to the table definition.

A unique constraint on METAL_DESCRIPTION shall be added to the table definition. The constraint name shall be METAL_DESC_UK shall be used.

Write and execute the SQL command

Reference no: EM1351454

Questions Cloud

Determine the payback of the project : A company is evaluating a proposal which has an initial investment of $50,000 and has cash flows of $15,000 per year for 5-years. Determine the payback of the project?
How far away is the corresponding image : A 80 g, 37 cm long rod hangs vertically on a frictionless, horizontal axle passing by its center. A 15 g ball of clay traveling horizontally at 2.7 hits and sticks to the very bottom tip of rod.
Responsibilities of each department in a lodging facility : What are the roles and responsibilities of each department in a lodging facility as it applies to guest services and should a lodging facilites Back of House (BOH) operations be concerned with guest service?
Classical and operant conditioning : Compare and contrast classical conditioning and operant conditioning. Use the Psychism Operant Conditioning information and your text to support your discussion.
Writing and execuinge sql command : The table name will be METALS and will be used to store description of various metals. Following offers some additional direction on how table must be created.
Illustrate what is the profit maximising output : Suppose a monopolist's demand is given by the function P=25-3Q. Let the total cost of production be 7Q+28 for positive levels of output, and zero otherwise. Illustrate what is the profit maximising output.
Determine the required rate of return on stock : Assume you are the money manager of a four million investment fund. The fund consists of four stocks with the following investments and betas:
Underlie employee resistance to change : Research has shown that organizations are more likely to succeed when they have an adaptive culture and what can an organization do to foster an adaptive culture?
What happens to an angular velocity : A gymnast with mass m1 = 47 kg is on a balance beam that sits on (but is not attached to) two supports. The beam has a mass m2 = 118 kg and length L = 5 m. Each support is 1/3 of the way from each end. Initially the gymnast stands at the left end ..

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  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

  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.

  Explaining sql insert statement to insert new row in cds

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

  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?

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

  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

  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.

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

  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.

  Select statement to return one row

Write a SELECT statement that returns one row for each general ledger account number which contains three columns.

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