LOG
LOG2
LOG10
Returns the base-2 logarithm.
LOG2(x)
Enter values below to update the example in real time.
stock_qty
log_qty
products
SELECT LOG2(stock_qty) AS log_qty FROM products;