8
REMODECE Work Package 2 Database design Document number 1.0 Author ENERTECH Date 12/07/2006

WP2 - Definition of databaseremodece.isr.uc.pt/intranet/Remodece Database.pdfThis document will list the table and the fields in order ... (x=0001->9999) ... DataList_TableName Database

  • Upload
    vunhi

  • View
    216

  • Download
    3

Embed Size (px)

Citation preview

REMODECE

Work Package 2

Database design

Document number 1.0

Author ENERTECH

Date 12/07/2006

REMODECE WP 2 : Database design ENERTECH

Database design

Introduction The aim of this document is to give an overview of the design for the Remodece database. The database is composed of 13 tables, each containing a subset of data, that are linked together using specific fields. This document will list the table and the fields in order to understand how to use it.

1 – The set of tables composing the database. All the Remodece database is actually contained in one file : Remodece.mdb. This file, for development reasons was created using Microsoft Access software (V2000 or above). The file contains 13 tables, each one containing a data subset. This multi-table structure permits to limit the size of the global database, to speed up the searches and to simplify the importation of new data. The 13 tables are split in 4 categories :

T_Project and T_Country contain the data for the projects’ descriptions (by project we mean a measurement or survey campaign),

T_Household and T_InhabitantType contain the data for the households’ descriptions (by household we mean the houses and apartments in which the measurements or survey were done),

T_Appliance, T_AppList and T_AppFamily contain the data for the appliances descriptions (by appliance we mean the uses in the households),

T_DataList, T_AnnCon, T_MonthCon, T_LoadCurve, T_MonthLoadCurve and T_StandBy contain the aggregated values calculated for each appliance or use.

Figure 1 gives you an overview of the different tables.

2

REMODECE WP 2 : Database design ENERTECH

Figure 1 : The 13 tables composing the database

2 – Field definition for the database tables. Each table contains a subset of the data needed to extract the relevant aggregated data from the database. Certain data has to be shared between all the tables in order to construct a coherent set of data (Project_ID, Household_ID and Appliance_ID are the most important) : 2.1 T_Project table

Fields Desc Value Project_ID Project Identifier 100xxxx (x=0001->9999) Project_Type Measurement campaign / Survey campaign / … Project_Name Project_Start_Date Start date of the project dd/mm/yyyy Project_Stop_Date End date of the project dd/mm/yyyy Project_Involved_Country Country_ID See T_CountryTable

(in this table, one line per country if there are more than one country involved in a project)

2.2 T_Country table

Fields Desc Value

Country_ID Country Identifier 110xxxx (x=0033 for France for ex.)

Country_Name

3

REMODECE WP 2 : Database design ENERTECH

2.3 T_Household table

Fields Desc Value Project_ID Project Identifier See T_Project table

InhabitantType_ID Inhabitant Type Identifier See T_InhabitantType table

Household_ID Household Identifier 20xxxxx (x=000001->99999)

Household_Address Household_NbPersons Household_Area Area in m2 Household_Buildins_Date Household buildind date

2.4 T_InhabitantType table

Fields Desc Value InhabitantType_ID InhabitantType Identifier 210xxxx (x=0001 to 0014) InhabitantType_Desc See comment C1 Comment C1 :

2100010 House, single person, less than 25 years old 2100020 House, single person, 26-64 years old 2100030 House, single person, 64 years old and above 2100040 House, couple without children, less than 25 years old 2100050 House, couple without children, 26-64 years old 2100060 House, couple without children, 64 years old and above 2100070 House, family, 26-64 years old 2100080 Apartment, single person, less than 25 years old 2100090 Apartment, single person, 26-64 years old 2100100 Apartment, single person, 64 years old and above 2100110 Apartment, couple without children, less than 25 years old 2100120 Apartment, couple without children, 26-64 years old 2100130 Apartment, couple without children, 64 years old and above 2100140 Apartment, family, 26-64 years old 2100990 House, inhabitants not know 2100991 Apartment, inhabitants not know 2100999 Not know

2.5 T_Appliance table

Fields Desc Value

Appliance_ID AppList Identifier 30xxxxx (x=000001->99999)

Project_ID Project Identifier See T_Project table Household_ID Household Identifier See T_Household table AppList_ID Appliance Identifier See T_AppList table Appliance_Details Internal volume for cold appliances, dimensions for TV

4

REMODECE WP 2 : Database design ENERTECH

2.6 T_AppList table

Fields Desc Value AppList_ID Appliance Identifier 310xxxx (x=0001 to 9999) AppList_Type Fridge, Freezer, TV, … AppFamily_ID Family Identifier See T_AppFamily table

