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

Help with a T sql query

$
0
0

I have a set of record where I need to find all the customerID`s that went into a location within 180 days

My table as the following columns

Date_of_Service datetime,

LOB varchar(2)

CustomerID Int,

Customer name varchar(50)

Amount Paid Money

How can I find if I have a customer visit at one of our locations (LOB) column more than once in 180 days.

Can someone guide me thru?


FM


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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