UNION | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

UNION

FIDE wants to hold a major chess tournament and has decided to include players from the Norway Chess and Tata Steel tournaments. Table NorwayChess: player country birthyear rating Magnus Carlsen Norway 1990 2863 Alireza Firouzja Iran 2003 2728 Levon Aronian Armenia 1982 2767 Fabiano Caruana USA 1992 2828 Jan-Krzysztof Duda Poland 1998 2757 Aryan Tari Norway 1999 2633 Table TataSteel: player country birthyear rating Magnus Carlsen Norway 1990 2863 Wesley So USA 1993 2770 Van Foreest Jorden Netherlands 1999 2671 Fabiano Caruana USA 1992 2828 Yu Yangyi China 1994 2709 Write a query to merge 'NorwayChess' and 'TataSteel' tables. Then order the merged table by 'Rating' in descending order and show the final table of participants. need help please

15th Dec 2021, 6:32 AM
Kyle Sabat
Kyle Sabat - avatar
3 Answers
+ 4
SELECT * FROM norwaychess Union SELECT * FROM tatasteel ORDER BY rating DESC
29th Nov 2022, 7:28 PM
Francine Calivozo
0
select player , country , birthyear , rating from NorwayChess union select player , country , birthyear , rating from Tatasteel order by rating desc
19th Mar 2023, 6:25 PM
Sajjad Sokhanvari
Sajjad Sokhanvari - avatar
- 1
You have redundant data in your table. Did the task specify what to do with redundant data?
15th Dec 2021, 7:16 AM
Ipang