Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
abhaysingh
Specialist II
Specialist II

How to get year in sql

Hi,

Like in Qlik with year(Today()) we get output as 2016

In Sql to get Current Year what would be the syntax?

2 Replies
Colin-Albert

For SQL Server use     year(getdate())

abhaysingh
Specialist II
Specialist II
Author

Hi,

Getting below error.. pls suggest

Untitled.png