Click here to Skip to main content
15,915,603 members
Home / Discussions / Database
   

Database

 
QuestionDatabase design question Pin
Quake2Player15-Sep-09 11:12
Quake2Player15-Sep-09 11:12 
Hi,

I have a table of product movements between places,

Table Movements
{fromId, toId, date, productId, status, firmware, etc}

And a table of all the products
Table Products
{productId, name, status, firmware, etc}

My question is if its OK this design, in particular the bolded things.

In each movement some properties of the product will change (status and firmware), but the one that is really active and prevailing is the one in the Products table..

So if I want to know the prevailing status I'll ask the Products table.. and if i want to know the status that some product had last tuesday I'll ask the Movements table.

Another solution could be to have a table
Table ProductProperties
{productPropertiesId, status, firmware}

and the other two would be like:

Table Movements
{fromId, toId, date, productId, productPropertiesId}

Table Products
{productId, name, currentPropertiesId}


Any comments?
AnswerRe: Database design question Pin
_Damian S_15-Sep-09 20:48
professional_Damian S_15-Sep-09 20:48 
GeneralRe: Database design question Pin
Quake2Player16-Sep-09 1:14
Quake2Player16-Sep-09 1:14 
AnswerRe: Database design question Pin
Johan Hakkesteegt16-Sep-09 0:31
Johan Hakkesteegt16-Sep-09 0:31 
AnswerRe: Database design question Pin
PIEBALDconsult17-Sep-09 6:22
mvePIEBALDconsult17-Sep-09 6:22 
GeneralRe: Database design question Pin
Quake2Player17-Sep-09 7:33
Quake2Player17-Sep-09 7:33 
GeneralRe: Database design question Pin
PIEBALDconsult17-Sep-09 11:33
mvePIEBALDconsult17-Sep-09 11:33 
QuestionGet Count Of Duplicate Records Using A Loop Pin
rowdykuttan15-Sep-09 8:19
rowdykuttan15-Sep-09 8:19 
AnswerRe: Get Count Of Duplicate Records Using A Loop Pin
Tim Carmichael15-Sep-09 8:29
Tim Carmichael15-Sep-09 8:29 
GeneralRe: Get Count Of Duplicate Records Using A Loop Pin
rowdykuttan15-Sep-09 8:40
rowdykuttan15-Sep-09 8:40 
GeneralRe: Get Count Of Duplicate Records Using A Loop Pin
Tim Carmichael15-Sep-09 8:53
Tim Carmichael15-Sep-09 8:53 
GeneralRe: Get Count Of Duplicate Records Using A Loop Pin
rowdykuttan15-Sep-09 9:11
rowdykuttan15-Sep-09 9:11 
GeneralRe: Get Count Of Duplicate Records Using A Loop Pin
Tim Carmichael15-Sep-09 9:20
Tim Carmichael15-Sep-09 9:20 
GeneralRe: Get Count Of Duplicate Records Using A Loop Pin
rowdykuttan15-Sep-09 9:23
rowdykuttan15-Sep-09 9:23 
AnswerRe: Get Count Of Duplicate Records Using A Loop Pin
PIEBALDconsult17-Sep-09 5:40
mvePIEBALDconsult17-Sep-09 5:40 
QuestionGroup header is not printing on everypage if subreport continues to next page. Pin
Kumaran21cen15-Sep-09 3:26
Kumaran21cen15-Sep-09 3:26 
QuestionHow to Change Color of the data??? Pin
Aman786Singh15-Sep-09 2:47
Aman786Singh15-Sep-09 2:47 
QuestionReplication In SQL Server 2005? Pin
cocoonwls15-Sep-09 0:44
cocoonwls15-Sep-09 0:44 
AnswerRe: Replication In SQL Server 2005? Pin
Hulicat15-Sep-09 7:39
Hulicat15-Sep-09 7:39 
GeneralRe: Replication In SQL Server 2005? Pin
cocoonwls15-Sep-09 8:13
cocoonwls15-Sep-09 8:13 
GeneralRe: Replication In SQL Server 2005? Pin
Hulicat15-Sep-09 10:08
Hulicat15-Sep-09 10:08 
GeneralRe: Replication In SQL Server 2005? Pin
cocoonwls15-Sep-09 20:16
cocoonwls15-Sep-09 20:16 
GeneralRe: Replication In SQL Server 2005? Pin
Hulicat16-Sep-09 6:33
Hulicat16-Sep-09 6:33 
QuestionOracle query Pin
sandhya1414-Sep-09 23:22
sandhya1414-Sep-09 23:22 
AnswerRe: Oracle query Pin
sandhya1415-Sep-09 1:35
sandhya1415-Sep-09 1:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.