[mso] Re: Access SQL

Glenda--

Your SQL came through full of those weird codes (=3D and =20), so I'm not
quite sure what's going on. Can you resend? Also, can you please let me know
what you mean by "one up" number of value?

--Jim

-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On Behalf
Of Glenda Wells
Sent: Thursday, July 14, 2005 6:19 AM
To: mso@xxxxxxxxxxxxx
Subject: [mso] Access SQL

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
*************************************************************

*************************************************************
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: