SQL Scripts

circle-exclamation

Download the following SQL Scripts:

Scenarios

  • You have 2 developers that want to make change to the system. Try the following files in the simulator to see what would happen. Remember that order the files are executed in is important.

file-download
107B
file-download
112B
  • A developer tries to select more SSN's at one time than the audit table amount allows. How will SQL Simulator react?

After doing a postview merge try adding the a where clause: where employee_id = 1

  • A developer submits a SQL that is only supposed to delete 1 record. Try doing a Preview and a Postview merge to see the difference in how SQL Simulator reacts.

file-download
209B
  • A developer submits a update SQL. Try doing a Preview and a Postview merge.

file-download
86B
  • A developer submits an insert SQL. You have a sneaky suspicion that he did not test his code and if you ran this in production you would get a unique key constraint error. Try doing a dry run to see what would happen.

file-download
89B

Last updated