Combination of unique and non-unique search criteria(唯一和非唯一搜索条件的组合)

原文

Problem description

When a unique Customer Number is entered into the function Query Customers, data about the customer attached to that number will appear on the screen. The buttons Next and Previous are not active when this is done.
If a Customer Name (or part of a Customer Name) is entered, all customers with that particular name are retrieved. However, only the first customer with this name is displayed on the screen. When the name of a City is also entered, only those customers that reside there are selected.
If only the city is entered, then all the customers from that city are selected.
The buttons Next and Previous allow the user to browse forward or backwards through the customers selected.
How many and what type of functions should be counted?

Discussion

In this case, the user has the option to enter either the customer number or the customer name, and may even combine the customer name with the city. Two exclusive or separate selections are possible, each of which is considered an individual function.

Querying by customer number is an external inquiry. The size of the output is fully determined: namely, all data about a particular customer.

The external inquiry consists of seven data element types: customer number (twice), customer name, address, zip code, city, and order date. Besides the error message and the Search button are counted. Total number is nine data-element-types.

Querying by (a part of a) customer name and/or by city is an external output. The output varies in size because the number of customers that will be selected is not known beforehand. In this case, there is only one external output because the user has more options in which the selections he makes do not exclude each other (i.e., an and/or situation).

Ten data element types determine the function’s complexity: customer number, customer name (twice), address, zip code, city (twice), and order date plus the Search button.

The buttons Next and Previous are used to navigate through the output and are therefore not counted as additional functions or data element types.

Solution

Count one external inquiry with nine data element types for querying by customer number.
Count one external output with ten data element types for querying by customer name and/or by city.

翻译

问题描述

当在“查询客户”功能中输入唯一的客户编号时,屏幕上将显示与该编号相关的客户数据。完成此操作后,“下一步”和“上一步”按钮将不激活。
如果输入了客户名称(或客户名称的一部分),则检索具有该特定名称的所有客户。但是,屏幕上只显示具有此名称的第一个客户。当同时输入城市名称时,仅选择居住在那里的客户。
如果只输入城市,则选择该城市的所有客户。
按钮Next和Previous允许用户向前或向后浏览所选客户。
应该计算多少个什么类型的功能点?

讨论

在这种情况下,用户可以选择输入客户编号或客户名称,甚至可以将客户名称与城市相结合。可以进行两个独占或单独的选择,每个选择都被视为一个单独的功能。

按客户编号查询是一种外部查询。输出的大小是完全确定的:即关于特定客户的所有数据。

外部查询由七种数据元素类型组成:客户编号(两次)、客户名称、地址、邮政编码、城市和订单日期。此外,还统计了错误消息和搜索按钮。总数为九种数据元素类型。

按客户名称和/或城市查询是一种外部输出。输出大小不同,因为将被选择的客户数量事先未知。在这种情况下,只有一个外部输出,因为用户有更多选项,其中他所做的选择不会相互排斥(即,和/或情况)。

十种数据元素类型决定了功能的复杂性:客户编号、客户名称(两次)、地址、邮政编码、城市(两次)和订单日期加上搜索按钮。

按钮Next和Previous用于在输出中导航,因此不被视为附加功能或数据元素类型。

解决方案

统计一个外部查询,包含九种数据元素类型,用于按客户编号查询。
统计一个外部输出,包含十种数据元素类型,以便按客户名称和/或城市查询。

为什么不识别内部逻辑或外部逻辑文件?

个人理解

  • 对于一个完整的分析,应该至少识别一个外部逻辑文件,但是我感觉此案例讨论的是搜索。所以只针对两个独立搜索功能给出了分析结论。
  • 同时联系应用场景此功能不可能单独存在,可能有customer 的维护功能,如果已经识别了ILF,那么此处就不应该重复识别逻辑文件。

