Answered step by step
Verified Expert Solution
Link Copied!

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 ( Aut_id INT PRIMARY KEY, Name VARCHAR(255) NOT NULL);CREATE TABLE Category ( Cat_number INT PRIMARY KEY, Amount INT NOT NULL);CREATE TABLE Publisher ( Pub_id INT PRIMARY KEY, Name VARCHAR(255) NOT NULL, Address VARCHAR(255));CREATE TABLE Books ( ISBN INT PRIMARY KEY, Title VARCHAR(255) NOT NULL, Price DECIMAL(10,2), Borrowed_amount INT, Aut_id INT, FOREIGN KEY (Aut_id) REFERENCES Author(Aut_id));CREATE TABLE Member ( User_id INT PRIMARY KEY, Address VARCHAR(255), Phone VARCHAR(10), Mail VARCHAR(255));CREATE TABLE Personnel ( Per_id INT PRIMARY KEY, Name VARCHAR(255), Password VARCHAR(255));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?
student submitted image, transcription available  

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

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

Using Excel & Access for Accounting 2010

Authors: Glenn Owen

3rd edition

1111532672, 978-1111532673

More Books

Students also viewed these Programming questions

Question

a sin(2x) x Let f(x)=2x+1 In(be)

Answered: 1 week ago

Question

Describe the Ribbon.

Answered: 1 week ago

Question

What can you do in Access to change the structure of a database?

Answered: 1 week ago