Hi,
I have Asset table.
CREATE TABLE [dbo].[Asset]( [item] [nvarchar](50) NULL, [bought_date] [date] NULL, [price] [numeric](18, 2) NULL, [AssetLife] [numeric](18, 0) NULL, [AssetCurrentDate] [date] NULL ) ON [PRIMARY]
GO and the data is give below.
INSERT INTO [Accounts].[dbo].[Asset] ([item] ,[bought_date] ,[price] ,[AssetLife] ) VALUES ('x' ,'2020-01-01' ,11000 ,8), ('y' ,'2020-01-01' ,8000 ,5)
Below is the Formual
Depreciation Expense= Book Value/Asset Life. Accumulated Dep.=Depreciation expense Book Valve Year End=Asset Value-Accumulated Dep.
Looking for query for below result.
Thanks
Basit.