Bally's Interactive interview question

They asked me some sql questions