Thursday, July 3, 2014

Help with a T sql query

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


No comments:

Post a Comment