2019-07-24 笔记:business meeting

2019-07-25  本文已影响0人  鲸鱼酱375

1.sdlc software development life circle

sdlc1

2.

in ddlc, design means data modeling

design = data modeling:

  • A.conceptual: concept bule paper / rough sketch / paper drawings

eg: based on the requirements, how many tables we need?

  • B. logical design: using software (er dirgram)
  • C. physical design:
    based on er dirgram, create databse in sql server/ mysql
there are three steps during design:
conceptual design:  more like sketch, or blue print
logical design: using software
physical design: based on er dirgram, create db

3. ddlc: database development life circle

eg: like building a house,learn the customer's requirements,then design


sdlc

4. gathering requirement & analysis

为了了解客户需求,需要开会

business meeting:

4.1 JRD: joint requirement definition

问题:

如果customer 不说话: question; use case; one to one interview
如果requirement,要团队去analysis their requirement


4.2 JAD: joint application design

review process
find out what user really want
translation from users

4.3 alternative methods:

eg:
发布一个免费的版本,得到feedback,添加更多的feature,改进自己的版本


5. Types of Documentation

5.1 BRD: business required document


5.2 FRD: function requirement document


5.3 alternative documents:

其实是 subset of BRD
BRD FRD都是main document !!!!!!


5.4 why document?


6.Methodologies

how we can appoach this requirement?
what process to achieve the requirement?
一定要选对methodologies对于不同的project


6.1 Waterfall:

customer want you design database and they need deadline
例子:黑五之前要上架一个产品,时间很重要


6.2 Agile: 敏捷的

need a lot communication, talk with developers ,managers


6.3 Scrum: 扭打,混乱,并列争球

people in charge different people, report to manager / ba/users


scrum.png
scrum meeting

the prupose of retrospective meeting: to analyze the most recently completed sprint

6.3.2 what's the difference between the product backlog and the sprint backlog?

the product backlog contains everything we might ever work on, while the spring backlpg contains just the things we'll work on during one sprint.

6.3.4 should the team expect to know all the tasks necessary to complete the committed pbis during the sprint planning meeting?

no,only 60% of the tasks are likely to be identified during the sprint planning meeting. other tasks,such as unanticipated dependencies, will be discovered during sprint execution.

6.3.5 in scrum, is it acceptable to postpone testing until another sprint?

no, in scrum, teams attempt to build a potentially shippable product increment every sprint.

6.3.6

answer

6.3.7 what means of done?

properly tested, refactored, potentially shippable


6.4 Spiral: 螺旋

eg: using in scientific
POC: Proof of Concept
TESTING??? TO GET CUSTOMER FEEDBACK???
only when you have poc, can continue next step.
you need check every step, minize the risk

eg: 把数据库从本地到云端,之前先要有poc, 让customer知道多少天,会有什么问题

https://www.tutorialspoint.com/sdlc/sdlc_spiral_model


7.variables to monitor

requirement, need more communication
schedule: different timing

it is important to choose Methodologies

需要时间的就是waterfall
给不同级别的人report就是scrum
sprial就是随意一些
budget 就是money, waterfall

总结


image.png

8.business process


9. data modeling

9.1 the purpose of data modeling?

9.1.1 before project

9.1.2 during the project


10. data modeling terminology

10.1 terminology

10.2 cardinality

10.2.1

10.2.2 Cardinality Options

EG:
一个客人可以有最少0个订单(有可能客人不买东西) -> min

不知道是什么的笔记
weak relationship
partial participation
eg: one student have one to five courses???

10.3 degree

10.3.1 type of degree


11. keys used in data modeling

11.1

must be unique, not allow null value
follow 1NF
composite key can be primary key, it rares

A foreign key in one table points to a primary key in another table. Foreign keys prevent actions that would leave rows with foreign key values when there are no primary keys with that value.

FK can have null value :orphan record 外键表空值没有的,叫做orphan record

An orphaned record is a record whose foreign key value references a non-existent primary key value.

unique and not null

null is different other null


11.2 关于unique 值中的null

SET ANSI_NULLs OFF
IF(NULL=NULL)
PRINT 'GOOD'
ELSE
PRINT 'NOT GOOD'

sql server默认null is not equal to other null

11.3 join的问题:只有一个表格

在写query之前,记得dry run
因为要理清自己的逻辑
找不是manager的id,
stricted left join

employe(eid,ename,mgid)
manaer(eid,ename,mgid)

