Get all unique years from a date column using Sql(Mysql)? SELECT distinct year(OrderDate) FROM Orders; SELECT distinct year(column_name) FROM table_name;
I would like to discuss on whatever your requirement will be. Also I feel pleasure to be a part on that. So let’s just the conversation and finish this in efficient way.