0% found this document useful (0 votes)
3 views

DB- Lab 2 - Lab Manual

The document is a lab manual for Database Systems Lab (CSC-271) at Namal University Mianwali, focusing on SQL and its commands. It outlines the categories of SQL commands, including DDL, DQL, DML, DCL, and TCL, and emphasizes the case sensitivity of identifiers. The lab is instructed by Ms. Asiya Batool and utilizes MySQL as the primary tool.

Uploaded by

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

DB- Lab 2 - Lab Manual

The document is a lab manual for Database Systems Lab (CSC-271) at Namal University Mianwali, focusing on SQL and its commands. It outlines the categories of SQL commands, including DDL, DQL, DML, DCL, and TCL, and emphasizes the case sensitivity of identifiers. The lab is instructed by Ms. Asiya Batool and utilizes MySQL as the primary tool.

Uploaded by

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

Database Systems Lab (CSC-271 )

Database Systems - Lab 2

Namal University Mianwali


Faculty of Computer Science

Lab Instructor Ms. Asiya Batool Dated 27-02-2025


SQL, SQL Commands Categories, Importing Sample Database, Select From, Distinct, Alias,
Topic
Arithmetic Functions, String Functions, Date and Time Functions
Tools Used: MySQL

Lab 02 – Lab Manual

 SQL
SQL ( Structured Query Language) is a database language designed for the creation, retrieval and management
of data in a relational databases like MySQL, MS Access, SQL Server, Oracle, Sybase, Informix, Postgres etc.
SQL was developed in the 1970s by IBM Computer Scientists.

These SQL commands are mainly categorized into five categories:

1. DDL – Data Definition Language

2. DQL – Data Query Language

3. DML – Data Manipulation Language

4. DCL – Data Control Language

5. TCL – Transaction Control Language

The SQL keywords and commands are NOT case-sensitive. For clarity, they are shown in uppercase. The
names or identifiers (database names, table names, column names, etc.) are case-sensitive in some systems, but
not in other systems. Hence, it is best to treat identifiers as case-sensitive.

 SQL Commands Categories:


1
1. DDL (Data Definition Language)
DDL or Data Definition Language actually consists of the SQL commands that can be used to define the

You might also like