GalookCZ

merge tables

Mar 20th, 2021
460
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT
  2.  
  3. ockovani_all.misto_id, ockovani_all.vekova_skupina, ockovani_all.misto_nazev, ockovani_all.total, ockovani_all.pfizer, ockovani_all.moderna, ockovani_all.astrazeneca, ockovani_all.mrna, ockovani_all.pomer,
  4.  
  5. ockovani_lastweek.total as total,
  6. ockovani_lastweek.pfizer as w_pfizer,
  7. ockovani_lastweek.moderna as w_moderna,
  8. ockovani_lastweek.astrazeneca as w_astrazeneca,
  9. ockovani_lastweek.mrna as w_mrna, ockovani_lastweek.pomer as w_pomer,
  10.  
  11. ockovani_lastweek.total / ockovani_all.total as total_pomer
  12.  
  13.  
  14. FROM `ockovani_all` JOIN ockovani_lastweek ON ockovani_lastweek.misto_id = ockovani_all.misto_id AND ockovani_lastweek.vekova_skupina = ockovani_all.vekova_skupina
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×