auto_increment question

2002-03-28 Thread Jeff Habermann
This is my first time posting to this list, so please forgive me if I am not doing this correctly. I will break this into post into two parts: what i want to know and why. Is there a way to get auto_increment fields to fill in gaps in the numbering sequence if some records have been deleted?

Help with JOIN query

2002-03-28 Thread Jeff Habermann
What i want to do seems simple, but i can not for the life of me figure out how to do it. Tables: These tables are not related in any way. A -- 1 2 3 4 5 B -- 1,Bob 3,Jack 7,Janet 8,Gary 9,Kelly I would like to combine tables A and B with a SELECT statement to get this: SELECT -- 1,1,Bob