Revature interview question

How to pull data from a SQL table?