Question: compose the necessary SQL statements to do the following tasks. 1 . create the following database table: book ( isbn , title, author, numberOfPages, releaseDate
compose the necessary SQL statements to do the following tasks.
create the following database table: book isbn title, author, numberOfPages, releaseDate
Note: Do not create a database.
Apply the following attribute specifications:
isbn: fixedlength string of characters, primary key
title: variablelength string up to characters, cannot be NULL
author: variablelength string up to characters
numberOfPages: a whole number
releaseDate: a date value
Note: use only these data types: INT, DATE, CHAR, VARCHAR
insert three records as follows:
Record : insert the following values accross all attributes:
AAAA, The Beauty, John Doe,
Record : insert the following values for only attributes isbn, title, author, and releaseDate
BBBB Blue Sky Richard Doe,
Record : insert the following values for only attributes isbn and title
CCCC The Secret
create a table called "task from a SELECT statement. this SELECT statement should display all the records from table "book" that satisfy both of the following two conditions:
the releaseDate is not null
the last name of the author is Doe case insensitive
Notes:
Do not include standalone SELECT statements, they tend to mess up the automated tests
When commenting a line, always add a space after a otherwise, you will get an error.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
