I have a logs table that stores various file sizes in bytes. I want to be able to query the database and return the smallest possible float which has been converted to MB GB
select concat(round(data*1048576/1073741824,2),' GB')
for example: 1024 = 1gb select concat(round(1024*1048576/1073741824,2),' GB') 1gb
select concat(round(1024*1048576/1073741824,2),' GB')