Monday, 3 September 2018
Subscribe to:
Post Comments (Atom)
select distinct doc_specilization as disease,
DATE_FORMAT(date,'%Y') as year,
count(Distinct doc_specilization) as count
from view_accepted_appoinments
group by year
order by year desc;
+--------------+------+-------+
| disease | YEAR | count |
+--------------+------+-------+
| Primary Care | 2014 | 8 |
| Primary Care | 2013 | 1 |
+--------------+------+-------+
select distinct d , spec,c from(
select date_format(date,"%Y") as d,
doctor, doc_specilization as spec,
count(doc_specilization) as c from
view_accepted_appoinments
group by doc_specilization, d)f
group by d;
Hello Friends! I am Ramana a part time blogger from Hyderabad.
0 comments:
Post a Comment