Click here to Skip to main content
15,901,373 members
Home / Discussions / Database
   

Database

 
AnswerRe: Swap column Names Pin
Johan Hakkesteegt16-Sep-09 0:25
Johan Hakkesteegt16-Sep-09 0:25 
AnswerRe: Swap column Names Pin
εїзεїзεїз16-Sep-09 5:18
εїзεїзεїз16-Sep-09 5:18 
AnswerRe: Swap column Names Pin
Luc Pattyn16-Sep-09 5:48
sitebuilderLuc Pattyn16-Sep-09 5:48 
GeneralRe: Swap column Names Pin
εїзεїзεїз16-Sep-09 6:45
εїзεїзεїз16-Sep-09 6:45 
AnswerRe: Swap column Names Pin
Abhishek Sur16-Sep-09 11:00
professionalAbhishek Sur16-Sep-09 11:00 
QuestionTransactions Pin
MozhdehQeraati15-Sep-09 22:18
MozhdehQeraati15-Sep-09 22:18 
AnswerRe: Transactions Pin
εїзεїзεїз15-Sep-09 22:27
εїзεїзεїз15-Sep-09 22:27 
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 

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.