简体   繁体   English

容量管理数据库

[英]Capacity Management database

I am designing database using Microsoft Access for capacity management.我正在设计使用 Microsoft Access 进行容量管理的数据库。 I have different types of equipment and need to track the power usage by every month.我有不同类型的设备,需要按月跟踪用电量。 For instance, I have HVAC system and Chiller System.例如,我有 HVAC 系统和 Chiller System。 Withing each system there are different equipments like AHU_1, AHU_2,AHU_3, MAU_1, MAU_2 and etc in HVAC system and CHWP_1, CHWP_2, CWP_1, CWP_2 and etc in Chiller system.每个系统都有不同的设备,如 HVAC 系统中的 AHU_1、AHU_2、AHU_3、MAU_1、MAU_2 等,以及 Chiller 系统中的 CHWP_1、CHWP_2、CWP_1、CWP_2 等。

I need to track the power or usage by every month.我需要每个月跟踪电源或使用情况。 For each system i have separate tables containing their respective equipments.对于每个系统,我都有单独的表格,其中包含各自的设备。 What will be suitable way to track the usage?什么是跟踪使用情况的合适方法? This is what I'm planning to do which I believe there are three options as in the picture below:这就是我打算做的事情,我相信有如下图所示的三个选项:

Creating a main table called Chiller_usage Table which will have all the equipments and dates with usage value.创建一个名为 Chiller_usage Table 的主表,其中包含所有具有使用价值的设备和日期。 The problem i see is that it will has repetitive of each equipments due to dates and the pro is not many tables.我看到的问题是,由于日期的原因,每个设备都会重复,而且专业人士的桌子并不多。 Chiller_usage 表

Creating each equipment table which will have dates and usage.创建具有日期和使用情况的每个设备表。 The problem is I have around 60 to 70 equipments with 5 different major systems and will lead to mass amount of table which will be very difficult when making queries and reports.问题是我有大约 60 到 70 台设备和 5 个不同的主要系统,并且会导致大量的表格,这在查询和报告时会非常困难。 装备使用表 Creating date table with equipments and usage value.用设备和使用价值创建日期表。 This looks promising for now because i will have few table initially and as times goes on there will be 12 tables each year which is alot in the future.这看起来很有希望,因为我最初只有很少的桌子,随着时间的推移,每年将有 12 张桌子,这在未来会很多。 日期表

What I'm thinking of is the first option since it is easy to manage when making custom queries because I need to perform calculation in terms of costing, usage analysis of each equipment with graphs and etc. But that i believe will be clumsy due to repetitive name of equipments due to variable dates.我想到的是第一个选项,因为在进行自定义查询时它很容易管理,因为我需要在成本计算、每个设备的使用情况分析以及图表等方面进行计算。但我相信这会很笨拙,因为由于日期不定,设备名称重复。 Is there any other viable options?还有其他可行的选择吗? Thank you.谢谢你。

Assuming you need to store monthly energy usage for each piece of equipment.假设您需要存储每台设备的每月能源使用量。 Normalize the tables.规范化表格。 neither the person entering the data or the manager asking for reports needs to see the complexity of the underlying tables.输入数据的人或要求报告的经理都不需要看到基础表的复杂性。 The person entering the data sees both a form for adding systems/equipment and a form for entering energy usage per equipment per month.输入数据的人会看到用于添加系统/设备的表格和用于输入每个设备每月能源使用量的表格。 The manager sees a report with just the information he wants like energy costs per a system per a year.经理会看到一份报告,其中仅包含他想要的信息,例如每个系统每年的能源成本。 The normalized tables can be recombined into human readable tables with queries.规范化的表可以通过查询重新组合成人类可读的表。 Access trys to make making the forms and reports as simple as clicking on those appropriate queries and then clicking on create form/report. Access 试图使 forms 和报告变得简单,只需单击相应的查询,然后单击创建表单/报告。 In practice some assembly is required.在实践中,需要一些组装。 Behind the scenes the forms put the correct data in the correct tables and the report shows only the data the manager wants. forms 在幕后将正确的数据放入正确的表中,报告仅显示经理想要的数据。 For instance.例如。 here is a normalized table structure based on the data you provided and some assumptions:这是基于您提供的数据和一些假设的标准化表结构: 在此处输入图像描述

The tables are normalized and have the relationships shown.这些表已标准化并显示了关系。 Beneath there is a query to show the total power each system uses between any two dates such as for a yearly report.下方有一个查询,用于显示每个系统在任意两个日期之间使用的总功率,例如年度报告。 So data looking like this:所以数据看起来像这样: 在此处输入图像描述

is turned into this:变成了这样: 在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM