Skip to content
Advertisement

Tag: tsql

Find repeating phone numbers between a 7 day range

I have a phone and a call date field. I need to find all phone and call dates where calls were made more than once (>1) within a 7 day period. What is the best approach to this? Example: output: Here’s an example query I tried but I assume I can do better (besides, its taking a very long time,

Full Join using a fuzzy join but with distinct matching

We have a table of expected payments and a table of payments made. We need to be able to match payments with a singular expected payment but we allow a +-3 day window for it to be made. On top of that, it should be a one-to-one match. So imagine I have a table of expected payments and payments The

Advertisement