I have created the sql statement under the command section of the database expert. I want to added a calculated filed to calculate # of aged days and make that as a table field. How would I do this?? I have tried by adding "today()-dbo.trans.trans_date as aged" but I don't think it is working. Can somebody please help??
select dbo.trans.item_id, dbo.trans.trans_date, dbo.customer.customer_name from dbo.trans left join dbo.customer on dbo.trans.trans_id=dbo.customer.trans_id
select dbo.trans.item_id, dbo.trans.trans_date, dbo.customer.customer_name from dbo.trans left join dbo.customer on dbo.trans.trans_id=dbo.customer.trans_id