Skip to content
Advertisement

Sql query to convert or display bytes columns into MB?

I have a query as

This query would bring the IP addresses that sent more than 1 million bytes within all flows in a specific time frame, you must enter

The result is similar to

I want the sourcebytes to appear as MB format. Do I need a nested query for that? Thanks.

Advertisement

Answer

Use this expression. CONCAT is SQL Server 2012+ and deals with datatypes

Example:

Otherwise, what is the expected output you want>

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement