r/SQL • • Jul 09 '26

PostgreSQL Data Analyst take home SQL interview

https://docs.google.com/spreadsheets/d/1196AT4YR2ZE0WScMl7q3TDjc0FwVMoSc/edit?pli=1&gid=1425671700#gid=1425671700

This was one of the take home SQL interview i did earlier this year. I have shared for anyone who is preparing for an interview can attempt to do it. Cheers!!

64 Upvotes

27 comments sorted by

View all comments

Show parent comment

-2

u/mikeblas Jul 09 '26

Then, what are you complaining about, Watson?

  • What you see here is Sheets. Not a database
  • The format is easily changed, even if it were.
  • In a database there's no date format -- it's a normalized representation, usually time since some epoch.
  • The format is applied by the tool that's doing the query and showing the results to the user.
  • Unless you write a statement that converts the date type to a string, then the database does it. But the "format" is never in the database.