Home / Expert Answers / Statistics and Probability / a-database-for-a-textbook-publisher-needs-to-be-created-the-following-tables-are-designed-f-pa294

(Solved): A database for a textbook publisher needs to be created. The following tables are designed f ...



A database for a textbook publisher needs to be created. The following tables are designed for this purpose. Also, some sampl

Authorship Table:

Schema for the database:

Answer the following questions using the information given above. Write your code below each question.
- Write the SQL code t

A database for a textbook publisher needs to be created. The following tables are designed for this purpose. Also, some sample data is provided below. Author Table: Book Table: Authorship Table: Schema for the database: Answer the following questions using the information given above. Write your code below each question. - Write the SQL code to create these three tables. Make sure you have primary and foreign key constraints included in the code. - Write the SQL code to insert the sample data into each table. - Write SQL code to insert a new column onto Books table called "pricelncTax" which is FLOAT type and populate it with values calculated as pricelncTax \( = \) price \( * 1.07 \). - Write SQL code to delete books from book table whose price is less than \( \$ 10 \).


We have an Answer from Expert

View Expert Answer

Expert Answer


For Author table Creating Table Create Table Authors { AuthorID varchar(4) NOT NULL, FirstName varchar(20), LastName varchar(20), PRIMARY KEY (AuthorI
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe