I am working on an education project for students to test their skills on SQL; we create some questions and ask students to solve them.
The problem comes here:
- How do I create SQL questions? I mean, suppose I asked a student to create a table with some constraints and data types, where is this table going to be created? In my production database? I guess not; if I exposed my database to enduser [evils], they will try to damage it.
- How do I validate the result sets
[Create/Alter/Insert/Update/Rename]
? - How can I establish isolation for answers for different users?
I don't know how SQL Fiddle handles these scenarios, but my requirement is the same as SQL Fiddle.
I found Validation of Scripts but this specific to SQL Server, and my question is not restricted to one platform (DBMS).