Delete the record from the table

Assignment Help PL-SQL Programming
Reference no: EM13930391

DDL and DML

1. For emp table, set the constraint that Hiredate is later than Jan. 1, 1980.

2. Modify Dept table so that dname column can contain up to 20 characters.

3. Define ProdId+StartDate as the primary key for Price table.

4. Insert this row of data into price table:

Prodid= 200380, stdprice =5, minprice =4.4, startDate =today, EndDate =null.

5. Delete the row added in the previous step from Price table using Delete from (not rollback).

6. Find all check constraints defined on emp. In the result, list name of the constraint.)

7. Find all tables in your account. Return the table names as output.

8. Find all foreign key constraints defined on emp table and on dept table. In the list, list the name of the constraint and which

table it is defined on. USE only one SQL statement to accomplish this.)

Attachment:- Assignment1.doc

Reference no: EM13930391

Questions Cloud

Addresses the issues raised in case study posted online : Prepare a report that addresses the issues raised in the case study posted online, and provide a recommendation. The length of the report is 2500 words (plus or minus 10% excluding the Abstract and Reference list).
What range of payoff for renew will the alternative selected : If the probability of approval is .35, for what range of payoff for renew/reject will the alternative selected using the maximum expected value remain the same?
Which alternative will yield the minimum expected cost : Which alternative will yield the minimum expected cost? Construct a decision tree for this problem. Indicate the expected costs for the three decision branches.
Problem regarding the impact of the strategy : a) What is the impact of the strategy you propose on the price the company pays for copper? b) What is the initial margin requirement in October 2004? Is the company subject to any margin calls?
Delete the record from the table : Find all tables in your account. Return the table names as output.
Estimated equation in the standard reporting : Write out the estimated equation in the standard reporting format with standard errors below the estimated coefficients.
Determine the coefficient of static friction : Determine the force P required to force the 10° wedge under the 90-kg uniform crate which rests against the small stop at A. The coefficient of friction for all surfaces is 0.40.
Gillette company financial position and performance : What do the ratios tell you about Gillette Company's financial position and performance? What additional information would you like to have to better analyse Gillette's  financial statements?
Describe a time in which you have experienced burnout : Describe a time in which you have experienced burnout. What led to the burnout? How did you feel and think while experiencing it? How did you overcome burnout?

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