<CFQUERY NAME="GetSenderDetails" DATASOURCE="#datasource#">
SELECT UserName, FirstName, LastName, Email
FROM Users
WHERE UserNumber=#Session.UserNumber#
or UserNumber=#GetOrder.UserNumber#
or UserNumber=#GetOrder.ApprovalBy#
</CFQUERY>
From: "Gene Kraybill" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: CF-Talk <[EMAIL PROTECTED]>
Subject: OT: combining SQL queries
Date: Fri, 29 Sep 2000 11:20:31 -0700
<CFQUERY NAME="GetSenderDetails" DATASOURCE="#datasource#">
SELECT UserName, FirstName, LastName, Email
FROM Users
WHERE UserNumber=#Session.UserNumber#
</CFQUERY>
<CFQUERY NAME="GetOrdererDetails" DATASOURCE="#datasource#">
SELECT UserName, FirstName, LastName, Email
FROM Users
WHERE UserNumber=#GetOrder.UserNumber#
</CFQUERY>
<CFQUERY NAME="GetApproverDetails" DATASOURCE="#datasource#">
SELECT UserName, FirstName, LastName, Email
FROM Users
WHERE UserNumber=#GetOrder.ApprovalBy#
</CFQUERY>
Any way to combine these three queries and still be able to reference the
Sender,
Orderer and Approver in my output?
Gene Kraybill
---------------------------------
Gene Kraybill
LPW & Associates LLC
www.lpw.net
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.