Name Hobbies Anu Dance Anuj Music
TableB:Name Hobbies Prannav Reading Anuj Music
Find TableA U TableB ?
| Name | Hobbies |
| Anu | Dance |
| Anuj | Music |
| Prannav | Reading |
The question asks us to find the result of the UNION operation between two tables, referred to as $TableA$ and $TableB$. The UNION operation is used to combine the result sets of two or more SELECT statements. It retrieves all unique rows from the combined tables.
First, let's clearly identify the data contained within each table:
| Name | Hobbies |
| Anu | Dance |
| Anuj | Music |
| Name | Hobbies |
| Prannav | Reading |
| Anuj | Music |
The UNION operation combines rows from both tables. If a row exists in both tables, it is included only once in the final result. This ensures uniqueness.
We can think of the tables as sets of rows:
Let $A$ represent the set of rows in $TableA$: $A = \{ (\text{Anu, Dance}), (\text{Anuj, Music}) \}$
Let $B$ represent the set of rows in $TableB$: $B = \{ (\text{Prannav, Reading}), (\text{Anuj, Music}) \}$
The union operation, denoted as $A \cup B$, combines all distinct elements (rows) from both sets.
Combining all rows from both tables initially yields:
We identify that the row '(Anuj, Music)' is present in both $TableA$ and $TableB$. The UNION operation automatically handles this duplication by keeping only one instance of this row.
Therefore, the resulting table after performing the UNION operation ($A \cup B$) contains all the unique rows from both tables:
The union $A \cup B = \{ (\text{Anu, Dance}), (\text{Anuj, Music}), (\text{Prannav, Reading}) \}$
This is represented in the table below:
| Name | Hobbies |
| Anu | Dance |
| Anuj | Music |
| Prannav | Reading |
This final table correctly shows all the unique combinations of Name and Hobbies found across both $TableA$ and $TableB$.
A stone is thrown horizontally from the top of a 20 m high building with a speed of 12 m/s. It hits the ground at a distance R from the building. Taking g = 10 m/s2 and neglecting air resistance will give :
A sphere of volume V is made of a material with lower density than water. While on Earth, it floats on water with its volume f1V (f1 < 1) submerged. On the other hand, on a spaceship accelerating with acceleration a < g (g is the acceleration due to gravity on Earth) in outer space, its submerged volume in water is f2V. Then:
A railway wagon (open at the top) of mass M1 is moving with speed v1 along a straight track. As a result of rain, after some time it gets partially filled with water so that the mass of the wagon becomes M2 and speed becomes v2. Taking the rain to be falling vertically and the water stationery inside the wagon, the relation between the two speeds v1 and v2 is :
Consider the following statements:
1. Distance between the longitudes becomes zero on North Pole and South Pole.
2. Distance between the longitudes is maximum on the Equator.
3. Number of longitudes is more than number of latitudes.
Which of the statements given above is/are correct?
One block of 2⋅0 kg mass is placed on top of another block of 3⋅0 kg mass. The coefficient of static friction between the two blocks is 0⋅2. The bottom block is pulled with a horizontal force F such that both the blocks move together without slipping. Taking acceleration due to gravity as 10 m/s2, the maximum value of the frictional force is :