Amazon interview question

They asked me mainly about SQL