I have a transaction table that I need to export for our financial system to import. It has a lot of zero's and a lot of spaces in the requested file.
Is there a way to do that and if there is how?
Can someone please help me in explaining how to extract data to a txt file as well. Here is my SQL statement thus far:
SELECT AccountNumber, CustomerID, Sum(CheckTotal) As CKT, Sum(PSD.Quantit y) as QTY, Sum(ItemPrice * PSD.Quantity) As ItPrice, Sum(FCharge) as FCharge, Sum(SCharge) as SCharge, Sum((ItemPrice * PSD.Quantity) + FrankingCharge + ServiceCharge) As Total From PSD INNER JOIN Customer ON PSD.CustomerId = Customer.ID INNER JOIN Item ON PSD.ItemId = Item.ID Where PSD.Datecreated Between '12/01/2006 01:00:00 AM' and '12/31/2006 11:00:00 AM' Group By AccountNumber
Thanks
Is there a way to do that and if there is how?
Can someone please help me in explaining how to extract data to a txt file as well. Here is my SQL statement thus far:
SELECT AccountNumber, CustomerID, Sum(CheckTotal) As CKT, Sum(PSD.Quantit y) as QTY, Sum(ItemPrice * PSD.Quantity) As ItPrice, Sum(FCharge) as FCharge, Sum(SCharge) as SCharge, Sum((ItemPrice * PSD.Quantity) + FrankingCharge + ServiceCharge) As Total From PSD INNER JOIN Customer ON PSD.CustomerId = Customer.ID INNER JOIN Item ON PSD.ItemId = Item.ID Where PSD.Datecreated Between '12/01/2006 01:00:00 AM' and '12/31/2006 11:00:00 AM' Group By AccountNumber
Thanks
Comment