Answered step by step
Verified Expert Solution
Question
1 Approved Answer
( show output as well ) You are to use Oracle database system to create the following database: STUDENT table contains 4 columns: ID ,
show output as well You are to use Oracle database system to create the following database:
STUDENT table contains columns: ID NAME, GRADE and DEGREE
ID character student ID eg CIT
NAME max. up to character student name.
GRADE number
DEGREE character program name eg CSBP
Based on the above database, please answer the following questions in the space provided:
Q write the SQL statement to create a new table named STUDENT with the columns described above in the description.
Q What is the resultresponse from Oracle system if the STUDENT table created successfully?
Q 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 Now enter the following records into the STUDENT table:
IDNAME GRADEDEGREE
CIT TONY NGCSBP
CIT ALI MOHAMED ITBP
CBASTEVE ADAMS BABP
CSC BILL GATESECBP
CEE STEVE JOBSEEBP
UAE GREY MORE BABP
Q Write your name and ID as a comment to the table.
Q 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 When you run the above SQL statement in Q if STUDENT table does not exist, what is the resultresponse from Oracle system?
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