SIGN
DIV
GREATEST
整数除算の商を返します。
DIV(y, x)
下記の値を入力するとサンプルに即時反映されます。
total_qty
boxes_per_pallet
full_pallets
warehouse
SELECT total_qty, DIV(total_qty, boxes_per_pallet) AS full_pallets FROM warehouse;