View Single Post

   
  #1 (permalink)  
Old 05-13-2008, 07:13 PM
Ciaran
 
Posts: n/a
Default Simplify a long sql statement

Hi there,
this statement works fine but I'm wondering is there any way to
simplify it?

SELECT score,
(SELECT name from players WHERE playerID=records.playerID LIMIT 1) as
playername,
(SELECT name from teams WHERE teamID=records.teamID LIMIT 1) as
teamname
FROM records

Thanks for any help!
Ciarán
Reply With Quote