Originally posted by scambro
No, that only gives me one row period, I want one row from table2 for every record in table1. Is that even possible to do in one statement?
Thanks!
Maybe this would explain it better. If I knew that the lowest sequence value was going to be 1, and there would be no repeats in that, I could write it like this:
SELECT
table1.table1_name,
table2.table2_sequence,
table2.table2_id
FROM
table1, table2
JOIN table2 ON
table1.table1_id = table2.table1_id
WHERE
table2.table2_sequence = 1
So maybe I should look into writing to that table with the values 1,2,3, instead of having the user enter their own numbers, which could be 10,20,30.
Thanks!