Sort by Email Address

Hello,
I have an application that I want to sort by the email
address URL ( everything right of the @ ) , but still want to
display the full email address. There was a question similar to
this but it was not answered in a format that I could use. I am
using an Access Database.
My query is
<cfquery name="getEmails"
dataSource="#application.db#">
SELECT email_ID, email_address
FROM email_out
ORDER by email_address
</cfquery>
I have tried the ListLast(email_address,"@") in the SQL
statement but can not get it to work.
I have tried the ListLast(email_address,"@") in the query
output which will print out the right part of the email address,
but that is not quite what I want.
I want to have the query output all of the information but
sort it by the text that is right of the @
i.e. [email protected]
[email protected]
[email protected]
So basically if this did not throw an error this is what I
would need -
<cfquery name="getEmails"
dataSource="#application.db#">
SELECT email_ID, email_address
FROM email_out
ORDER by ListLast(email_address,"@")
</cfquery>
But this doesn't work I also tried the SELECT email_ID,
ListLast(email_address,"@") as daEmail
but that didn't work either
Thanks in advance.

quote:
Originally posted by:
jimWPX
That did it! Thank you so much.
Just out of curiosity ( And I now it's going to come up ) How
would one accomplish this MYSQL?
In later versions of MySql it should be:
ORDER BY
Substring (email_address, 1 + InStr (email_address, '@') )
, email_address

Similar Messages

  • How can I view/sort by email address not be the sender's name

    These days people often send emails from different devices and sometimes their display name is different on each. When I receive an email from them it may have their display name, or if this has not been set on say their phone I just see their email address. But when I try to search or sort it does not look at the underlying email address just the display name and so it appears like some of the emails are missing. Is there any way to view messages by the underlying email address and not their display name or what has been saved to my address book.
    Thank you - Marie

    This add-on lets you display the senders' or recipients' email addresses as a column in the Threads pane (message list):
    https://addons.mozilla.org/en-US/thunderbird/addon/show-address-only/
    [http://chrisramsden.vfast.co.uk/3_How_to_install_Add-ons_in_Thunderbird.html How to install]
    Right-click a column button to select which columns are displayed, and click a column button to sort the list by that column.

  • I'm trying an email address i know is mine yet still getting this message:"That Apple ID is already in use.If this Apple ID was created by you, simply sign in with your Apple ID and password.If it does not belong to you, try again using a different name."

    I keep getting this message:  "That Apple ID is already in use.If this Apple ID was created by you, simply sign in with your Apple ID and password.If it does not belong to you, try again using a different name."
    I'm trying to create a new id and e-mail using an e-mail address that is mine and has been mine for over a year - any ideas why this could be happening?

    Trying where? What sort of email address? The following answer is based on a guess as to what you are talking about.
    If you already have an @me.com address, perhaps as a result of having had a MobileMe account, and you are now setting up an iCloud account with an Apple ID you will find you will be asked to create a new @me.com address, and that you can't add your existing one because it is already an Apple ID.
    You can do one of two things:
    1. Sign out at System Preferences; sign in with your existing @me.com address and enable Mail.
    2. Stay signed in with the present ID and add your @me.com address in System Preferences>Mail, Contacts & Calendars.
    If you have further questions, or if your situation is different from what I've assumed, do please post back, but in a suitable forum - this one is specifically about using these Forums.

  • Put names or email addresses in alpha order in address book

    Is there a way to put names or email addresses in alpha order in the address book?

    The names are in alphabetical order - you can select in the preferences between ordering on first name or last name. You can't have them sorted by email address.
    AK

  • Exchange server - Synergy contact grouping overzealous - "[No email address found]" contact grouping problem

    I'm pretty sure I just discovered an issue that needs addressing.
    To start, I have 1000+ contacts on my employer's MS Exchange server (with an Outlook client).  I'm fairly proud of them, because of all the work I've put into them in terms of removing dupes, eliminating empties, etc. etc. etc.  It's high maintanence.
    Ever since I got my Pre, it's been grouping a whole slew of contacts (573 to be exact) under some random master contact.  For a while, everything was under the IRS, and whenever someone dialed my phone, "IRS" popped up.  Yikes!  For a while, I was deleteing the master contact & remaking it, but the 573 would just group under some other seemingly random contact.  These contacts are completely unrelated (at least to a human, they are).  Currently, the master contact card is a guy named "Richard".
    Well, I'm pretty sure I found out that what these contacts have in common: they have no email address.  Outlook (once again) screws everything up by politely populating the empty email address field with "[No email address found]" (quotes not included).  The Pre identifies these contacts as having the same email address, and therefore, eligible to be grouped by Synergy.
    2 questions:
    Microsoft, why do you do stupid crap like this?!  You absolutely ruin things with verbosity.  A missing piece of data tells the user as much as a present piece of data.  You don't have to actually *say* "This piece of data is not present".  It's obvious.
    and
    Palm, why didn't you know that Microsoft does stupid crap like this?!  Don't you know the success of your product, maybe your company, is on the line?
    I can't be the only one with this problem.  Reply to this thread if this rings any bells for anyone else.
    Post relates to: Pre p100eww (Sprint)

    I ended up using the column view trick.  Column view -> sort by email address -> click & delete every "[No email address found]" entry.  In my experience, I've found that just putting in the digital elbow grease takes less time than using things like scripting.
    I'm just sad that these things don't get designed well to begin with.  I've got other very basic gripes about the Pre.  I'm told it works much better with a Google account.  I'd love to jump on that bandwagon, but work is using Exchange.  You simply must must must work with Exchange sever since so many big corporations have drunk Bill Gates' Koolaid.  But to provide buggy Exchange compatibility is risky, even moreso when your company's future depends on the success of your current device.
    Palm is clearly getting into bed with Google at the expense of Microsoft.  I suppose that's the way I'd go too, but for the time, Palm's buggy Exchange support sets up RIM to keep running the table with Blackberrys.  If they had just done Exchange right, they would have double the sales they have now, and Apple and RIM would really have something to worry about.

  • I need to sort and organize all my email addresses in apple mail? - where are they and how can I organize and copy them ? urgent help needed please

    really need urgent help - where do I find the entire list of all my email addresses? and how do I sort and organize them into folders ?

    really need urgent help - where do I find the entire list of all my email addresses? and how do I sort and organize them into folders ?

  • Address Book - email address sorting

    My own entry in my address book has 11 email addresses (I added most of them after they were automatically added to separate entries). The one that appears on the top is the one I want to appear on the bottom. How do I tell Address Book to keep them in a particular order?

    I've never used the TrueSwitch software, but I've never had to. You can export your contacts from Outlook, Outlook Express, etc. into a .csv file and import them directly to your verizon.net account. If you log into your verizon.net account and go to your contacts list there's an Import Contacts button.
    If you need any assistance with that process let me know, I can try to provide a step-by-step for your client.
    As for sorting by name, this functionality does not appear to be available in the "Basic Interface" of Verizon's webmail. Switching to the "Rich Interface" causes the name to be displayed in a Last, First format and sorting by name is an option.
    Hope this helps!
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

  • How do I sort out 'Apple ID disabled for security reasons' after I had my old Email address and password erased but still showing ?? now I can't access my apple store Apps updates with new email address and password??

    How do I sort out 'Apple ID disabled for security reasons' after I had my old Email address and password erased but still showing ?? now I can't access my apple store Apps updates with new email address and password??

    You might try contacting App Store Support: http://www.apple.com/support/mac/app-store/

  • Email requests purportedly from Apple asking for account verification details, This includes a request for everything from email address to bank account sort code. This can't be for real! Is it?

    Email requests purportedly from Apple asking for account verification details.
    This includes a request for everything from email address to bank account sort code.
    This can't be for real! Is it?

    No, it's a scam.

  • Why does my Verizon email address book use 'Nickname' as key sorting field ?

    I'm a new Verizon email user and have just created my Verizon email address book from my Microsoft Office Outlook  (not Outlook Express) Contacts file, using the TrueAssistant application that Verizon provides for folks moving to Verizon from another email ISP. Earlier, a  Verizon Tech Support chat-line staffer assured me  it was NOT possible to move my email contacts from Office to the Verizon address book; I guess he wasn't familiar with TrueAssistant.   :-( 
    The conversion seemed to go over fine, but when I then looked at my newly-created Verizon address book,  in every case  the last name of each contact was stored in the 'Nickname' field , and the first name was completely missing.  When I manually replaced some of the first names in their proper fields and removed the nicknames, the application didn't know what to do with the contact.
    Has anyone else had this problem in using TrueAssistant to move contacts from Outlook into Verzon's email address book?
     Is it  even possible to see both the first and last names in the display of the Contacts file (or any sub-Group)? And if so, how do I do it? I don't see any way to specify how I want to display t address book entries. Would appreciate some help. Thanks and Happy New Year!
    Shaynemdank
    Solved!
    Go to Solution.

    I've never used the TrueSwitch software, but I've never had to. You can export your contacts from Outlook, Outlook Express, etc. into a .csv file and import them directly to your verizon.net account. If you log into your verizon.net account and go to your contacts list there's an Import Contacts button.
    If you need any assistance with that process let me know, I can try to provide a step-by-step for your client.
    As for sorting by name, this functionality does not appear to be available in the "Basic Interface" of Verizon's webmail. Switching to the "Rich Interface" causes the name to be displayed in a Last, First format and sorting by name is an option.
    Hope this helps!
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

  • I have changed my apple I'd email address so when I log in it is correct. But when my friend iMessage me it only works to my old email not my current one. How can I sort this out???

    I changed my apple I'd email address and when I log in I use that email and the right password both work. But when my friend iMessage me it only works if they send it to my old email address not my new current one. How can ai change my iCloud and iMessage address?? To match my current one?

    So have you changed the accounts in the iCloud and Messages Settings?
    Settings > iCloud > Account
    Settings > Messages > Send & Receive

  • My email address got into hundreds of solicitors.  I now have 703 emails from all sorts of businesses.  Apple will not help since I am not signed up with their $79 support I cannot afford more bills.  Can someone tell me how to stop this, not unsubscribe

    How do I delete and stop all of the unwanted 702 emails that are coming into my acct on my iPad. Sure there are more coming now.
    Frontier will not help unless I agree to a costly protection.  Apple says I have to have their extra contract or pay for a one-time fee.
    I cannot use my acct on my iPad this way.

    Not something I would suspect Apple could help with. The most obvious solution is to,change your email address. You might also check with your email provider and see if there an any anti-spam settings on the server that would help.

  • How do I sort only on messages in a folder "FROM" the person + an email address

    The most basic search a person needs is to get a listing of the emails FROM the named person typed in the block and then selecting one of the person's email addresses. T-Bird does not seem to have this function as I cannot find it in the help library. Does it have it? If not when will it be included? We do not need all the messages mentioning the person's name from everywhere. We only want to list the emails FROM that person in the presently selected folder. Every other email system I have used over the past 25 years has this feature and it is relly, really frustrating that T-Bird does not seem to have this. Probably best solved by adding FROM to the selections for the quick filter.

    Use the quick filter bar.
    https://support.mozilla.org/en-US/kb/quick-filter-toolbar

  • E72 - how to remove email addresses in the email c...

    The E72's email client seems to gather its own list of email addresses. This is over and above what is in your phone address book.
    Is there any way to clear out these? I have some which the email is no longer valid and its annoying (the company had a domain name change so first.last@ is the same but the @xxx.com has changed to @yyy.com and it sorts on alphabetical order of first.last and you have to be VERY careful not to accidentally send to the wrong invalid email address
    thanks

    In addition to using the Bcc header, you can create a Group in AddressBook, and put the name of the Group in the To header. Then if you have selected in Mail Preferences/Composing to not check the box beside When sending to a group, show all memberaddresses, then the To address will ready Undisclosed-recipients. Using the Bcc header requires one address in the To header that everyone will see, but that can be your own email address.
    Ernie
    Message was edited by: Ernie Stamper

  • I found an old Apple id on a computer I use infreqently with an old Ipod.  I have the the Applie ID, but I do not have the password.  In addition,my email account has changed since I created this Applie ID. How can I get reset info to new email address?

    I found an old Applie ID on a computer I use infreqently with an old IPod.  I do not have the password for this AppleID.  When I use the procedure to reset the password, I cannot receive the email as my email address has changed from the original used with the Apple ID.  How can I get the reset information sent to my current email addres so I can establish a new passwod for this Applie ID? 

    FR Tecmobility is wrong, sure he means well but what he suggests will not work - signing out of iTunes Store and back in will have no effect on iCloud. Try the steps at iOS 7: If you're asked for the password to your previous Apple ID when signing out of iCloud
    You may need to contact apple tech support if none of the password change methods work for you. Ask for Account Security. They will need to verify identity, to ensure you are who you claim to be. If that goes well, they can send a password rest e-mail to any e-mail you desigate, so make sure it is one you can access.  Then reset the password. Then you can delete the iCloud account (needs the password to turn off find My Phone/Activation lock)
    keep data on phone, then sign in with your desired apple ID. Good luck. hope you get this sorted out.

Maybe you are looking for

  • Length of amount field in New GL at the document entry

    Hi, 1) At present I am working on ECC 6, EhP 4 with New GL Activated & Old GL "Not deactivated" (i.e deactivate update of Classic General Ledger GLT0 not done). 2) The total table (FAGLFLEXT) & Line item table (FAGLFLEXA) field in new GL has amount f

  • Image display problem in safari and app store

    i have problem as pictures appears pixelated in safari and app store i tried to adjust display settings but there is no difference file:///Users/macbookair/Desktop/Screen%20Shot%202013-12-30%20at%207.08.03%20PM. png

  • New to Dreamweaver Old hand at Frontpage

    This is what the help section says: Edit an existing remote website in Dreamweaver You can use Dreamweaver to copy an existing remote site (or any branch of a remote site) to your local disk and edit it there, even if you didn't use Dreamweaver to cr

  • Migrating SAP Scripts to Adobe Forms

    Hi All,    We are going for a new Rollout in US based on our European implementation in 2001 which was on    4.6b. Eventually this system was upgrated to ECC 6.0 recently however all the outputs are still using    SAP Scripts.    For the new Rollout

  • VoIP Upgrade to 10.5

    We are in the process of planning our upgrade from CallManager 8.5 to 10.5 and we have some questions.  We will also be upgrading Unity, Presence, Attendant Console, Contact Center, and Emergency Responder.  The question concerns Emergency Responder.