Scusate ma proprio non riesco a venirne a capo...
SELECT Top 5 tblPartiteSimilScacchi.*, e1.Username as Nome1, e2.Username as Nome2 FROM tblPartiteSimilScacchi
left Join tblUtenti as e1 ON tblPartiteSimilScacchi.CreatoreID=e1.ID
left Join tblUtenti as e2 ON tblPartiteSimilScacchi.SfidanteID=e2.ID
WHERE tblPartiteSimilScacchi.Stato=2 and tblPartiteSimilScacchi.Vittoria<>0
ORDER BY tblPartiteSimilScacchi.ID DESC
Mi da un'errore di sintassi che io non vedo... sarà perchè è la prima query che mi capita di fare di questo tipo (doppia join su stessa tabella) ma proprio non vedo l'errore...
Mi aiutate![]()
Ciao

Rispondi quotando