Adbms Lab Practical-1
Adbms Lab Practical-1
Practical no-1
1. Study basic SQL statements .
A. Query to study CREATE table command
B. Query to study ALTER table commands
C. Query to study DROP table command
D. Query to study RENAME table command
E. Query to study INSERT command
F. Query to study UPDATE command
G. Query to study DELETE command
Objective
1. DataDefinition 2. Data Manipulation
Objective: Define and manage the structure of Objective: Insert, update, delete, and retrieve
the database schema. data from tables.
QUERY
CREATE TABLE Employees (
EmployeeID
.
INT PRIMARY KEY,
OUTPUT FirstName VARCHAR(50),
LastName VARCHAR(50),
BirthDate DATE,
HireDate DATE,
Salary DECIMAL(10, 2)
);
2.ALTER TABLE Command
The ALTER TABLE command is used toComputers
modify an existing table's structure.
have widespread applications across various industries and aspects
of our lives.
Add a new column: Remove a column:
QUERY: Business Accounting, inventory
ALTER TABLE Employees
ALTER TABLE Employees management, marketing, and
DROP COLUMN Email;
customer relationship
ADD Email VARCHAR(100); management
Education Research, online learning
OUTPUT platforms, and educational
OUTPUT software
Healthcare Diagnosis, treatment planning,
medical imaging, and patient
records management
QUERY:
Increased Efficiency
INSERT INTO Employees VALUES
(100, 'John',have
Computers 'Doe', ’05-15-2000',
automated ‘01-01-2024',
tasks, freeing 60000.00)
up human time and resources.
New Technologies
Computers have driven the development of new technologies, such as
the internet, smartphones, and artificial intelligence.
Advantages of Computers
5. RENAME TABLE Command 4. UPDATE TABLE Command
Computers offer numerous advantages, contributing to progress and innovation.
QUERY
QUERY
Conclusion
Computers have become indispensable tools in our modern world, revolutionizing various aspects of our lives. They continue to
evolve and offer new possibilities, shaping the future of technology and society.