Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are to use Oracle database system to create the following database: STUDENT table contains 4 columns: ID , NAME, GRADE and DEGREE * ID

You are to use Oracle database system to create the following database:
STUDENT table contains 4 columns: ID, NAME, GRADE and DEGREE
* ID 9-character student ID (e.g. CIT081234).
* NAME max. up to 30-character student name.
* GRADE -number
* DEGREE 4-character program name (e.g. CSBP).
Based on the above database, please answer the following questions in the space provided:
Q.1. write the SQL statement to create a new table named STUDENT with the 4 columns described above in the description.
Q.2. What is the result/response from Oracle system if the STUDENT table created successfully?
Q.3. To check if a database table exists or not, one way is to display its structure. What is the SQL statement to display the structure of STUDENT table?
Q.4. Now enter the following records into the STUDENT table:
IDNAME GRADEDEGREE
CIT080001 TONY NG100CSBP
CIT059876 ALI MOHAMED80 ITBP
CBA061234STEVE ADAMS90 BABP
CSC075555 BILL GATES50ECBP
CEE042468 STEVE JOBS60EEBP
UAE000000 GREY MORE0 BABP
Q.5. Write your name and ID as a comment to the table.
Q.6. It is a common practice to delete an old existing database table before you create a new one with the same name. Please write the SQL statement to delete a table named STUDENT
Q.7. When you run the above SQL statement in Q1, if STUDENT table does not exist, what is the result/response from Oracle system?

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

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

More Books

Students also viewed these Databases questions

Question

=+5. How would you rewrite the copy to make it more effective?

Answered: 1 week ago