Professional Documents
Culture Documents
Commands Sam
Commands Sam
A PRACTICAL FILE
SUBMITTED BY:
ENROLLMENT NO.:
.………………………….
SQL stands for Structured Query Language, which is a standardized language for
interacting with RDBMS (Relational Database Management System). Some of
the popular relational database examples are: My SQL, Oracle, maria DB,
postgre SQL etc. SQL is used to perform C.R.U.D (Create, Retrieve, Update &
Delete) operations on relational databases. SQL can also perform administrative
tasks on database such as database security, backup, user management etc. We
can create databases and tables inside database using SQL.
TYPES OF SQL
FEATURES OF SQL
SQL is an English-like language. It uses words such as select, insert ,
delete as part of its commend set.
SQL is a non-procedural language.
SQL processes sets of records rather than a single record at a time . The
most common form of a set of records is a table.
SQL can be used by a range of user including DBAs application
programmers, management personal, and many other types of end users.
SQL Provides command for a variety of tasks including:
querying data
Inserting, updating and deleting rows in a table
Creating, modifying and deleting database objects
controlling access to the database and database objects
guaranteeing database consistency.
COMMANDS
1. CREATING A TABLE
10. TO PRINT ALL THE DETAILS FROM THE TABLE ORDER BY FIRST
NAME ASCENDING AND LAST NAME DESCENDING
11.TO PRINT FIRST NAME AS ‘SHALU’ AND ‘KHUSHBU’ FROM THE
TABLE
12. TO PRINT LAST NAME EXCLUDING FIRST NAMES,’SHALU’ AND
‘KHUSHBU’ FROM THE TABLE
21.