Skip to content

All-Access: every lesson, no ads. $8.25€8.25US$8.25$4.08US$4.08$2.41US$2.41₹224.91MX$74.91 a month, billed yearly. Free to start. Cancel any time

See plans
All-Access, no ads: every lesson, course and template. $8.25€8.25US$8.25$4.08US$4.08$2.41US$2.41₹224.91MX$74.91 a month. + GST at checkoutSee the plans →

The <code>UNION</code> operator <b>combines</b> the results of multiple queries and <b>removes duplicates</b>. Try:<br/><br/>

movie_idtitlerelease_yearbox_office_millions
1The Dark Knight20081005
2Gladiator2000460
3The Bourne Ultimatum2007444
4Casino Royale2006616
5Avatar20092923
6Iron Man2008585
movie_idtitlerelease_yearbox_office_millions
1Avatar20092923
2Inception2010836
3The Matrix Reloaded2003741
4War of the Worlds2005603
5Minority Report2002358
6Iron Man2008585

UNION - Combining Query Results - SQL Practice Online

Practise UNION - Combining Query Results with 10 interactive SQL exercises. You type real queries into your browser and get instant feedback on every answer - no database setup and no install. It is a fast, hands-on way to learn SQL online and build query skills you can use at work.