ahmedrahil786

Car Prices in socar Query- Rahil

May 7th, 2020
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. select distinct cc.car_name,
  2. (case when cc.car_name = 'AXIA' then 36370
  3. when cc.car_name = 'Bezza' then 41020
  4. when cc.car_name = 'MYVI' then 43820
  5. when cc.car_name = 'Iriz' then 44164.58
  6. when cc.car_name = 'Picanto' then 46159.43
  7. when cc.car_name = 'ALZA' then 57366.08
  8. when cc.car_name = 'POLO' then 61451
  9. when cc.car_name = 'Jazz' then 64972
  10. when cc.car_name = 'CITY' then 66166
  11. when cc.car_name = 'Yaris' then 67288
  12. when cc.car_name = 'VIOS' then 70800
  13. when cc.car_name = 'New Vios' then 77200
  14. when cc.car_name = 'Mazda2' then 75080
  15. when cc.car_name = 'BR-V' then 80211
  16. when cc.car_name = 'Rush' then 93370
  17. when cc.car_name = 'HR-V' then 105470
  18. when cc.car_name = 'ALTIS' then 114550
  19. when cc.car_name = 'Tucson' then 118198.4
  20. when cc.car_name = 'Passat' then 127000
  21. when cc.car_name = 'CX-5' then 130000
  22. when cc.car_name = 'CR-V' then 130919.2
  23. when cc.car_name = 'MINI 3door' then 160629.37
  24. when cc.car_name = 'MINI S 3door' then 175000
  25. when cc.car_name = 'MINI 5door' then 179800
  26. when cc.car_name = 'MINI S JCW 5door' then 180000
  27. when cc.car_name = '330e' then 223190
  28. when cc.car_name = 'ZOE' then 145888
  29. end) as car_prices
  30.  
  31. from car_classes cc
  32. where cc.state = 'normal'
Add Comment
Please, Sign In to add comment