A database query I wrote sometimes returns something other than the results I expect. Which of these is most likely the problem?

  • the database server is faulty
  • my query is faulty

I assumed the database server was faulty. After a couple of hours trying to discover a work-around, I looked a bit closer at my query. Which was, of course, faulty.