Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Syntax Help Writing Constraint/Rule

Status
Not open for further replies.

avanderlaan

Programmer
Jul 11, 2002
156
I have a table with the following columns
-- workOrderId int,
-- serialNumber char(20),
-- other columns...

I would like to impose a constraint on the above-named columns such that either
1) the combination workOrderId/serialNumber is UNIQUE, -or-
2) the serialNumber string must be empty.

Is this possible? Thanx in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top