1 - You should put a CHECK constraint that PCECD is P or D
2 - Buy me a drink tomorrow and I'll send you a trigger sample that would
work fine. Add the new field.
3 - Then again, if you queried the view, and not the table, then your view
could easily handle that with a CASE statement.
This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact