Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

How to calculate median in Hive

You can use the percentile function to compute the median. Try this:

select percentile(cast(age as BIGINT), 0.5) from table_name

Tags:

Hive

Hiveql

Related

How to reset the bootstrap modal when it gets closed and open it fresh again? operational error: database is locked Failed to copy artifact or file with maven packaging a web application Why use gunicorn with a reverse-proxy? SSH into a docker container from another container on a different host Recover unsaved SQL query Scripts in Oracle SQL Developer Rounding Numbers with bc in Bash Android compile error; Java plugin has been applied, not compatible with android Efficiency of C++11 push_back() with std::move versus emplace_back() for already constructed objects AppCode targeted device families not valid (iPad iOS 8.1) What does " StringBuilders are not thread-safe" mean? What is a safe way to create a Temp file in Java?

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy