Description: The WHEN clause is evaluated in the order in which it appears in the statement.
For the first WHEN clause that evaluates to true, the database executes the corresponding INTO clause and then skips subsequent WHEN clauses for the given row.
This example uses the FIRST clause to put orders greater than 2,900,000 into the special_orders table and exclude those orders from the large_orders table.
SQL University.net courses meet the most demanding needs of the business world for advanced education
in a cost-effective manner. SQL University.net courses are available immediately for IT professionals
and can be taken without disruption of your workplace schedule or processes.
Compared to traditional travel-based training, SQL University.net saves time and valuable corporate
resources, allowing companies to do more with less. That's our mission, and that's what we deliver.