Weather Observation Station 5

  • + 0 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);