[mso] Access Sub-Query
- From: "Glenda Wells" <gwells@xxxxxxxxxxx>
- To: <mso@xxxxxxxxxxxxx>
- Date: Wed, 21 May 2003 12:34:01 -0400
I'd like to use sub queries in Access but don't know how.
I can use this to get a query of what I want for one item but what I'd
like to do is include 3 sub queries, one that gets FEES, one that gets
MEAL, one that gets TUIT with an ID from another table.
SELECT FAISMGR_RBRACMP.RBRACMP_ID, FAISMGR_RBRACMP.RBRACMP_COMP_CODE,
FAISMGR_RBRACMP.RBRACMP_AMT AS FEES
FROM tblGURMAIL_ID INNER JOIN FAISMGR_RBRACMP ON
tblGURMAIL_PIDM.GURMAIL_PIDM = FAISMGR_RBRACMP.RBRACMP_PIDM
WHERE (((FAISMGR_RBRACMP.RBRACMP_AIDY_CODE)='0304') AND
((FAISMGR_RBRACMP.RBRACMP_COMP_CODE)='FEES'))
GROUP BY FAISMGR_RBRACMP.RBRACMP_PIDM,
FAISMGR_RBRACMP.RBRACMP_COMP_CODE, FAISMGR_RBRACMP.RBRACMP_AMT;
so the query result would look like this:
ID COMP_CODE FEES MEAL TUIT
123 FEES $124 $50 $500
any help appreciated. /g
*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
MicrosoftOffice@xxxxxxxxxxxxxxxx
To send mail to the group, simply address it to mso@xxxxxxxxxxxxx
To Unsubscribe from this group, send an email to
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in
the subject line.
Or, visit the group's homepage and use the dropdown menu. This will also allow
you to change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso
To be able to use the files section for sharing files with the group, send a
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with
instructions. Once you are a member of the files group, you can go here to
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************
Other related posts: