TheBuzzer
HACK THE WORLD!
- Joined
- Aug 15, 2005
- Messages
- 13,024
Hi I am trying to join a queue where the part that is faking forever is when I am trying to make a style number match to the style description in a table of items. for example
order_items:
12-123
12-123
43-153
12-542
12-123
31-432
styledesctable
12-123 = "small fish"
12-542 = "small cat"
43-153 = "large fish"
and make them become into a single result of
item desc
12-123 "small fish"
12-123 "small fish"
43-153 "large fish"
12-542 "small cat"
31-432 NULL
I tried using left join but that makes the sql query extremely slow
Inner join does not have any null results.
Is there a good way to join the tables?
order_items:
12-123
12-123
43-153
12-542
12-123
31-432
styledesctable
12-123 = "small fish"
12-542 = "small cat"
43-153 = "large fish"
and make them become into a single result of
item desc
12-123 "small fish"
12-123 "small fish"
43-153 "large fish"
12-542 "small cat"
31-432 NULL
I tried using left join but that makes the sql query extremely slow
Inner join does not have any null results.
Is there a good way to join the tables?