Now there is also a SQL counterpart named SQL Fiddle. It is basically a tool for easy online testing and sharing of database problems and their solutions.
Using the tool one can build database schema and run SQL within the tool to check the output. Isn’t it wonderful to have such tools in a developer’s arsenal? Enjoy!