You are viewing a single comment's thread. Return to all comments →
UNION is to combine the results of two or multiple SELECT statement.
Example : You have 2 tables, Movie & rating both are having common fields movie_name, Duration,director_name
you can write in such a way like..
(SELECT MOVIE_NAME,DURATION FROM MOVIE) UNION (SELECT MOVIE_NAME,DURATION FROM RATING);
Seems like cookies are disabled on this browser, please enable them to open this website
Weather Observation Station 5
You are viewing a single comment's thread. Return to all comments →
UNION is to combine the results of two or multiple SELECT statement.
Example : You have 2 tables, Movie & rating both are having common fields movie_name, Duration,director_name
you can write in such a way like..
(SELECT MOVIE_NAME,DURATION FROM MOVIE) UNION (SELECT MOVIE_NAME,DURATION FROM RATING);