14.07.2011, 07:48
The problem is that i have 2 tables, from first table i want to select player id, and player rank from the second i need the player id which i selected in first line, so i could select correct values. I need this in one query. Is this even possible?
how far i got:
If you don't understand something, please ask. I need this solved as fast as possible
how far i got:
pawn Код:
(SELECT id, playerrank FROM characters WHERE faction = %i )
UNION
(SELECT Name, Last Seen FROM accounts WHERE id = {what i have to put here? if i already select id in the first line, and is this even possible?} ORDER BY Last Seen)