Netcracker Technology Interview Question

core java , find 2nd max element from the array sql joins and functions, procedures.