UNION (SQL)
Në shqip përdoret i njëjti emër.
ShpjegimiSQ
UNION bashkon rezultatet e dy query-ve në një listë (dhe heq përsëritjet); UNION ALL i mban të gjitha. Të dyja query-të duhet të kenë të njëjtat kolona.
EnglishEN
UNION combines the results of two queries into one list (and removes duplicates); UNION ALL keeps them all. Both queries must have the same columns.
Si ta mendosh
Si të bashkosh listat e dy klasave në një.
Lexoje në anglisht
Like merging two classes' lists into one.
Shembull kodisql
SELECT emri FROM nxenesit
UNION
SELECT emri FROM mesuesit;