Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

How to export SQL data to Excel SpreadSheet using SQL Query?

$
0
0

Hi

Im using this query to select ,calculate and format data like  Refer here for more understanding:-


Select  DateAdd(Hour, DateDiff(Hour, 0, RowDateTime), 0) As RowDateTime,
  Avg(Meter1) As Meter1,
  Avg(Meter2) As Meter2,
  Avg(Meter3) As Meter3
From    TableName
Group By DateAdd(Hour, DateDiff(Hour, 0, RowDateTime), 0)

 

I want the output of the query to be written in the excel Sheet.

Your help will be highly appreciated.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>