Unique constraint

External Article

Declarative SQL: Using UNIQUE Constraints

  • Article

In SQL, you can express the logic of what you want to accomplish without spelling out the details of how the database should do it. Nowhere is this more powerful than in constraints. SQL is declarative, and Joe Celko demonstrates, in his introduction to Declarative SQL, how you can write portable code that performs well and executes some complex logic, merely by creating unique constraints.

2015-12-29

6,430 reads

Blogs

Reverse Engineering a Physical Model Diagram

By

I recently wrote about a logical diagram with Redgate Data Modeler. That was interesting,...

Prepping for Certification, Part 3 of ?

By

After I have understood the details for a certification test (part 1), including format...

SQL Training Black Friday Deals

By

If you're looking for particular "Black Friday" deals, here is what I've seen advertised...

Read the latest Blogs

Forums

Best analysis approach to reduce data type length in multiple tables

By Lord Slaagh

Hello SSC, I hope everyone is having a happy and safe holiday season! I...

Do you separate data/log files and TempDB files on different disks using AWS EC2

By WebTechie

Hello,   I am receiving multiple direction on deploying SQL Servers in AWS EC2. ...

Service account being in local admin in AWS EC2 environment?

By WebTechie

Hello, I am working with a company on their database administration.  I am trying...

Visit the forum

Question of the Day

A New Operator

In SQL Server 2025, what does this code return?

SELECT '1' || '0'
 

See possible answers