Tag: sql server

Community

T-SQL EXCEPT and INTERSECT

(Derek E Wilson) Both T-SQL EXCEPT and INTERSECT are set based operators that combine multiple query results back in the same result set. EXCEPT returns the records from the query on the left that are not found in the right query. INTERSECT returns the distinct rows that are in both the right and

Community

The DRI Subject of References

(Joe Celko) A database must be able to maintain and enforce the business rules and relationships in data in order to maintain the data model. It does this through referential constraints. They aren’t complex, but are powerful, especially with the means to attach DRI actions to them.