Are you looking for something like this?
http://sqlfiddle.com/ or http://sqltest.net/
548k questions
547k answers
4 comments
86.3k users