Cognizant interview question

Write a code about interlink the data bases using java