Topic 1: Briefly describe these 3 SQL commands explaining what they do and how they differ. DELETE TRUNCATE DROP Which one/s are DML? Which one/s are DDL?

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter12: Subqueries And Merge Statements
Section: Chapter Questions
Problem 19MC
icon
Related questions
Question

DBMS 130 Worksheet: Data Manipulation Language (DML) and Introduction to
SQL Queries
Topic 1: Briefly describe these 3 SQL commands explaining what they do and how they differ.
DELETE
TRUNCATE
DROP
Which one/s are DML?
Which one/s are DDL?
You may want to try these in APEX.
BUT BE CAREFUL!
If you use them, you WILL LOSE some data and have to repopulate those data.
Topic 2: INSERT
Write INSERT statements to add two countries to HOL_COUNTRIES.
The countries are China and Kenya
Write one INSERT statement with a column list and one without a column list.
INSERT INTO HOL_COUNTRIES (Country_ID, Country_Name)
VALUES
...
INSERT INTO HOL_COUNTRIES
VALUES
...
Topic 3: INSERT and UPDATE
Write an INSERT statement to create a new department named “Data Analysis’.
Write an INSERT statement to create a new Job Title named ‘Data Analyst’ with a Minimum
salary of 5000.00 and a maximum salary of 10000.00.
In one SQL statement, UPDATE all employees who are currently ‘Programmers’.
Change their department to the new Data Analysis Department.
Change their job title to the new Data Analyst Job.
Change their current salary to 7500.00.
Change their manager to Michael Hartstein.
DO NOT modify any employee who is not a programmer.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Single Table
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
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
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