How to Retrieve Data Using SQL with Select Query