-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDay1&Day2
More file actions
68 lines (42 loc) · 1.11 KB
/
Day1&Day2
File metadata and controls
68 lines (42 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# 📘 SQL DAY 1 & DAY 2 NOTES
## 🟢 What is SQL?
- SQL stands for **Structured Query Language**
- Used to communicate with databases
---
## 🟡 Data
**Data** is raw information that describes attributes of an entity.
**Examples:**
- Person: Name, Phone, DOB, Gender
- Laptop: Brand, RAM, Storage
- Bottle: Height, Color, Capacity
---
## 🟠 Database
A **database** stores data in a systematic way.
**CRUD Operations:**
- Create / Insert
- Read / Retrieve
- Update / Modify
- Delete / Drop
---
## 🔵 DBMS (Database Management System)
A software used to manage databases.
**Features:**
- Security
- Authorization
---
## 🔴 RDBMS (Relational Database Management System)
Stores data in tables (rows & columns)
**Examples:**
| EMPNO | Name | Salary |
|-------|------|--------|
| 1 | A | 5000 |
| 2 | B | 6000 |
---
## 🟣 Relational Model
- Proposed by **E.F. Codd**
- Forms the basis for RDBMS
- Follows rules (like data in tables, unique rows, etc.)
---
## 🔘 Table
- Logical structure of rows (records) and columns (attributes)
- Smallest unit: **cell** (intersection of row and column)