Advertisement
Sandbird

Untitled

Nov 15th, 2021
1,251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.65 KB | None | 0 0
  1. SELECT B.date as 'ημερ.', c.total_vaccinated_crit as 'εμβ. ICU', c.total_unvaccinated_crit as 'ανεμβ. ICU',
  2. TRUNCATE((100*(c.total_vaccinated_crit/(B.total_completed/100000)))/((c.total_vaccinated_crit/(B.total_completed/100000))+(c.total_unvaccinated_crit/((10506087 - B.total_completed)/100000))),2) as 'εμβ. %',
  3. TRUNCATE((100*(c.total_unvaccinated_crit/((10506087 - B.total_completed)/100000)))/((c.total_vaccinated_crit/(B.total_completed/100000))+(c.total_unvaccinated_crit/((10506087 - B.total_completed)/100000))),2) as 'ανεμβ. %'
  4. FROM vaccinations B
  5. LEFT JOIN cases c ON c.date = B.date
  6. WHERE B.date >= '2021-08-30'
  7. ORDER BY B.id DESC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement