Here's my query to pull all the clients and associated occupant data.
<CFQUERY NAME="readesi" DATASOURCE="esidb1">
SELECT DISTINCT occupantid, tbloccupants.clientname, occname, occtype, ext, tbloccupants.acctstatus, suiteid, dddid,
occcell, occemail, occphserial, occemail, occremoteoffice, occhome, occpager, occvmbox, accesscardno, cardassigned,
cardreturned, nokeys, furnitureno, dateentered, tbloccupants.comments, occip
FROM tblMasterClients, tbloccupants
where tblmasterclients.clientname = tbloccupants.clientname
ORDER BY tbloccupants.clientname
</CFQUERY>
Make sense?
Thanks!
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

