I have an application which outputs file data into a database as each file is created. The data which is added to the database is the file size in (Bytes). I run regular queries and report which add these fields up and give me a total size of all the documents which have been created. Obviously, it just adds up the BYTE field so that I end up with a huge figure. How can I then convert this figure into either MB or GB. I understand that:
for MB it is bytes/(1024*1024)
for GB is it bytes/(1024*1024*1024)
I'm getting nowhere with this.