select e.*, m.*
from employe e left join manager m
on e.eid=m.mgid
where m.id is null;

自己join

select *
from employe e1 left join employe e2
on e1.eid=e2.mgid
where e2.id is null;

12.concept in data modeling

12.1 conceptual phase

12.2 logical phase

-can define constraints

12.3 physical phase

Crow’s Feet(physical) ; CHEN'S notation(logical)

12.4 difference

image.png

13. NORMALIZATION

in normalization, DML(insert,delete,update) GOOD (只需要插入/修改一个表格); DQL(data query language:select) BAD(因为需要join)
in denormalization, DML BAD; DQL GOOD(不用join)

13.0 data Anomalies

Without normalization many problems can occur when trying to load an integrated conceptual model into the DBMS. These problems arise from relations that are generated directly from user views are called anomalies.


database

not consitence(not uniform, something you want to do, but you are not able to do)
and not relaiblility


13.0.1 insert Anomalies

因为primary key没有值,也不能insert

eg:还有一种情况: 新的教授来了没有学生,不能给他加入table

13.0.2 delete Anomalies

eg:学生走了,教授信息也要随着删除,但实际教授没走

13.0.3 update Anomalies

eg

sid sname cid cname profname

一个学生可以有很多课程,如果要更新一个教授的名字,学生学号是1, 其他教授的名字也可能变
(没有 primary key, sid 不是unique的)


13.1 what is noemalization?


13.2 main goal of normalization


13.3 When should we Normalize?


13.4 What are Functional Dependencies?

functional dependency Dependency Diagram

参考资料 https://opentextbc.ca/dbdesign01/chapter/chapter-11-functional-dependencies/

A functional dependency (FD) is a relationship between two attributes, typically between the PK and other non-key attributes within a table. For any relation R, attribute Y is functionally dependent on attribute X (usually the PK), if for every valid instance of X, that value of X uniquely determines the value of Y. This relationship is indicated by the representation below :
X ———–> Y
The left side of the above FD diagram is called the determinant, and the right side is the dependent. Here are a few examples.


13.5 Types of Dependencies

eg:student(studentid,projectno,studentname,projectname)
The StudentName can be determined by StudentID, which makes the relation Partial Dependent.

eg: author(aid,author,book,author_nationality)
author_nationality depends on author,and author depends on author

13.6 How do Dependencies affect Normalization


13.7 The Normalization Process

Going through the normalization process is broken down into formal steps, these are normal forms
In each form, we’ll be focusing on different aspects of the attributes and table design

13.7.1 1NF

Each table cell should contain a single value.
Each record needs to be unique.

choose the primary key

eg: customers(id,name,age,address,orders)
the problem is one customer id can have multiple orders,it will cause data redundancy!

13.7.2 2NF

13.7.3 3NF

example


example

14. attributes

14.1

primary attribute
underline

imaginary ciecle

when cardinolity min is 0
eg: customer order customer没有买东西

回家复习一下
chen notation

14.2 chen's notation

foot notation

14.2.1 chen's notation VS crow's notation

chen's vs crow

crow's notation: for the technical team,they handel and develop model
chen's notation: put them in business requirement


15. database integrity

to make database consistency and reliability

15.1 Entity Integrity

15.2 User-Defined Integrity

基于domain integrity的基础,添加客户的需要。
eg: 给primary key设置成1,2,3,4 这种是domain integrity.
eg: 给primary key设置成e1,e2,e3 这种就是user-defined integrity.

15.3 Domain Integrity

email address, ensure info correctly

15.4 Referential Integrity

The purpose of referential integrity is to prevent orphans and keep references in sync so that this hypothetical situation never occurs.

主表修改,附表也会修改,因为外键的原因

15.5 database design guideline

guideline

16. er-diagram

Entity Relationship Diagram

16.1 different notation

16.1.1 chen's notation

16.1.2 crow's feet notation

feet notation

16.2 er with software /er-win


16.3 converting er to tables

16.3.1 rules

16.3.2 Weak Entity and Strong Entity

image.png

弱实体集单独成为一个表格,把强实体集的主键借过来,和弱实体集的键组成一个新的primary key

16.3.3 relationship

16.3.3.1 Unary Relationships

16.3.3.2 binary relationships

image.png

16.3.4 relation schema

?????????/ what is relation schema

17. Reverse and Forward Engineering

17.1 Forward Engineering

17.2 Reverse Engineering

17.3 Use in Data Modeling

image.png
上一篇 下一篇

猜你喜欢

热点阅读