风扇陷阱和深陷陷阱-数据库 [英] Fan trap and chasm trap - Database

查看:139
本文介绍了风扇陷阱和深陷陷阱-数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我什么是深陷陷阱?也许我也不太清楚粉丝迷。另外,请提供易于理解的示例(通过Chen表示法)。

Can anyone tell me what is chasm trap? Perhaps fan trap too as I'm not too clear. Also, please provide easy to understand examples (via Chen notations).

到目前为止,我的理解是:我知道粉丝陷阱是M:1:1:M ,这表明实体之间的路径不明确。

我理解这一点。例如,如果M代表学生,另一个M代表学校,那么它将是模棱两可的,因为我们不知道哪个学生在哪个学校学习(这是我到目前为止所了解的)。

但是,我无法理解什么是陷阱。

However, I cannot grasp what is chasm trap.

此外,我该如何识别陷阱然后加以修复?

Also, how can I identify the traps and then fix it?

推荐答案

简单来说,对于这两种情况(FAN& CHASM),它将产生比实际更多的行(结果集) 。如何识别

In simple word, for both the cases (FAN & CHASM) it will produce more line(result sets) than actual. How to identify


  • FAN-> 1-NN 表示表关系从一个->多->多

  • CHASM-> N-1-N 表示一行表到两个或多个表的多关系

  • LOOP-> join 所有表,并在make循环时像圆一样(在这种情况下,我们将绝对丢失一些行)

  • FAN -> 1-N-N means table relation from one -> many -> many
  • CHASM -> N-1-N means one row table to two or more table many relation
  • LOOP -> join all tables and when make loop like circle (In this case we will lose some rows absolutely)

没有什么可以确定的,但是当您创建Universe时,我们就必须睁开眼睛,如果在开发Universe时发现这些情况,总会有问题。因此,通过应用别名和上下文进行纠正。

Nothing to identify but when you create Universe than we have to keep our eyes open, if you see out of these situation while developing Universe than there will be a problem always. So rectify by applying aliases, context.

在Universe级别解决了所有问题之后,我们就可以进行报告了。通过练习,您将具有出色的知识。

Once all problems solved at Universe level than we are good to go for reporting. By practice you will have excellent knowledge.

这篇关于风扇陷阱和深陷陷阱-数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