Write an sql query to create a membership table

Assignment Help PL-SQL Programming
Reference no: EM131264443

SQL Assignment

You are required to write a database for the University Near Heaven (UNH) Science Fiction Association.

You may not use QBE for ANY of these actions. ONLY SQL.

Write an SQL query to create a Membership table.
MemIDchar(5), lastName char(15),firstName char(15).

Write an SQL query to create an Author table.
AuthIDchar(5), lastName char(15),firstName char(15).

Write an SQL query to create a Works table.
WorkIDchar(5), Title char(40), Type char(5).
[Type will be book, movie, etc.]

Write an SQL query to make a Created table.
WorkIDchar(5), AuthID char(5), role char(5).

[Role will be AUTH, SAUT,JAUTH, EDIT, etc for sole author, senior author, junior author, editor, etc.]

Write an SQL query to AddMember. Add the following members, AND YOURSELF, by running it 6 times.

1 Toolkien, KR
2 Weber, David
3 Heinlein, Robert
4 Asimov, Isaac
5 Twain, Mark

Write an SQL query to ADDWorks.

1 Raichel: The Robot of Romance book
2 The Honor of the Queen book
3 Stranger in a Strange Land book
4 The Gods Themselves book

Write an SQL query to AddAuthor. Add the following members, by running it 4 times.

1 Weber, David
2 Heinlein, Robert
3 Asimov, Isaac
4 Toolkien, KR

Write an SQL Query to add Created. Use IDs.

The Honor of the Queen Weber, David AUTH

Stranger in a Strange Land Heinlein, Robert AUTH

The Gods Themselves Asimov, Isaac AUTH

Raichel: The Robot of Romance Toolkien, KR AUTH

The International Library association has decided to eliminate Mark Twain as a pen name.

Write a ChangeAuthorName to change Twain, Mark to Clements, Samuel

Write an SQL query to list the titles of all books written by Asimov, Isaac.

Reference no: EM131264443

Questions Cloud

How does the brand stay relevant : How does the brand excel at delivering the benefits customers truly desire?- How does the brand stay relevant?-  How is the pricing strategy based on the consumers' perception of value?
What is minimum monthly payment to continue to break even : You have maxed out your $10,000 credit card, which is being charged 12.8% interest compounded daily. What is the minimum monthly payment to continue to break even? How much should you pay each week to get out of debt within one year?
Work against success for prince sports in tennis industry : In the 21st century what trends in the envi. ronmental forces (social, economic, technologi cal, competitive, and regulatory) (a) work for and (b) work against success for Prince Sports in the tennis industry? What promotional activities might Prince..
Write the program using the ide functions : Write the program using the IDE functions. Rewrite the program using C and not the IDE functions. Again, submission are in txt only files.
Write an sql query to create a membership table : Write an SQL query to create a Membership table. Write an SQL query to AddMember. Add the following members, AND YOURSELF, by running it 6 times. Write an SQL query to create a Works table.
Manufacturing overhead is applied to production based : Preble Company manufactures one product. Its variable manufacturing overhead is applied to production based on direct labor-hours and its standard cost card per unit is as follows: The company also established the following cost formulas for its sell..
Find the force in each member of the steel truss : Find the force in each member of the steel truss when the 3000-lb vertical load is applied to joint A. The area of each member is shown in the figure. Use E = 29 × 106 psi for steel.
Explore national economy diversification opportunities : An explanation of different possible research designs - An assessment for each research design and which design you think is an appropriate for that study and why?
Determine the force in the wire caused by the vertical load : Determine the force in the wire caused by the vertical load W. Neglect the axial deformation of the beam. Use E = 200 GPa for steel.

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