Skip to main contentSkip to solution

Given:

TableA:

NameHobbies
AnuDance
AnujMusic

TableB:

NameHobbies
PrannavReading
AnujMusic

Find TableA U TableB ?

Solution

✅ Correct Option: 1

Union combines all rows from both tables and keeps each duplicate row only once. The row (Anuj, Music) is in both tables, so it appears once in the result.

NameHobbiesSource
AnuDanceTableA only
AnujMusicBoth (kept once)
PrannavReadingTableB only

Option 2: this is the rows of TableB alone, not the union.

Option 3: this is the rows in TableB that are not in TableA (B−AB - A), not the union.

Option 4: the hobbies are swapped between Anu and Anuj, so these rows are not in either table.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question