Consider the following relational schema:
Which of the following options is/are correct SQL query/queries to retrieve the names of the students enrolled in course number (i.e., courseno) 1470?
EXISTS
, which efficiently verifies if a student is enrolled. This is correct because the EXISTS
clause checks for the existence of records that match the condition, in this case, enrollment in course 1470.SIZEOF
, which is not a valid SQL function. This is incorrect because SIZEOF
is not recognized in SQL; the correct function would be something like COUNT(*)
or using EXISTS
for verifying record existence.COUNT(*)
, which returns a positive value when a student is enrolled. Since it checks for a positive count of records, it is correct. This approach counts the number of rows where the student is enrolled in course 1470, and if the count is greater than zero, it confirms enrollment.NATURAL JOIN
between Students
and Enrolled
, which implicitly joins on rollno
and filters by courseno = 1470
. This is also correct because a NATURAL JOIN
automatically matches columns with the same name, and the query will filter students who are enrolled in the specified course.Each of these options uses a different SQL approach to achieve the same result, but only Options (A), (C), and (D) are correct, while Option (B) is incorrect due to the use of an invalid function.
The unit interval \((0, 1)\) is divided at a point chosen uniformly distributed over \((0, 1)\) in \(\mathbb{R}\) into two disjoint subintervals. The expected length of the subinterval that contains 0.4 is ___________. (rounded off to two decimal places)
A quadratic polynomial \( (x - \alpha)(x - \beta) \) over complex numbers is said to be square invariant if \[ (x - \alpha)(x - \beta) = (x - \alpha^2)(x - \beta^2). \] Suppose from the set of all square invariant quadratic polynomials we choose one at random. The probability that the roots of the chosen polynomial are equal is ___________. (rounded off to one decimal place)
Consider the following C program:
Consider the following C program:
The output of the above program is __________ . (Answer in integer)
An application executes \( 6.4 \times 10^8 \) number of instructions in 6.3 seconds. There are four types of instructions, the details of which are given in the table. The duration of a clock cycle in nanoseconds is ____________. (rounded off to one decimal place)