Hi n_i...thanks for the reply. I forgot to mention the tables are going to be fairly small maybe 15000 - 30000 records a month and the records will be cleaned periodically. The records
will be cleaned based on 'Y' value of one column and the other query/queries will pull all the fields from the table based on the 'Y' and 'N' values of the other
columns.
Between sequence or generated by identity --- like I said the table is going to be cleaned once the order status changes to 'Y' coz then that order is
complete and need not to be in that table anymore. In case of identity if my ids are 1,2,3 and I delete 3 from the table I will be left with 1,2 and then when a
new record is inserted it will 1,2,4 whereas in case of sequence the new inserted record can be calculated based on max(ID)+1 to achieve the order 1,2,3
Does that make sense?