I need to write a query in sql server that let's me get get month registered in my table and somehow covert those months into 4 seasons(autumn,fall,spring,summer). Does anyone know how to make this done??
Sql Query that somehow converts months to 4 seasons
sqlsql server
Related Topic
- Sql-server – the best way to auto-generate INSERT statements for a SQL Server table
- SQL update query using joins
- Sql – How to get column names from a table in SQL Server
- SQL server query to get the list of columns in a table along with Data types, NOT NULL, and PRIMARY KEY constraints
- Mysql – Remove duplicate rows in MySQL
- R – How far do you go with YAGNI?
Best Answer
One method is a
case
. Your question doesn't clarify the logic, but here is an example: