stephenmbell
IS-IT--Management
I have a relationship in my database setting up "buddy items"
so if you select viewing item 100 (it may have buddies of items 234(rating 1), 512(rating 2), 311(rating 3)) - each item -> buddy relationship has an associated rating field. I want to display the item selected at the top, then order by rating ascending
i want it to show item 100, then sort the other items ascending by rating.
OR consider the following
item 421 has buddy items of 101(1), 232(2), and 515(3)
I would like to see 421 show up first, then order 101, 232, 515
Is this possible?
I am thinking about simply added each item to the relationship table and giving it a rating of 0 - which should work - but.. if we had a million items that would be adding a million extra rows to a table that may not necessarily need to be in there
I hope this makes sense
thanks in advance..
sb
so if you select viewing item 100 (it may have buddies of items 234(rating 1), 512(rating 2), 311(rating 3)) - each item -> buddy relationship has an associated rating field. I want to display the item selected at the top, then order by rating ascending
i want it to show item 100, then sort the other items ascending by rating.
OR consider the following
item 421 has buddy items of 101(1), 232(2), and 515(3)
I would like to see 421 show up first, then order 101, 232, 515
Is this possible?
I am thinking about simply added each item to the relationship table and giving it a rating of 0 - which should work - but.. if we had a million items that would be adding a million extra rows to a table that may not necessarily need to be in there
I hope this makes sense
thanks in advance..
sb