Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

14 questions - Worth 50 points You must use the sol. files attached to the assignment to answer these questions. It is named LDB Build.sa!

image text in transcribed
image text in transcribed
14 questions - Worth 50 points You must use the sol. files attached to the assignment to answer these questions. It is named LDB Build.sa!" For all questions write the SQL statement needed to perform the stated task and add a screenshot of the output from Orade. 1.) Create a copy of the Books table named "books2" utilizing the subquery method as discussed in class. Only include the following columns "ISBN, Cost, Retail, Category" 2.) Show the structure of the "books2" table 3.) List all the contents of the "books2" table 4.) Add a new attribute to the "books2" table named "alt Discount". This new attribute should be a numeric that can hold a maximum value of 999.99 Show the structure of the "books2 table 5.) 6.) List all the contents of the "books2" table 75 8.) 9.) Truncate the books2" table TRUNCATE table books List all the contents of the "books2" table Create a new table containing the category code and description for the categories of books sold. The table should be called "Categories" and should include attributes named "Catcode" and "CatDesc". CatCode will store always store 2 alphanumeric values, while CatDese will store a maximum of 10 alphanumerics, 10.) Show the structure of the "Categories" table. 11.) Delete the "books2" table so that it can still be restored from the recycle bin 12.) Delete the "Categories" table permanently 13.) Restore the "books2" table from the recycle bin 14.) Show the structure of the "books?" table

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David M. Kroenke

12th Edition International Edition

1292023422, 978-1292023427

More Books

Students also viewed these Databases questions

Question

1. Identify the sources for this conflict.

Answered: 1 week ago