Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

DATABASE 1. Write SQL code to create the tables with column names and types from Figure 2. STAFF COLUMN_NAME DATA_TYPE NULLABLE DATA_DEFAULT 1 STAFFID NUMBER

DATABASE

image text in transcribed

1. Write SQL code to create the tables with column names and types from Figure 2. STAFF COLUMN_NAME DATA_TYPE NULLABLE DATA_DEFAULT 1 STAFFID NUMBER (6,0) No (null) 2 FNAME VARCHAR2 (20 BYTE) Yes (null) 3 LNAME VARCHAR2 (25 BYTE) No (null) 4 SALARY NUMBER (8,2) Yes (null) 5 MANAGER ID NUMBER (6,0) Yes (null) 6 BRANCHID NUMBER (4,0) Yes (null) BRANCH COLUMN_NAME DATA_TYPE NULLABLE DATA_DEFAULT 1 BRANCHID NUMBER (4,0) (null) 2 BRANCHNAME VARCHAR2 (30 BYTE) NO (null) 3 MANAGER ID NUMBER (6,0) Yes (null) 4 PLACEID NUMBER (4,0) Yes (null) NO PLACE COLUMN_NAME DATA_TYPE NULLABLE DATA_DEFAULT 1 PLACEID NUMBER (4,0) NO (null) 2 CITY VARCHAR2 (30 BYTE) No (null) 3 COUNTRY ID CHAR (2 BYTE) Yes (null) Figure 2: Schema Tables

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

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions