A2119680103 23509 25 2020 Ca2int322 PDF
A2119680103 23509 25 2020 Ca2int322 PDF
A2119680103 23509 25 2020 Ca2int322 PDF
4. Write the SQL statement for the following queries (20 Marks)
Note
• Assignment Should be Submitted online Latest By Monday (30-03-2020)
• Assignment Solution must be hand written will upload as pdf file. Each page of the
assignment contains Name, Rollno, GroupNo and registration of the student.
• Copied assignments straightway get 0 mark .
Lovely Professional University
School of Civil Engineering
Department of Computer Science & Engineering
Computing System and Technologies(INT 322)
4. Write the SQL statement for the following queries (18 Marks)
(a) List the ENAME of employee whose salary is greater than 2000 from EMP
(b) List the ENAME, JOB, SAL of an Employee whose DEPTNO=10 and SAL>2000 from EMP table.
(c) List all the columns of EMP table whose department number is other than 10
(d) List all employees of EMP table whose ENAME start with 'A' and end with ‘N’
(e) List all employees whose JOB post is 'Clerk' or 'Manager'.
(f) List all the employees whose SAL lies between 1250 and 3000.
(g) List all employees who is getting a commission. ( HINT : COMMIS NOT NULL)
(h) List all the employee's according to the date of joining.
(i) List all the names and EMPNO's as `<EMPNO> name is <ENAME>'.
Note
• Assignment Should be Submitted online Latest By Monday (30-03-2020)
• Assignment Solution must be hand written will upload as pdf file. Each page of the
assignment contains Name, Rollno, GroupNo and registration of the student.
Copied assignments straightway get 0 mark