CGI interview question

They ask question regarding sql and java , mostly basci question and ask to write the implimentation