Database And RDBMS Concept

news/2023/6/7 0:37:52

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

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.exyb.cn/news/show-4561636.html

如若内容造成侵权/违法违规/事实不符,请联系郑州代理记账网进行投诉反馈,一经查实,立即删除!

相关文章

Java、检查 ISBN-10

ISBN-10(国际标准书号)由10个个位整数组成,最后一位是校验和,它是使用下面的公式用另外9个数计算出来的: (d1 * 1 d2 * 2 d3 * 3 d4 * 4 d5 * 5 d6 * 6 d7 * 7 d8 * 8 d9 * 9)%11 * 如…

书号验证

2004年起,国际ISBN中心出版了《13位国际标准书号指南》。 原有10位书号前加978作为商品分类标识;校验规则也改变。 校验位的加权算法与10位ISBN的算法不同,具体算法是: 用1分别乘ISBN的前12位中的奇数位(从左边开始数起…

国际标准书号 (International Standard Book Number, ISBN)是专门为识别图书等文献而设计的国际编号

下面是某校2021届转专业计算机科学与工程学院笔试试题。 ISBN是由13位数字组成,最后一位是校验码。如图,校验码的计算方法是:用1分别乘ISBN的前12位中的奇数位(从左边开始数起),用3分别乘以偶数位&#xf…

微信小程序云开发 · 从0搭建商业级校园跑腿平台(已开源)

微信小程序云开发 从零搭建商业级校园跑腿平台 小秃僧 新生代农民工,一枚准毕业的大四学生,热爱前端开发,做个有态度、有思想、有价值的公众号。 好久不更新了,再更新已是打工人! 我将分享用云开发技术开发的校园跑…

python web项目(django+Layui+mysql)

python web项目(django……Layuimysql)1.结果图2目录结构3.开干4.总结为了完成期末作业,做的一个学生成绩管理系统,采用djangoLayuimysql5.5,实现了学生成绩的增删改查,分页显示,批量从文件导入…

31道Java核心面试题(不会的都看过来啦)

uu你好,找工作找了仨月,还没有找到,很焦虑,我该怎么办呢?你那有没有 Java 方面的面试题 以上是读者米粒花给我发的私信,看完后于我心有戚戚焉啊,最近境况确实不容乐观,并非是个人的原…

APP软件能挣钱的不到两成 开发师已超200万人(网摘)

APP软件能挣钱的不到两成 开发师已超200万人 2013年08月11日 09:30 来源:北京青年报 参与互动(0)4以iOS和Android平台为代表的移动应用和开发快速流行——— 发现身边新行当 观众公司、跑腿公司、首席惊喜官、小微企业“虚拟管家”……世事变迁,市场需…

面对疫情,我们正在行动!

前言 2020年注定是一个会被载入史册的一年,这一年里面我们经历了高考延期,奥运会延期,澳大利亚史无前例的森林大火,但是大家印象最深刻的应该还是新冠疫情的爆发。 2020年开年之初,新型冠状病毒就在全国范围内爆发&a…