Link to home
Create AccountLog in
Avatar of rocky050371
rocky050371

asked on

Linked Tables + Adding an order column

I have three tables Task, Steps and a join table, each Task can have unlimited steps. The problem I have is I need to store the order in which the steps appear, now if I store the order with the steps table I am unable to use existing steps within other tasks

What is the best way of achieving this?

I currently have a task object which has a collection of step objects.


Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

What are the fields in steps table?
Avatar of rocky050371
rocky050371

ASKER

STEP_ID      int      Unchecked
STEP_Type      smallint      Unchecked
STEP_RecordID      int      Unchecked
STEP_Description      varchar(200)      Unchecked
Is there any field which can be used to order steps?
No, as the step may be disconnected
ASKER CERTIFIED SOLUTION
Avatar of Member_2_4913559
Member_2_4913559
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
I tend to agree, what I will do is allow them to copy an existing step, that should get around the problem.