Re: [SQL] can't get the order I want after inserting new rows

2004-12-17 Thread Richard Huxton
Marcus Claesson wrote: Hi Richard, Just looking at the start of your output, you are missing some rows (a/1/1) and have replaced others (a/2/1 isn't in your data). Yes, that's exactly it. There's no mistake. The only column I need to update is 'full', by giving every row a new 'full', based on i

Re: [SQL] can't get the order I want after inserting new rows

2004-12-17 Thread Marcus Claesson
Hi Richard, > Just looking at the start of your output, you are missing some rows > (a/1/1) and have replaced others (a/2/1 isn't in your data). Yes, that's exactly it. There's no mistake. The only column I need to update is 'full', by giving every row a new 'full', based on its 'score'. The tri

Re: [SQL] can't get the order I want after inserting new rows

2004-12-17 Thread Richard Huxton
Marcus Claesson wrote: Hi! I have a problem with getting the order I want on a table after new rows have been inserted. I try to simplify it...: In other words, I have this old table: SELECT * from table ORDER BY full,part; namefullpartscore --- --- - a 1

[SQL] can't get the order I want after inserting new rows

2004-12-17 Thread Marcus Claesson
Hi! I have a problem with getting the order I want on a table after new rows have been inserted. I try to simplify it...: I want to have a one-to-one relationship between 'name' and 'full'. Every 'name' (or'full') have one or more 'parts'. The higher the 'score' the lower the 'full', but for my p