Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. select avg(a.ritten), a.weather
  2. from (
  3. select count(fRit.Id) as ritten, dimRain.weatherCondition as weather
  4. from fact_rit fRit, dim_rain dimRain
  5. where fRit.rainId=dimRain.rainId
  6. ) as a
  7. GROUP BY a.ritten, a.weather;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement