Write sql create table statement to create pet table

Assignment Help PL-SQL Programming
Reference no: EM1351857

Q1) Use the following tables for your answer to the question below:

PET_ OWNER ( OwnerID, OwnerLastName, OwnerFirstName, OwnerPhone, OwnerEmail)
PET ( PetID, PetName, PetType, PetBreed, PetDOB, OwnerID) Sample data for these tables are shown in Figures 3-15 and 3-16 on page 181 of your textbook. For each SQL statement you write, show the results based on these data. If possible, run the statements you write for the questions that follow in an actual DBMS, as appropriate, to obtain results. Name your database Pet- Database. Use data types that are consistent with the DBMS you are using. If you are not using an actual DBMS, consistently represent data types by using either the SQL Server, Oracle Database, or MySQL data types shown in Figure 3.5 on pages 110 and 111 of your textbook.

Write an SQL CREATE TABLE statement to create the PET table without a referential integrity constraint on OwnerID in PET. Justify your choices of column properties. Why not make every column NOT NULL? Write SQL Statements to insert the data in Figure 3-16 on page 181 of your textbook into the PET table.

Reference no: EM1351857

Questions Cloud

Explain what strategies should the argentina division employ : Explain what strategies should the Argentina division employ to capture market share and What strategies would a division of your camera company employ to meet the goals established by your corporation.
What is the net work done on the projectile : The light ray makes an angle of α = 32.1° with the normal line at the boundary of linseed oil and water. find the angles θ1 and θ2. Note that n = 1.48 for linseed oil.
Find the amount of goodwill : Jack corporation paid $800,000 for all of Ann company issued and outstanding common stock. Ann's recorded assets and liabilities on April 1, 20X2, were as follows:
Show importance of employee benefit plans : Importance of providing employee benefit plans to employees working in the chosen positions which are director of IT and the IT help desk.
Write sql create table statement to create pet table : Write an SQL CREATE TABLE statement to create the PET table without referential integrity constraint on OwnerID in PET.
Scheme of the theory on infant development : Where do you think Freud's Id, Ego, and Super-Ego enter the scheme of his theory on infant development?
Relationships in travel & tourism and hospitality industry : Examine the relationship among the different hospitality business segments in Las Vegas. Do the different business segments within Las Vegas support one another?
Elucidate how much do dairy farmers receive per gallon : What is the new equilibrium price and quantity. Elucidate how much do dairy farmers receive per gallon of milk after the tax? how much do demanders pay.
How much time passes before it hears an echo : A parallel-plate air-filled capacitor having area 44.0 cm2 and plate spacing 2.80 mm is charged to a potential difference of 620. V.

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