100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Summary Complete SQL Notes with Examples | DBMS & RDBMS Guide

Rating
-
Sold
-
Pages
77
Uploaded on
05-09-2025
Written in
2025/2026

These SQL notes provide a complete and well-structured guide to understanding databases, DBMS, and RDBMS concepts. Topics include data types, tables, rows & columns, SQL commands (DDL, DML, DCL, TCL, DQL), operators, clauses (WHERE, GROUP BY, HAVING, ORDER BY), constraints (PRIMARY KEY, FOREIGN KEY, UNIQUE, CHECK), and set operators (UNION, INTERSECT, EXCEPT). Each concept is explained with clear definitions, syntax, and practical examples. Perfect for beginners and students preparing for exams, interviews, or projects.

Show more Read less
Institution
Other
Course
CS201











Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
September 5, 2025
Number of pages
77
Written in
2025/2026
Type
Summary

Content preview

SQL NOTES
BY- NIDHI KUSHWAHA




𝐃𝐚𝐭𝐚
• Data is a collection of facts, such as numbers, words, measurements,
observations or descriptions of things.
Examples-
o Numbers (e.g., 42,3.14)
o Words (e.g., “Hello”, “SQL”)
o Measurements (e.g., height , weight)
o Observations (e.g., “It is raining”)



Database
• A database is an organized collection of data, generally stored and
accessed electronically from a computer system.
• It allow for efficient storage, retrieval, and management of data.
Examples of Databases:
o E-commerce platforms (e.g., Amazon)
o Social media platforms (e.g., Facebook)

,Database Management System (DBMS)
• Database management system is a software which is used to manage the
database.
• DBMS provides an interface to perform various operations like-
1. Creating databases, tables, and objects.
2. Inserting, updating, and deleting data.
3. Dropping databases, tables, and objects.
4. Provides data security.
• Some popular DBMS softwares are MS SQL
SERVER,Oracle,MySQL,IBM,DB2,PostgreSQL etc.



Relational Database Management System(RDBMS)
• It is a type of DBMS that manage relational database.
• It helps to store, organize and retrieve data efficiently. RDBMS softwares
are MySQL, PostgreSQL, SQL Server, and Oracle.



Table
• A table in a database is a collection of rows and columns.
• It is used to organize and store data in a structured format.

,Row and Column
• A row is a horizontal arrangement of data moving from right to left. It is
often referred to as a record or a tuple. It represents individual data
entries.
• A column is a vertical arrangement of data moving from top to bottom. It
is often referred to as an attribute or a field. It represents the
characteristics or properties of the data.
Example- A "Customers" table might have columns like CustomerID, Name,
Email, and Phone with each row representing a different customer.




SQL
• SQL stands for Structured Query Language was initially developed by
IBM.
• Initially it was called as SEQUEL (Structure English Query Language)
• SQL is a programming language used to interact with database.
• SQL allows you to create, read, update, and delete (CRUD) data in a
relational database.

, SQL Data Types
• Data Types define the type of data that can be stored in a table column.
• It ensures data integrity and optimizes storage.


Commonly used Data Types are-
A. String Datatypes- It stores text strings.

1. CHAR-
• Can store characters of fixed length.
• The size parameter specifies the column length in characters can
be from 0 to 255.

2. VARCHAR-
• Can store characters up to given length.
• The size parameter specifies the maximum column length in
characters can be from 0 to 65535.


B. Numeric Datatypes- These datatypes store numbers, both integer and
floating-point number.

1. INT-
• Used for storing whole numbers without decimal.

2. FLOAT-
• Used for storing numbers without decimal.
• Float gives approximate value while performing calculations.

3. Decimal (P, S)-
• Used to store numbers with a fixed number of decimal places.
• Decimal gives exact value.
• Total range of digits can be 1-38. (Precision-P)
• Range after decimal should be 0-30. (Scale-S)
$9.48
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
shyamkiladi

Get to know the seller

Seller avatar
shyamkiladi Self
View profile
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
3 months
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions