Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Order by date

$
0
0

Hi All;

In the below query i need to use order by date i.e Jan-10,Feb-10, Nar-10 and so on  .

Its ((CONVERT(Varchar(10), new_monthlyprofileoutidname, 105)))in the format Apr-11,Jan-12 and so on

Any help much appreciated

Thanks

select
max(CONVERT(Varchar(10), new_monthlyprofileoutidname, 105)) AS GeneratedDate
from FilteredNew_monthlyoutput
where new_monthlyprofileoutidname is not null and new_monthlyprofileoutidname<> ''
--and statuscodename in (@Status)
--and new_programmemoidname in (@Programme)
--and new_programcontracouttidname in (@ProgrammeContract)
group by new_monthlyprofileoutidname
order by new_monthlyprofileoutidname ASC



Pradnya07


Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>