[mso] Access SQL
- From: "Glenda Wells" <gwells@xxxxxxxxxxx>
- To: <mso@xxxxxxxxxxxxx>
- Date: Thu, 14 Jul 2005 09:19:17 -0400
What's wrong w/this SQL?
I'm trying to get the most recent email address according to the one up
value of the CID. If I have a person with more than one email, I'm
getting them all instead of just the one I want.
UID is Unique ID
Commo is the name of the table
Ctype is the type of communication record (email, telephone, pager)
CID is the one up number for communication record unique ID
SELECT UID, Number
FROM Commo
WHERE CType=3D3 AND (SELECT
max(b.CID) FROM Commo b WHERE b.CType=3D 3 AND b.UID =3D Commo.UID
AND b.CID =3DCommo.CID);=20
*************************************************************
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
*************************************************************
- Follow-Ups:
- [mso] Re: Access SQL
- From: Jim Pettit
Other related posts:
- » [mso] Access SQL
- » [mso] Re: Access SQL
- [mso] Re: Access SQL
- From: Jim Pettit