| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Mapping arbitrary number of attributes to DB
Joshua J. Kugler wrote:
> Cimode wrote:
>
>>>Here it is: the application is going to be importing data from files >>>that contain sensor readings. These files can have an arbitrary number >>>of columns, anywhere from maybe three or four all the way up to 200+ >>>depending >> >>No need to go any further to tell you this is the wrong direction
>>I would have expected the file to be no more than a convenient medium >>for interchanging the data. In that case the file structure is surely >>the least relevant part of the problem - yet you have apparently based >>your whole model around it! >> >>The route to an effective logical design is via an understanding of the >>concepts you are trying to model. I don't think columns in files will >>help achieve that. Even given the limited information you supplied your >>design still looks highly impractical.
Station(stationid, location, name, etc)
Instrument(instrumentid, datatype, rangemin, rangemax, etc)
StationInstruments(stationid, instrumentid, positionininputstream)
Recordings(stationid, instrumentid, recordingid [maybe a timestamp],
value)
When new instrument types come on line new Instrument rows are added. If instruments deliver non numeric data, then the simple (rangemin, rangemax) will have to be extended in fairly obvious ways. Received on Mon Oct 23 2006 - 23:56:28 CDT
![]() |
![]() |