Cupola Technology interview question

write a program which interacts with database and get the result and display it on screen