Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

count percentage with get date for current date

$
0
0

select Grade, count(*) * 100.0 / (select count(*) from Inspection)

from Inspection

group by Grade;

the other column I have is Date_time I would like to get all the Grade data from current date. 

thanks 


Viewing all articles
Browse latest Browse all 4871

Latest Images

Trending Articles



Latest Images