19.2 NESMA 唯一和非唯一搜索条件的组合案例分析相关推荐

  1. 19.1 NESMA 唯一和非唯一搜索条件的组合 案例研究

    19.1 Combination of unique and non-unique search criteria(唯一和非唯一搜索条件的组合) 原文 Problem description When ...

  2. 唯一聚集索引上的唯一和非唯一非聚集索引

    在上篇文章里,我讨论了唯一和非唯一聚集索引的区别.我们已经知道,SQL Server内部使用4 bytes的uniquifier来保证非唯一聚集索引行唯一.今天我们来看下唯一聚集索引上,唯一和非唯一非 ...

  3. 索引键的唯一性(2/4):唯一与非唯一聚集索引

    索引键的唯一性(2/4):唯一与非唯一聚集索引 原文:索引键的唯一性(2/4):唯一与非唯一聚集索引 在上一篇文章里,我们讨论了堆表上唯一/非唯一非聚集索引.在SQL Server里没有聚集索引定义的 ...

  4. 索引键的唯一性(3/4):唯一聚集索引上的唯一和非唯一非聚集索引

    在上篇文章里,我讨论了唯一和非唯一聚集索引的区别.我们已经知道,SQL Server内部使用4 bytes的uniquifier来保证非唯一聚集索引行唯一.今天我们来看下唯一聚集索引上,唯一和非唯一非 ...

  5. 所见非所得: 浅析同形异义词攻击及案例分析

    引言 自从 ICANN 二十多年前在域名(称为国际化域名或简称 IDN)中引入Unicode 以来,一系列全新的安全问题也随之浮出水面,同时还可能使用不同的字母和Unicode 字符注册域名. 在研究 ...

  6. elasticsearch搜索条件

    elasticsearch搜索条件 1.组合条件 filter:过滤条件 must:and should: OR mustNot:not 2.查询QueryBuilders 2.1 完全匹配(term ...

  7. 类选择器选择非唯一属性无法精确取值的问题

    类选择器选择非唯一属性无法精确取值的问题 一.总结 一句话总结:因为做的操作并不是精确选取,因为执行了两次选择器,所以肯定不对啊. 二.类选择器选择非唯一属性无法精确取值的问题 1.截图 2.代码 1 ...

  8. mysql 外键唯一,关于mysql:外键可以引用非唯一索引吗?

    我认为外键意味着单行必须引用单行,但是我正在查看某些表,但事实并非如此. 表1在表2的列2上有一个具有外键约束的列1,但是在表2中有很多记录在列2中具有相同的值. 在column2上也有非唯一索引. ...

  9. 获取数组中的所有非唯一值(即:重复/多次出现)

    本文翻译自:Get all non-unique values (i.e.: duplicate/more than one occurrence) in an array I need to che ...

最新文章

  1. 励志前行,加速BCH创新落地
  2. Android解决程序切换后台被干掉,恢复状态问题
  3. Android DrawLayout + ListView 的使用(一)
  4. 【PAT乙级】1087 有多少不同的值 (20 分)
  5. JS跳转手机QQ的聊天页面
  6. jzoj100047-基因变异【位运算,bfs】
  7. 谈谈用SQLite和FMDB而不用Core Data
  8. python修改文件名字数字_python实现多进程按序号批量修改文件名的方法示例
  9. Linux Shell脚本入门教程系列之(九)Shell判断 if else 用法
  10. 力扣225-用队列实现栈(C++,附思路及优化思路,代码)
  11. Python如何使用生成器得到斐波那契数列
  12. php提交表单怎么验证必填,PHP 表单验证 - 必填字段
  13. 『拼多多』产品体验报告
  14. 计算机应用越来越广泛翻译英文,越来越普遍英语,越来越普通的英文?
  15. passive-interface的含义
  16. AutomationML与OPC UA 相结合-为工业4.0 组件建模
  17. Hbuildx中使用uni-app 新建 微信小程序项目 以及 运行相关配置
  18. chevkv基于成对ANI的快速基因组聚类
  19. 如何打开USB网络共享?
  20. 十三、JavaSE-IO体系

热门文章

  1. 移植 SOEM 到嵌入式平台 STM32F767
  2. 计量经济学计算机处理题,计量经济学切第3章计算机习题.docx
  3. Mac上抓住每一次灵感迸发的App
  4. 无人机与视觉结合项目
  5. pip3与pyttsx3文字语音转换
  6. office出现应用程序错误无法正常启动(0xc0000142)
  7. 徐小平:不做人生规划,你离挨饿只有三天
  8. Stata常见问题解答
  9. 一位父亲给女儿的九条人生忠告
  10. 以太网,令牌网,FDDI,ATM,WLAN的区别