SQL-UnionClause-Page15

                                                                                              


👉Concatenating Data


👉Union Clause

The Union clause merges the output of two or more queries into a single set of rows and columns.

Below query will get the combined list of customers whose customer no starts with "C" and "E".


👉Intersect Clause

The output of an intersect clause will include only those rows that are common to both the queries.


👉Minus Clause

Minus clause outputs the rows produced by the first query after filtering the rows returned by the second query.

Below query gets the list of all employees whose employee numbers are greater than "5" after filtering the set of employees whose employee number is "10".

Comments

Popular posts from this blog

SQL-ForeignKeyConstraint-Page6

Javascript-OOPs(Part3)-Inheritance - (9)

Javascript-Unobtrusive - (6)