Database And RDBMS Concept
What is Data?
Data is information converted into binary digital form.
A bit is the smallest unit of data.
Data can be stored in file formats.
Data is represented as video,images, sounds,text etc.
What is Database?
A database is an organized collection of data.
Allows data to be easily accessed, manipulated and updated.
A method of sorting,managing and retriving information.
Modern databases are managed using a database management system (DBMS)
RDMS
RDBMS is a type of DBMS.
Mainitain the security, accuracy, integrity and consistency.
CRUD
Provide data dictionaries and metadata collections
Data storage management
Structured Query Language(SQL)
Normalization
Process of organizing a database.
Reduce redundancy
Improve data integrity
Simplify database design.
Data in tables and columns
Only related data
Benefits of Normalization
Minimize data redundancy
Minimize null values
Minimize data modification issues
Simplify queries
Cleaner and easier to understand
Speed ,accuracy, and efficiency of the database.
Levels of Normaliation - 1
UNF(Unnormalized Form)
A database is in UNF if it has not been normalized at all.
1NF(First Normal Form)
A releation(table) is in 1NF if (and only if) the domain of each attribute contains only atomic(indivisible) values, and the value of each attribute contains only a single value from that domain.
Levels of Normaliation - 2
2NF(Second Normal Form)
A relation is in 2NF if it is in 1NF and every non-prime attribute of the relation is dependent on the whole of every candidate key.
3NF(Third Normal Form)
A relation is in 3NF if it is in 2NF and every non-prime attribute of the relation is non-transitively dependent on every key of the relation.
Who Needs a Database User
DBA(Database Administrators)
Security Officers
Network Administrator
Application Developers
Application Adminitrators
Users of Application
Responsibilites of DBA
- Install and upgrade
- Allocating system storage
- Creating primary database storage structures
- Creating primary database objects
- Modifying the database structure
- System security
- Backup and Recovery
- User access to the database
Database Objects(Tables)
Attribute/Column
A tupple /Record/ Row
Database Objects(Constraints)
- Not null constraint
- Unique constraint
- Primary key constraint
- Foreigin key constraint
- Check constraint
- REF constraint
Database Objects(Data Types)
Database Objects(Index)
Data structure defined on columns
Speed up data retrieval operations
Small copy of a database table sorted by key values.
Privileges
System privileges
Object privileges
Privilege hierarchy
The PUBLIC role
Summary
Data
Database
RDMS
Normalization
Database User
Database Objects
Privileges
What is DDL ?
Define the database
Specify data types,structures and constraints
CREATE,ALTER and DROP
Implicitly COMMIT
Connect to Database
相关文章
- SSRS ReportServer Database 的Blocking问题
- loadrunner12:常用函数汇总说明之Database Functions参数函数,操作mysql数据库
- 网络号 = IP和子网掩码的每位数AND 主机号 掩码取反与IP地址and运算
- [AWS] Create MySQL database in RDS and connect from local / EC2
- [Docker] Link the Java application and database Docker containers
- [Kotlin] Adding the Hibernate dependencies to our project and creating the database
- [AngularFire 2] Object Observables - How to Read Objects from a Firebase Database?
- EnterpriseDB (PPAS) Oracle兼容性Virtual Private Database(VPD) 数据隔离以及当前缺陷
- 未能正确加载“VSTS for Database Professionals Sql Server Data-tier Application”包。
- [Go] Golang defer 与 MySQL 连接关闭的陷阱 (database is closed)
- 关于COMMIT WORK and COMMIT WORK AND WAIT在SAT中的讨论
- Database之SQLSever:SQL命令实现查询之多表查询、嵌套查询、分页复杂查询,删除表内重复记录数据、连接(join、left join和right join简介及其区别)等案例之详细攻略
- Database之SQLSever:SQLSever数据库管理(GUI法/SQL语句命令法两种方法实现备份(完整备份、差异备份、日志备份)、还原、删除、修改数据库等案例)之详细攻略
- ORACLE database console无法登陆
- [TroubleShooting] The remote copy of database xx has not been rolled forward to a point in time
- 【Android-Jetpack进阶】5、Room 数据库、ViewModel 内通过 Database 查到 LiveData 并通知变化、用 createFromAsset() 预填充数据库
- 【异常】因多租户字段缺少导致Error updating database. Column ‘tenant_id‘ cannot be null