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

Looping Transact SQL

$
0
0

I have an issue regarding the looping

.

Is

there a way toloop backifno records foundindate filtering.


sample

, Rightnow thecurrentdate i have  startdate'2013-09-1 6:00AM'


and

Enddate '2013-09-2 6:00AM' which we dont havetransactionfor thisdate


which this fall

as sunday. i need toloop back 1day startdate'2013-09-31 6:00AM'


and

Enddate '2013-09-1 6:00AM'to determineif has a records.


if

there's a records then i have to pprocess the query or CTE. Thanks.<%2


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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