I've seen a few web searches and responses to this but it seems they all involve views.
How can I adjust a column so that it only allows NULL or a unique value?
In my case there's a table with stock items in which only the server items have a serial number. The rest are null. I would like to enforce some kind of control against entering the same serials.
Also, I cannot redesign the architecture as I'm writing a new front end to a still live site.