Part 1: Using SQL to Modify a Database (35 points total) Consider the following schema for...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Part 1: Using SQL to Modify a Database (35 points total) Consider the following schema for a book database. bookDB: COLUMN BookID CategoryID Title Price Pages CIS9340 Exam 2 Book DATA TYPE INT INT VARCHAR(25) DECIMAL(6,2) INT ReleaseYear INT Category COLUMN CategoryID CategoryName VARCHAR(25) DATA TYPE INT COLUMN BookAuthorID Book D INT INT INT AuthorOrder INT AuthorID BookID CategoryID BookAuthor COLUMN Author D Here is some information that will help you: The schema (database) name is bookDB. The Book table contains books. Each row is a unique book. 1011 LastName FirstName DATA TYPE The Category table contains book categories such as business, novel, science fiction, education, etc. Each row is a unique category. Author The Author table contains authors. Each row is a ulque author. Each book can have multiple authors; and each autor can write multiple books. Each book only belongs to one category; and there are many books in each category. DATA TYPE INT Write the SQL statement (just one for each question) that performs the following tasks. (5 points) All the tables have already been created, except for the BookAuthor table. Create the BookAuthor table. VARCHAR(25) VARCHAR(25) b) (5 points) Add a new entry to the Book table that captures the following information for a new author: Instructor: Shuting Wang) Page 1 of 5 Part 1: Using SQL to Modify a Database (35 points total) Consider the following schema for a book database. bookDB: COLUMN BookID CategoryID Title Price Pages CIS9340 Exam 2 Book DATA TYPE INT INT VARCHAR(25) DECIMAL(6,2) INT ReleaseYear INT Category COLUMN CategoryID CategoryName VARCHAR(25) DATA TYPE INT COLUMN BookAuthorID Book D INT INT INT AuthorOrder INT AuthorID BookID CategoryID BookAuthor COLUMN Author D Here is some information that will help you: The schema (database) name is bookDB. The Book table contains books. Each row is a unique book. 1011 LastName FirstName DATA TYPE The Category table contains book categories such as business, novel, science fiction, education, etc. Each row is a unique category. Author The Author table contains authors. Each row is a ulque author. Each book can have multiple authors; and each autor can write multiple books. Each book only belongs to one category; and there are many books in each category. DATA TYPE INT Write the SQL statement (just one for each question) that performs the following tasks. (5 points) All the tables have already been created, except for the BookAuthor table. Create the BookAuthor table. VARCHAR(25) VARCHAR(25) b) (5 points) Add a new entry to the Book table that captures the following information for a new author: Instructor: Shuting Wang) Page 1 of 5
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these databases questions
-
1. How strong are the competitive forces confronting J. Crew in the market for specialty retail? Do a [Michael Porter] five-forces analysis to support your answer. (see chapter 3 in the textfor...
-
1. If your job were to allocated one large amount of money to combat the illegal drug problem in America, (assume strong addictive characteristics to these drugs). Would you attack the supply or...
-
How are direct-mail sales messages and e-mail sales messages similar, and how are they different?
-
Critically discuss cost cutting as a strategy for improving financial fortunes.
-
Its Intoxicating Inc., is a Pennsylvania corporation that manufactures and distributes cosmetic products to various retailers. Maritim is a German company that owns and operates hotels throughout...
-
The Banisco Corporation is negotiating a contract to borrow $300,000 to be repaid in a lump sum at the end of nine years. Interest payments will be made on the loan at the end of each year. The...
-
It is argued that decisions made in relatively risk-free environments are not optimal or not efficient. If this assertion is true, can we declare that the decision-making environment constrained by...
-
Today is May 17, 2023, and you, CPA, are a Senior Tax Associate at Borden & Laurier LLP. Sylvie Condurache, Tax Manager, has called you into her office to discuss a long-time client: "I just got out...
-
A company reports the following merchandise purchases and sales for the month of May. Date May 1 May 5 May 10 May 20 May 25 Activities Purchase Purchase Sales Purchase Sales Units Acquired at Cost...
-
Describe the concept of platforming and the benefits to be gained from its successful implementation.
-
In the context of organisational structures, show how you would address the challenges of cross-functional integration in innovation. What benefits would you expect to see as a result?
-
Explain the cultural traits model. What insights does this provide about an innovative business culture?
-
Define and discuss the different leadership responsibilities and roles in the management of global innovation projects.
-
Describe some of the latest approaches that help drive greater flexibility in product development.
-
Read the contents and the examples about the following topics: (1) Nonrefundable upfront fees, (2) Significant financing component in the contract, (3) Costs that give rise to an asset and (4)...
-
Walker, Inc., is an all-equity firm. The cost of the company's equity is currently 11.4 percent and the risk-free.rate is 3.3 percent. The company is currently considering a project that will cost...
-
Frank, age 35, and Joyce, age 34, are married and file a joint income tax return for 2012. Their salaries for the year total $83,000 and they have taxable interest income of $4,000. They have no...
-
Carol Harris, Ph.D, CPA, is a single taxpayer and she lives at 674 Yankee Street, Durham, NC 27409. Her Social Security number is 793-52-4335. Carol is an Associate Professor of Accounting at a local...
-
During 2012, Tom sold Sears stock for $10,000. The stock was purchased 4 years ago for $13,000. Tom also sold Ford Motor Company bonds for $35,000. The bonds were purchased 2 months ago for $30,000....
-
Assume a stock is priced at $100; calculate its intrinsic value based on the Gordon growth DDM, with the following assumptions: D0 = $3, g = 6 percent, and k = 10 percent. Indicate whether investors...
-
The simplest sequential description of the Ewens sampling formula is called the Chinese restaurant process. The first customer arrives and is seated at a table. After \(n\) customers have been...
-
Suppose Borg Corporation was operating at 88 percent of capacity. What would sales be at full capacity? What is the EFN in this case? What is the capital intensity ratio at full capacity?
Study smarter with the SolutionInn App