BREAK
BREAK is a command in SQL used to exit a loop before the loop has looped through all its conditions or rows. It abruptly stops the execution of the loop, providing control to the statement that directly follows the loop.
Example
Output
Explanation
BREAK command in Oracle SQL is used to suppress the duplicate values of a certain column in the output. It is usually used together with the ORDER BY clause. In the example provided, BREAK ON DEPARTMENT_ID suppresses subsequent display of the DEPARTMENT_ID when the value is the same as the DEPARTMENT_ID value of the previous row.