Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9091

Query

$
0
0

Hi

I need to update the following query that currently is used to push information from SAP into CRM: BP code, BP Name and Balance

They want to see the balance from before,on and after the refdate

 

SELECT     T0.CardCode, T0.CardName, T0.Balance, T1.ShortName, T1.RefDate

FROM         dbo.OCRD AS T0 INNER JOIN

                      dbo.JDT1 AS T1 ON T0.CardCode = T1.ShortName AND DATEDIFF(day, T1.RefDate, GETDATE()) <= 1

 

 

Currently the RefDate is 2015-09-17 00:00:00:0000 its not showing the time. The query as per today the 18th SEPT  is showing transactions from the 17th and for today

 

Anyone can assist! on which command to be used on the datediff, getdate.

 

Thank you!!


Viewing all articles
Browse latest Browse all 9091

Trending Articles



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