Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CREATE TABLE Author ( Aut _ id INT PRIMARY KEY, Name VARCHAR ( 2 5 5 ) NOT NULL ) ;CREATE TABLE Category ( Cat
CREATE TABLE Author Autid INT PRIMARY KEY, Name VARCHAR NOT NULL;CREATE TABLE Category Catnumber INT PRIMARY KEY, Amount INT NOT NULL;CREATE TABLE Publisher Pubid INT PRIMARY KEY, Name VARCHAR NOT NULL, Address VARCHAR;CREATE TABLE Books ISBN INT PRIMARY KEY, Title VARCHAR NOT NULL, Price DECIMAL Borrowedamount INT, Autid INT, FOREIGN KEY Autid REFERENCES AuthorAutid;CREATE TABLE Member Userid INT PRIMARY KEY, Address VARCHAR Phone VARCHAR Mail VARCHAR;CREATE TABLE Personnel Perid INT PRIMARY KEY, Name VARCHAR Password VARCHAR;I am trying to create a table for Oracle Database with SQL based on the ER diagram here and this is my code. Do I have any shortcomings? If so can you share the correct code?
ISSN Price Title Books Writes M M User id Address Brows NNN Mail Phone no (First name) 1 Member Name Se Borrowed by (Last name 7 Due date M R Retum date Controls Name Name Author Sorted N Ka A3 Published by per_id P N Aut_id N Password Personnel S Cat_number Category Amount Address Publisher Name Pub_id
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started