Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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