0% found this document useful (0 votes)
48 views8 pages

Adbms Lab Practical-1

Lab practical

Uploaded by

yashdas5392
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views8 pages

Adbms Lab Practical-1

Lab practical

Uploaded by

yashdas5392
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

.

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.

Data Retrieval and Querying Security and Access Control


Objective: Retrieve and query data to answer Objective: Manage user access and ensure data
questions and generate reports. security.
1. CREATE TABLE Command
The CREATE TABLE command is used to create a new table in the DATABASE

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

Entertainment Gaming, music streaming, video


editing, and movie production
3.INSERT
Impact TABLE Command
of Computers on Society
The INSERT command is used to add new rows of data to a table
Computers have profoundly impacted society, transforming how we live, work, and
.

interact with each other.

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.

SELECT * FROM Employees;


Global Connectivity
Computers have facilitated communication and collaboration across the
globe.

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

ALTER TABLE Employees UPDATE Employees


RENAME
Speed and TO Staff; Storage Capacity
Accuracy SET Salary = 65000.00
Computers can perform complex
OUTPUT
calculations and tasks with remarkable
WHERE
Computers can store vast amounts of
data and information, making it easy to
EmployeeID = 100;
speed and accuracy. access and retrieve information.
OUTPUT

Connectivity User Friendliness


Computers facilitate communication and Modern computer interfaces are
collaboration through networks and the designed to be user-friendly, making
internet. them accessible to a wide range of
users.
6. DELETE Command 7. DROP Command
The DROP TABLE command is used to delete a table
and its data from the database.
The DELETE command is used to remove rows from a
table.
QUERY

DELETE FROM Employees


WHERE EmployeeID = 100; DROP TABLE Employees;
OUTPUT OUTPUT

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.

You might also like