Consider the following tables:
DEPT (DCODE, DNAME)
EMP (ECODE, ENAME, BASIC, DCODE, DT_JN)
Write down the SQL statements for the following:
a. SELECT DNAME, SUM(BASIC) “TOTAL” FROM DEPT, EMP WHERE DEPT.DCODE=EMP.DCODE GROUP BY DNAME;
b. SELECT DNAME FROM DEPT WHERE NOT EXISTS (SELECT * FROM EMP WHERE DEPT.DCODE=EMP.DCODE);
c. SELECT ENAME FROM EMP, DEPT WHERE EMP.DCODE=DEPT.DCODE AND DNAME=’ABC’;
d. SELECT MAX(BASIC) “MAX_BASIC” FROM EMP WHERE DT_JN>01JAN2000;
Define BCNF. How does it differ from 3NF? Why is it considered stronger than 3NF?
What do you mean by ‘Ternary Relationship’? Define the concept of aggregation with suitable example.
What is tree traversal?
Difference between Statement coverage and Branch coverage.
Write a C program to check a year is leap year or not.
Write a C program to print all prime no.(1-100).