Monday, May 20, 2013

[T-SQL] creating table for fiscal year

[T-SQL] creating table for fiscal year


creating table for fiscal year

Posted: 19 May 2013 11:10 PM PDT

hi alli want to create table for fiscal year in sql server 2012.the fields are :1-ID2-StartDate3-EndDatebut i have some problems with ID column ,i want to set it for the first year(2013)Id int identity(2013,1)when i insert the first records in 2013, ID for that record is 20131, and for the second one 20132, and ...next year it must be set to id int identity (2014,1)how can i do that?changing values of identity column ?

Display -0

Posted: 19 May 2013 06:50 PM PDT

All,I want to display -0 when i run the below queryselect 0.0*-1

No comments:

Post a Comment

Search This Blog