Home  |  Contact us  | Submit Questions |  Glossary |  Advanced Search   
Search the KnowledgeBase:
Category:
 
 
Knowledgebase Home >> Prevail >> Prevail 5 | Contact

Here's a useful query for creating letters to any client who has a birthday next month.

Verified with V5 and V6

SELECT ROLODEX.DOB, ROLODEX.PHONE1, ROLODEX.SS,
             RTRIM(Rolodex.firstname) + '  ' + RTRIM(rolodex.lastname)
RTRIM_Rolodex_lastname_R,
             DAYOFMONTH(rolodex.dob) DAYOFMONTH_roldex_birth, MONTHNAME(CURDATE()+(32 - DAYOFMONTH(CURDATE())) MONTHNAME_CURDATE, ROLODEX.ADDRESS, ROLODEX.ADDRESS2, RTRIM(rolodex.city) + ', ' + rolodex.state + ' ' + LEFT(rolodex.zipcode, 5)
RTRIM_city_state_zip
FROM MATTERS MATTERS, RELATED RELATED, ROLODEX ROLODEX

WHERE MONTH(rolodex.dob) = MONTH(CURDATE()) + 1 AND (Related.ID = Matters.MatterID) AND (Rolodex.Deceased is NULL)  and (Rolodex.Ident = Related.Related) AND ( (Related.Client = 1 ))
ORDER BY 5,4
Would you like to...
Export Options
Book Mark Options
User Opinions
No users have voted.

How would you rate this answer?
Helpful
Not helpful
 
Visitor Comments
No visitor comments posted. Post a comment
Related Questions
No related questions were found.
Attachments
No attachments were found.
 
Copyright © Nextage Technologies All rights reserved