[mso] SQL

How's this Jim?
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 (first comm
01, second 02, third 02)

SELECT UID, Number
FROM Commo
WHERE Ctype=3 AND (SELECT
max(b.CID) FROM Commo b WHERE b.CType=3 AND b.UID=Commo.UID AND
b.CID=Commo.CID);





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