Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

date difference problems

$
0
0
I have two tables:
clients containing clientid, forename, surname
advice containing adviceid, date, clientid

A client could come any number of times for advice.

I want to extract:
the number of clients who have received advice between two dates - date1 and date2 (I can do this)
the number of people who are ‘new’ i.e. the ones who last received advice 12 months or more before date1

It is this second one that I can’t do.

Can anyone help?

Viewing all articles
Browse latest Browse all 13329

Trending Articles