473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Efficient data model to represent range

I am working in a data warehousing environment which gets sourced from
Oracle ERP (AR/GL/AP). The dimensional entities associated with
incoming data are GL Code (e.g. 110), Department (e.g. 1050), Core
account (e.g. 301) , sub account (e.g 9).
The incoming data needs to be mapped to key performance indicators
(KPI) e.g. 'All Other Revenue', 'OEM Revenue' etc. The mapping is
driven by GL, Dept, Core account , sub-account ranges. Example -

GL (000 - 999 i.e. for all GLs), Department (0000 - 9999), Core
Account (301-314), sub account (0 - 0) maps to 'All Other Revenue'
GL (110 - 110 i.e. for all GLs), Department (1010 - 1014), Core
Account (500-510), sub account (1 - 2) maps to 'Reg. Development'

Once this mapping is stored in database there is need to periodically
verify that there is no overlapping KPI definitions using SQL
statements. i.e. the following KPI definition is invalid
GL (110-110) , Dept (8999 - 8999), Core Account (314-315), sub account
(0-0) -> 'OEM Revenue'

The data model needs to be flexible enough to accomodate new KPI
definitions or new GLs/ Depts when they get created.Example -
A new core account 302 is created which may map to KPI 'Period Cost'.
In that case the definition of 'All Other Revenue' needs to be changed
to -
GL(000-999),Department(0000-9999) Core account (301-301), sub account
(0-0) -> 'All Other Revenue'
GL(000-999), Department(0000-9999), Core account (303-314), sub
account (0-0) -> 'All Other Revenue'

I would like to get suggestion about representing this mapping
information in best possible / efficient data model in relational
(Oracle) database which can be easily manipulated using SQL. I will
really appreciate any suggestion
Jul 19 '05 #1
1 3318
ab**************@hotmail.com (Abhijit) wrote in message news:<d5**************************@posting.google. com>...
I am working in a data warehousing environment which gets sourced from
Oracle ERP (AR/GL/AP). The dimensional entities associated with
incoming data are GL Code (e.g. 110), Department (e.g. 1050), Core
account (e.g. 301) , sub account (e.g 9).
The incoming data needs to be mapped to key performance indicators
(KPI) e.g. 'All Other Revenue', 'OEM Revenue' etc. The mapping is
driven by GL, Dept, Core account , sub-account ranges. Example -

GL (000 - 999 i.e. for all GLs), Department (0000 - 9999), Core
Account (301-314), sub account (0 - 0) maps to 'All Other Revenue'
GL (110 - 110 i.e. for all GLs), Department (1010 - 1014), Core
Account (500-510), sub account (1 - 2) maps to 'Reg. Development'

Once this mapping is stored in database there is need to periodically
verify that there is no overlapping KPI definitions using SQL
statements. i.e. the following KPI definition is invalid
GL (110-110) , Dept (8999 - 8999), Core Account (314-315), sub account
(0-0) -> 'OEM Revenue'
**** What defines an invalid overlap? Each range or the combination of
ranges? Your first paragraph suggests that a combination of ranges
defines a KPI, but does you example here suggest that each range (GL,
Dept, CA#, SA#) cannot overlap (e.g., GL acct can't be 110 in two
separate mappings regardless of the other ranges?)

The data model needs to be flexible enough to accomodate new KPI
definitions or new GLs/ Depts when they get created.Example -
A new core account 302 is created which may map to KPI 'Period Cost'.
In that case the definition of 'All Other Revenue' needs to be changed
to -
GL(000-999),Department(0000-9999) Core account (301-301), sub account
(0-0) -> 'All Other Revenue'
GL(000-999), Department(0000-9999), Core account (303-314), sub
account (0-0) -> 'All Other Revenue'
**** Perhaps this is understood, but your stated problem here does not
seem like a data model issue but rather maintaining the data in that
model. Once you figure out the appropriate model, you might want to
build a "friendly" API (e.g., PL/SQL) for maintaining that data model
based on user input. For instance, when a user inputs a new mapping,
the API logic determines if any records in your model need to be
deleted/updated/inserted. In this example the input might be
CREATE_NEW_MAPPING(000, 999, 0000, 9999, 302, 302, 'Period Cost');

I would like to get suggestion about representing this mapping
information in best possible / efficient data model in relational
(Oracle) database which can be easily manipulated using SQL. I will
really appreciate any suggestion

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Raghavendra Mahuli | last post by:
i need to store a lot of integers(say 10,000) in a datastructure. The constraints are: 1. It should be fast. 2. It should be orderded or sorted. 3.Insterting and deleting should be fast. 4. The...
22
by: Fred Ma | last post by:
I'm using the expression "int a = ceil( SomeDouble )". The man page says that ceil returns the smallest integer that is not less than SomeDouble, represented as a double. However, my...
3
by: Simon Harvey | last post by:
Hi, In my application I get lots of different sorts of information from databases. As such, a lot of information is stored in DataSets and DataTable objects. Up until now, I have been passing...
6
by: Robert W. | last post by:
I'm building my first major C# program and am try to use best practices everywhere. So I've implemented the "Document/View Model" whereby: - There's a Windows Form, which we'll call "formView" -...
41
by: laimis | last post by:
Hey guys, I just recently got introduced to data mappers (DTO mapper). So now I have a SqlHelper being used by DTOMapper and then business layer is using DTOMapper when it needs to persist...
5
by: Peter Jansson | last post by:
Hello group, The following code is an attempt to perform URL-decoding of URL-encoded string. Note that std::istringstream is used within the switch, within the loop. Three main issues have been...
2
by: eriwik | last post by:
I'm working on an application that performs calculations on triangles of a 3D-model. As part of those computations I have to calculate a value for each pair of triangles and the number of triangles...
21
by: py_genetic | last post by:
Hello, I'm importing large text files of data using csv. I would like to add some more auto sensing abilities. I'm considing sampling the data file and doing some fuzzy logic scoring on the...
1
by: Abhijit | last post by:
I am working in a data warehousing environment which gets sourced from Oracle ERP (AR/GL/AP). The dimensional entities associated with incoming data are GL Code (e.g. 110), Department (e.g. 1050),...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.