select ename from employee where eno in(select eno from works_on where pno =(select *from
project)
what is the output ?
a)Employee who works on all project.
b)Employee who works one project .
c) name of employee who works on more than one project.
2)Select ename from employee where salary = salary
3)what is the use of B-tree
a) has fixed index file size
b) is better for queries like < >=
c) searching will be easy
4)Question on inner Join returning N- tuples & Full outer Join returns M- tuples. For both Variables are
given & in options relationship is given to find whichever have greater tuples.And variable D is
given------
a)then N= M
b) N = M + D
5) To save space which option is better
a) write all join operation then select then project
b) write all join operation then projects then select
c)write all join operation then select between project
Test 2- Consist of Two Questions. In this we have to make a C program.
Q.1)Inward-spiral order matrix.i.e you have to traverse the matrix in clockwise manner and display the elements,for eg.
1 2 5 4
8 9 7 1
9 7 6 3
2 3 5 8
output should be 1, 2, 5, 4, 1, 3, 8, 5, 3, 2, 9, 8, 9, 7, 6, 7
Q.2)Consider a two dimensional array A[N][N] of the order n x n.Then you find the sub-squares and display the largest sum of the sub-square.Sub- squares are the contigious elements in the array.Largest sum can be find out by summing the elements in the sub-square
LinBerlin Attars on Amazon
🌿 Buy LinBerlin Luxury Attars - 30% Off - Exclusively on Amazon