I hava a table that stores payment information, with invoicenumber int and part varchar, where part can be (1/1, 1/2, 2/2, 1/3, 2/3, 3/3, etc)
The thing is not all payments are related to invoices, so I have many null value for invoicenumber.
Is it posible to create a UNIQUE INDEX on (invoicenumber, part) that ignores NULL values on invoicenumber?
tks for any help