
DDL QZ
Presentation
•
Instructional Technology
•
10th Grade
•
Practice Problem
•
Hard
Valsa Gerard
FREE Resource
23 Slides • 0 Questions
1
2
➢Listen to instructions carefully.
➢Stay focused always.
➢Seek for assistance whenever required.
➢Notify the teacher by raising your hand when you are in need.
➢Keep quite and listen carefully when your class mate is talking.
➢Every member must contribute actively to the discussions.
➢All students must be polite and courteous.
➢ Do not talk when you are not asked to do so.
➢Take responsibility of your learning.
Ways of Working
3
The
Imagination
Challenge
:
"Imagine
you
are
assigned
with
designing
a
database
for
a
Employee
Database
for
a
company
.
Discuss
and
justify
the
design
decisions
you
would
make,
including
the
choice
of
tables,
attributes,
and
relationships,
to
ensure
efficient
data”
.
4
EMPID
NAME
SALARY
DESIGNATION
DEPARTMENT
101
NIHAL
8500
HR MANAGER
ADMIN
102
ARJUN
7500
ACCOUNTANT
ACCOUNTS
103
SAYED
10000
IT MANAGER
IT
104
CHRIS
4500
SALES MAN
SALES
The Imagination Challenge
5
What
would
you
do
if
you
need
to
add/Edit/delete additional columns in the
existing database?
Learning Outcome:
•
Apply DDL commands specifically Create, Alter, and Drop in database
tables.
•
Analyze the data in the database using Data Manipulation Language
(DML) commands.
6
Learning Outcome:
At
the
end of
this
lesson students
will
be
able
to:
•
Apply DDL commands specifically Create, Alter, and Drop
in database tables.
• Analyze the data in the database using Data
Manipulation Language (DML) commands.
7
•
The DDL language is used to change the structure of
the database
•
DDL commands affect the whole table of the database.
•
DDL has basically defined the column(attributes) of
the table.
•
Eg. CREATE, ALTER, DROP
Learning Outcome:
•
Apply DDL commands specifically Create, Alter, and Drop in database tables.
•
Analyze the data in the database using Data Manipulation Language (DML)
commands
8
•
DML is used to delete, update and update data
in the database.
•
DML commands affect the one or two rows of the table.
•
This language is used to manage the data in the
database.
•
Eg. SELECT, INSERT, UPDATE, DELETE
Learning Outcome:
•
Apply DDL commands specifically Create, Alter, and Drop in database
tables.
•
Analyze the data in the database using Data Manipulation Language
(DML) commands
9
DDL
•
CREATE
•
ALTER
•
DROP
DML
•
SELECT
•
INSERT
•
UPDATE
•
DELETE
DDL and DML commands
Learning Outcome:
•
Apply DDL commands specifically Create, Alter, and Drop in database
tables.
•
Analyze the data in the database using Data Manipulation Language
(DML) commands.
10
11
ALTER TABLE Customers
ADD Email varchar(25);
ALTER
Alters command allows you to alter the structure of the
database.
Syntax: ALTER TABLE table_name
ADD column_name datatype;
Example
Learning Outcome:
•
Apply DDL commands specifically Create, Alter, and Drop in database
tables.
•
Analyze the data in the database using Data Manipulation Language
(DML) commands.
12
ALTER TABLE Customers
DROP COLUMN Email;
To delete a column in a table, use the following syntax (notice that some
database systems don't allow deleting a column):
ALTER TABLE table_name
DROP COLUMN column_name;
Learning Outcome:
•
Apply DDL commands specifically Create, Alter, and Drop in database
tables.
•
Analyze the data in the database using Data Manipulation Language
(DML) commands.
13
EMPID
NAME
SALARY
DESIGNATION
DEPARTMENT
101
NIHAL
8500
HR MANAGER
ADMIN
102
ARJUN
7500
ACCOUNTANT
ACCOUNTS
103
SAYED
10000
IT MANAGER
IT
104
CHRIS
4500
SALES MAN
SALES
14
Flexi Tasks
TASK2
Create a Table Employee and
insert
values
into
the
table
Employee.
• Display all the records from
the table employee.
• Display all the records from
the table Employee whose
salary is <6000.
• Drop the column Department
Extended Task:
Add a new column email to
the table Employee.
• Create a Table Employee
and insert values into the
tale employee.
• Increase the salary of
CHRIS by 5000.
• Add a new column email
to the table Employee.
• Drop the column
department from the
table employee.
Extended Task
Alter TABLE employee with
Email id and Mob Number.
• Create a Table Employee
and insert values into the
table Employee.
• Display all the employees
name from the table
Employee where
designation is “HR
MANAGER” and SALARY
>7000.
• Alter TABLE employee with
Email id and Mob Number.
Extended Task : Drop the
column Department and
check the status of the
database table.
15
16
17
18
19
Mistake Investigation
1. ALTER TABLE Employee
ADD Email (25):
4. DROP TABLE Employee
:
5. Update Employee
set Designation = “Programmer”
where empid = 103;
2. ALTER TABLE Customers
DROP COLUMN Email;
20
1. SELECT * FROM Employee;
ORDER BY salary;
2. ALTER TABLE Employee
PoBoxNum varchar(55)
3. DROP
employee;
21
Q1. The __________ language is used to change the
structure of the database.
Ans. DDL
Q2. _______
command allows you to alter the structure
of the database.
Ans. Alter
Q3.
Update is an example of ____ command
Ans. DML
22
23
Consider the following critical thinking question related to the SQL ALTER command:
"You have inherited a legacy database with a table that contains a large amount of data
and is frequently accessed by multiple applications. One of the columns in the table
needs to be renamed to reflect a new business requirement. How would you approach
using the SQL ALTER command to rename the column while minimizing downtime and
ensuring data integrity? What potential challenges or risks might you encounter, and
how would you mitigate them? Additionally, how would you handle the impact on
dependent objects, such as views, stored procedures, or application code, that
reference the renamed column?"
To develop the ability to apply Data Definition Language (DDL) commands, specifically Create, Alter,
and Drop, in order to manipulate database tables effectively.
Show answer
Auto Play
Slide 1 / 23
SLIDE
Similar Resources on Wayground
17 questions
Exponential Functions: Growth and Decay
Presentation
•
9th Grade
20 questions
Gradient of a Curve
Presentation
•
10th Grade
16 questions
1.2c Honors Slope-Intercept Form
Presentation
•
9th Grade
19 questions
Yr 11 OCR Cambridge Nationals IT
Presentation
•
9th - 10th Grade
21 questions
Cumulative Frequency
Presentation
•
10th Grade
19 questions
PRONOUN
Presentation
•
10th Grade
18 questions
Causation
Presentation
•
9th Grade
17 questions
Graphs of Exponential Functions
Presentation
•
9th - 11th Grade
Popular Resources on Wayground
15 questions
Grade 3 Simulation Assessment 1
Quiz
•
3rd Grade
22 questions
HCS Grade 4 Simulation Assessment_1 2526sy
Quiz
•
4th Grade
16 questions
Grade 3 Simulation Assessment 2
Quiz
•
3rd Grade
19 questions
HCS Grade 5 Simulation Assessment_1 2526sy
Quiz
•
5th Grade
17 questions
HCS Grade 4 Simulation Assessment_2 2526sy
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
24 questions
HCS Grade 5 Simulation Assessment_2 2526sy
Quiz
•
5th Grade
20 questions
Math Review
Quiz
•
3rd Grade
Discover more resources for Instructional Technology
20 questions
Figurative Language Review
Quiz
•
10th Grade
20 questions
Earth Day Trivia
Quiz
•
9th - 12th Grade
10 questions
Earth Day Awareness and Impact
Interactive video
•
6th - 12th Grade
10 questions
Earth Day and Plastic Alternatives
Interactive video
•
5th - 10th Grade
5 questions
A.F/ST Quizizz Day 1
Quiz
•
9th - 12th Grade
100 questions
Biology EOC Review
Quiz
•
9th - 12th Grade
20 questions
Earth Day
Quiz
•
3rd - 12th Grade
16 questions
AP Biology: Unit 1 Review (CED)
Quiz
•
9th - 12th Grade