Home >Database >Mysql Tutorial >Run SQL query from specific months in SAP DB
When your T0.name is a character archive, you should replace Order By -
order by case when cast(left (T0.Name,2) as int)>=8 then cast(left (T0.Name,2) as int)-8 else cast(left (T0.Name,2) as int)+4 endas follows
The above is the detailed content of Run SQL query from specific months in SAP DB. For more information, please follow other related articles on the PHP Chinese website!