Use the supplied DDL SQL to create the following tables in Oracle AppEx.  Perform each exercise in Oracle AppEx.  Once you successfully executed the code, copy and paste your SQL and the screenshot of the result underneath each exercise, then delete the table.      ALTER TABLE table_name   ADD column_name column_definition;   ALTER TABLE table_name   MODIFY column_name column_type;   ALTER TABLE table_name   DROP COLUMN column_name;     ALTER TABLE table_name   RENAME COLUMN old_name TO new_name;   ALTER TABLE table_name   RENAME TO new_table_name;   DROP TABLE table_name; Practice Exercise #1: Based on the departments table below, rename the departments table to depts. CREATE TABLE departments ( department_id number(10) NOT NULL,   department_name varchar2(50) NOT NULL,   CONSTRAINT departments_pk PRIMARY KEY (department_id) );

Database Systems: Design, Implementation, & Management
12th Edition
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Carlos Coronel, Steven Morris
Chapter7: Introduction To Structured Query Language (sql)
Section: Chapter Questions
Problem 20P
icon
Related questions
icon
Concept explainers
Question
  • Use the supplied DDL SQL to create the following tables in Oracle AppEx.  Perform each exercise in Oracle AppEx.  Once you successfully executed the code, copy and paste your SQL and the screenshot of the result underneath each exercise, then delete the table.   

 

ALTER TABLE table_name

  ADD column_name column_definition;

 

ALTER TABLE table_name

  MODIFY column_name column_type;

 

ALTER TABLE table_name

  DROP COLUMN column_name;

 

 

ALTER TABLE table_name

  RENAME COLUMN old_name TO new_name;

 

ALTER TABLE table_name

  RENAME TO new_table_name;

 

DROP TABLE table_name;

Practice Exercise #1:

Based on the departments table below, rename the departments table to depts.

CREATE TABLE departments

( department_id number(10) NOT NULL,

  department_name varchar2(50) NOT NULL,

  CONSTRAINT departments_pk PRIMARY KEY (department_id)

);

AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

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
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