2.7 T_AppFamily table

Fields Desc Value AppFamily_ID AppFamily Identifier 32000xx (x=01->99) AppFamily_Desc Appliance Family Comment C2 : 3200001 Cold 3200006 Cooking 3200011 Washing 3200016 Drying 3200021 Audiovisual 3200026 Computer 3200031 Light 3200036 Space Heating 3200041 Space Cooling 3200050 Temperature 3200060 Space Heating/Cooling 3200070 Ventilation 3200080 Water heating 3200090 Other 3200099 General consumption

2.8 T_DataList Table

Fields Desc Value DataList_ID DataList Identifier 4100xxx (x=001 to 999) DataList_Name Data type

DataList_Unit Measuring unit Wh, W, Wh/month, Wh/year, …

DataList_TableName Database Table name TD_Name DataList_Desc Data type description DataList_Fields1 List of fields separated by # DataList_Fields2 List of fields separated by # DataList_Fields3 List of fields separated by # DataList_Fields4 List of fields separated by #

To be added to obtain the list

Comment C3 : Annual consumption Standby power Monthly consumption Daily hourly average load curve Daily hourly average load curve per month

5

REMODECE WP 2 : Database design ENERTECH

2.9 T_AnnCon table

Fields Desc Value Project_ID Project Identifier See T_Project table Household_ID Household Identifier See T_Household table Appliance_ID Appliance Identifier See T_Appliance table AnnCon_Value Annual consumption in kWh AnnCon_NbValues Number of data used for calculation If applicable AnnCon_DataType Type of results See comment C4 AnnCon_Method Method used for the calculation

Comment C4 Meas/10mn/Diace (Measured data at 10 minutes interval with Diace system)

Meas/1hour/Enertech (Mesasured data at 1 hour interval with Enertech system)

Meas/Period/SEM10 (Continuous measurement with SEM10 logger)

Survey (Data comes from survey) … (others to define)

2.10 T_MonthCon table

Fields Desc Value Project_ID Project Identifier See T_Project table Household_ID Household Identifier See T_Household table Appliance_ID Appliance Identifier See T_Appliance table MonthCon_Value Monthly consumption in kWh MonthCon_Month Month used for calculation between 1 and 12 MonthCon_NbValues Number of data used for calculation If applicable MonthCon_DataType Type of results See comment C4 MonthCon_Method Method used for the calculation

2.11 T_LoadCurve table

Fields Desc Value Project_ID Project Identifier See T_Project table Household_ID Household Identifier See T_Household table Appliance_ID Appliance Identifier See T_Appliance table

LoadCurve_Value_0 Daily hourly average value in W for [00:00,01:00[ time interval

LoadCurve_Value_23 Daily hourly average value in W for [23:00,24:00[ time interval

LoadCurve_NbValues Number of data used for calculation If applicable LoadCurve_DataType Type of results See comments C4 LoadCurve_Method Method used for the calculation

6

REMODECE WP 2 : Database design ENERTECH

2.12 T_MonthLoadCurve table

Fields Desc Value Project_ID Project Identifier See T_Project table Household_ID Household Identifier See T_Household table Appliance_ID Appliance Identifier See T_Appliance table

MonthLoadCurve_Value_0 Daily hourly average value in W for [00:00,01:00[ time interval

MonthLoadCurve_Value_23 Daily hourly average value in W for [23:00,24:00[ time interval

MonthLoadCurve_Month Month used for calculation between 1 and 12 MonthLoadCurve_NbValues Number of data used for calculation If applicable MonthLoadCurve_DataType Type of results See comments C4 MonthLoadCurve_Method Method used for the calculation

2.13 T_StanBy table

Fields Desc Value Project_ID Project Identifier See T_Project table Household_ID Household Identifier See T_Household table Appliance_ID Appliance Identifier See T_Appliance table StandBy_Value Standby power in W StandBy_Rate Standby rate in %/year StandBy_DataType Type of results See comments C4 StandBy_Method Method used for the calculation To define

3 – Table dependences. Figure 2 shows the dependences existing between the different tables. This dependences are possible by duplicating certain fields between the tables :

Project_ID : unique identifier defining a specific campaign. Household_ID : unique identifier defining a household. Appliance_ID : unique identifier defining a specific appliance or use.

This 3 identifiers, present in all the aggregated data tables, are used to search and retrieve

specific results.

7

REMODECE WP 2 : Database design ENERTECH

Figure 2 : Table dependences

8