• If you want to run it in SSMS and get the answer, that's up to you. However that kind of defeats the purpose of the questions. You should make an attempt to answer the question without running it.

    Think about it, if someone asked you this in an interview, would you answer it or say, "I can't do it without SSMS?"