Grouping the result set based on conditions

前端 未结 0 1191
一向
一向 2020-12-16 05:57

I am calculating Age of a user based on his date of birth.

select UserId, (Convert(int,Convert(char(8),GETDATE(),112))-Convert(char(8),[DateOfBirth],112))/100         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题