Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL export multiple instances of History recrod

Status
Not open for further replies.

cactus1000

Programmer
Joined
Aug 31, 2001
Messages
149
Location
US
Is it possible to write an SQL statement to export mutliple instances of History rocords with a single Contact record?

I want to select and export some fields of a contact1 record along with 4 columns from the conthist records containing the conthist.date of the most recent conthist.activity = Call Out, conthist.date of the most recent conthist.activity = Appoint., and both conthist.date and conthist.reference for the most recent conthist.activity = Action
 
select * from contact1,conthist where contact1.accountno=conthist.accountno

Regards,

Richard.
PRIOR Analytics UK
Winners of the LBA Customer Service Award.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top