Capgemini Interview Question

How to Retrive data from Database