Nucsoft interview question

Related to oops and sql queries