Explain the EXISTS and UNIQUE functions of SQL. Give an example for each?
EXISTS: The EXISTS function takes one parameter that is a SQL statement. If any records exist which match the criteria it returns true, or else it returns false. This provides you a clean, well-organized way to write a stored procedure in which does either an insert or update.
UNIQUE: If UNIQUE is particular then only unique values are used to compute the mean.