Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
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
Partner - Champion
Partner - Champion

For SQL Server use     year(getdate())

abhaysingh
Specialist II
Specialist II
Author

Hi,

Getting below error.. pls suggest

Untitled.png