MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » September 2012

Re: Adding calculated field



fixed

generate is for identity columns, you know, like an order number, customer
number or some such number you want to system to automatically increment.

You can do what you want but not in the physical table. It will be in a
view. For example
create view rob/inventory as(
select itemnumber,
OpeningBalance+receipts+adjustments-issues as OnHand
from erplib/itemmaster)

Then it's easy to do
select itemnumber, onhand
from rob/inventory
order by onhand desc


Rob Berendt





Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot 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 here. If you have questions about this, please contact