Welcome Guest, Not a member yet? Register   Sign In
Problem constructing a query [SOLVED]
#2

[eluser]JayTee[/eluser]
I made the assumption that the id field in your 'votes' table corresponds to a photo's id field:
Code:
SELECT photos.id
FROM photos
WHERE NOT EXISTS (
  SELECT *
  FROM votes
  WHERE
    votes.id = photos.id
    AND username = 'username'
)


Messages In This Thread
Problem constructing a query [SOLVED] - by El Forum - 03-01-2009, 12:49 AM
Problem constructing a query [SOLVED] - by El Forum - 03-01-2009, 12:58 AM
Problem constructing a query [SOLVED] - by El Forum - 03-01-2009, 01:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB