Write the SQL code that will create the tables structures for the tables named Books, and Users. Identify and include any PK and FK for both tables.

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter11: Sql Server Databases
Section: Chapter Questions
Problem 13RQ
icon
Related questions
icon
Concept explainers
Question
  • Given the following schema, answer the following questions 

 

USERS

Attribute

Data Type

USER_ID

NUMBER(3)

USER_NAME

VARCHAR2(20)

USER_TYPE

VARCHAR2(10)

USER_LIMIT

NUMBER(1)

 

                        BOOKS

Attribute

Data Type

BOOK_ID

NUMBER(5)

BOOK_TITLE

VARCHAR2(25)

BOOK_YEAR

VARCHAR2(4)

 

 

 

  1. Write the SQL code that will create the tables structures for the tables named Books, and Users. Identify and include any PK and FK for both tables. 

 

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Query Syntax
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr