with SQL Coding Tips and Answers
, D427 Practice Test
The WGU Pre-Assessment questions that require you to perform SQL coding do not always return a result
when you run the program. If you want to see what your code did when the code required does not return any
results you can add the following as the last line of code:
After creating or altering a table:
describe [table_name];
After adding or deleting values in a table:
Select * from [table_name] After creating a view:
Select * from [view_name];
(note: you can do this after deleting a view, an error telling you that the view doesn’t exist would be a
positive result)
I found this to be a useful tool when trying to learn where I went wrong on each question as the coaching
report does not return ANY of your answers and I mean on both the multiple choice and on the SQL coding. If
you choose to do this, you MUST click the button to restore the default settings and re-enter your code without
the output code snippet. Failure to do this will result in the answer being marked wrong.
On the left is an answer without the output command. On the right is an answer with the output command