SQL for finding identical domains in e-mail addresses

Hi, guys can anyone help me designing a query which will guve me the names and email addresses of all people who have the identical registered domain names
Edited by: user12258774 on Nov 22, 2009 1:35 PM
Edited by: user12258774 on Nov 28, 2009 1:09 PM
Edited by: user12258774 on Nov 28, 2009 1:11 PM

Actually based on:
Hi, guys can anyone help me designing a query which will guve me the names and email addresses of all people who have the identical registered domain namesThe following will produce lists of consultants with same email domains within expertiseid (assuming list will not exceed 4000 bytes):
SELECT  expertiseid,
        substr(email,instr(email,'@',-1) + 1) domain,
        ltrim(firstname || ' ' || lastname,';'),';') name_list,
        ltrim(email,';'),';') email_list,
        ltrim(c.consultantid,';'),';') consultantid_list
  FROM  (
         SELECT  firstname, lastname, c.consultantid,row_number() over(partition by expertiseid,substr(email,instr(email,'@',-1) + 1) order by c.consultantid) rn
           FROM  consultants c, skills s
           WHERE s.consultantid = c.consultantid
  WHERE connect_by_isleaf = 1
  START WITH rn = 1
  CONNECT BY expertiseid = PRIOR expertiseid
         AND substr(email,instr(email,'@',-1) + 1) = PRIOR substr(email,instr(email,'@',-1) + 1)
         AND rn = PRIOR rn + 1
/SY.

Similar Messages

  • SOST Repeat Send does not ask for new fax number or e-mail address.

    SOST Repeat Send does not ask for new fax number or e-mail address.  It does work for one user but not for any others.  It is supposed to ask you if you want to change the fax number or e-mail address if you were the user that sent the document.  Does anyone know if there are settings that control this somewhere?  Using SAP R/3 vers. 4.7

    Dear Friends,
    Normally, we can change the receipient address, if we send. We can not change the receipient address of another user.
    Check  Note 685164 - Resending with recipient change.
    As per this note Go to SM30 and add parameter "SOST_REC_CHANGE" value "X" in view "SXPARAMS".
    Now, if you click "repeat send" icon, it will ask below two option in dialog box:
    The message is sent again. You can change the recipient before
    sending. The sent message then appears as a
    as a new send request in the list
    Send to same recipients again
    Change recipients before sending
    It is working to me ....
    Thanks & Regards,
    Rajagopal
    Chennai - INDIA.

  • How/where do i find my printer's e-mail address?

    I am trying to sync my iphone with my printer through e-print and it's asking me for the printers' e-mail address.  I have gone through all of the options that are availible on the small touch pad and still no luck.

    Hi,
    What is the model no. of the printer?
    Although I am an HP employee, I am speaking for myself and not for HP.
    --Say "Thanks" by clicking the Kudos Star in the post that helped you.
    --Please mark the post that solves your problem as "Accepted Solution"

  • SQL for finding chunk or no keyboard values

    Hi all ,
    I have table where users are allowed to enter data from excel sheet but while viewing it in application due to non key board values are like ¶,     ã, £
    the validation getting failed and values are not loaded kindly help me in finding those non key board values , as data has been already loaded i need to find the data with non key board values .
    i have written the query for one values but i need to find it for all the other values which are not part of key board
    select * from note where text like '%'|| chr(1) ||'%';

    879380 wrote:
    Hi all ,
    I have table where users are allowed to enter data from excel sheet but while viewing it in application due to non key board values are like ¶,     ã, £
    the validation getting failed and values are not loaded kindly help me in finding those non key board values , as data has been already loaded i need to find the data with non key board values .
    SELECT  REGEXP_REPLACE
              (column_name,
               '[qwertyuiopasdfghjklzxcvbnm QWERTYUIOPASDFGHJKLZXCVBNM ,./?;:''"{}1234567890=!@#$%^&*()_+\|`~-]+'
              ) non_keyborad_symbol_exists
      FROM table_name ;
    Cheers!

  • SQL for finding system tables????

    Hi all,
    I would like to know what is the sql queery to find all the system tables( when i am logged in as a user and not as a DBA)
    How to find the previleges enjoyed by a user ( when i am logged in as a user and not as a DBA)
    thanks
    Ganesh

    For your second question following are the views you might want to query:
    session_privs;
    SESSION_ROLES
    user_role_privs;
    USER_SYS_PRIVS;
    USER_COL_PRIVS
    USER_COL_PRIVS_MADE
    USER_COL_PRIVS_RECD
    USER_TAB_PRIVS
    USER_TAB_PRIVS_MADE
    USER_TAB_PRIVS_RECD
    COLUMN_PRIVILEGES
    ROLE_ROLE_PRIVS, ROLE_SYS_PRIVS, ROLE_TAB_PRIVS.

  • T-SQL for finding the unused tables which are consuming maximum disk space.

    Hi,
    Need help in writing a T-SQL that can return me the unused or least used tables in a database and are consuming a lot of disk space.
    Thanks  

    Refer
    http://gallery.technet.microsoft.com/SQL-List-All-Tables-Space-baf0bbf9
    create table #TableSize (
    Name varchar(255),
    [rows] int,
    reserved varchar(255),
    data varchar(255),
    index_size varchar(255),
    unused varchar(255))
    create table #ConvertedSizes (
    Name varchar(255),
    [rows] int,
    reservedKb int,
    dataKb int,
    reservedIndexSize int,
    reservedUnused int)
    EXEC sp_MSforeachtable @command1="insert into #TableSize
    EXEC sp_spaceused '?'"
    insert into #ConvertedSizes (Name, [rows], reservedKb, dataKb, reservedIndexSize, reservedUnused)
    select name, [rows],
    SUBSTRING(reserved, 0, LEN(reserved)-2),
    SUBSTRING(data, 0, LEN(data)-2),
    SUBSTRING(index_size, 0, LEN(index_size)-2),
    SUBSTRING(unused, 0, LEN(unused)-2)
    from #TableSize
    select * from #ConvertedSizes
    order by reservedKb desc
    drop table #TableSize
    drop table #ConvertedSizes
    --Prashanth

  • What are my e-mail addresses if I move domain from Yahoo to iWeb?

    I have been using Yahoo for years and have 2 e-mail addresses associated with my domain there. I want to move my domain to Mobile Me but don't want to lose these addresses. I can't find where this question is answered: I have domain www.gillin.us and [email protected] as one of my e-mail addresses. If I use I iWeb to move my domain, can I set up the same e-mail address and one other with @gillin.us on MobileMe? Thanks

    MobileMe is only of use for publishing personal websites and doesn't have the facility to set up web mail and email forwards.
    If your website is a business one you would be better to use a good commercial hosting service.....
    http://www.iwebforbusiness.com/Tools-Resources/Website-Hosting.html
    I don't blame you for wanting to move away from Yahoo as they really are useless.
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

  • Class for e-mail addresses

    I am looking for a class to validate e-mail addresses. I am quite sure that such a class should exist, but I could not find one.
    Ewout

    and what if someone wants to put in his address but makes a typo which results in another, but valid, address?
    You'd never catch that.
    The only way to go is to try to send a message to that address and wait for a reply confirming the validity of the address.
    That does of course require a conscious action from the owner of that address, which is both good and bad.
    It might deter some people from giving you their address, but also prevents pranksters from signing up others to your service who don't want to be signed up.
    If you're thinking of making a filter which validates email addresses harvested from usenet to improve the quality of the database of your spam generator that's of course not the way to go.

  • Sql for selected Workbook Folder Items

    Hi,
    Have come across a lot of excellent sql for finding workbook to folder items and many thanks to the various authors for those. However, what i am trying to get is the selected items within a workbook that is saved to the database. Using the code that I mentioned earlier, I see a workbook in the DB, the Business Areas and the folders. However, i see ALL the items in the folder. I am interested in seeing only those items that have been chosen.....
    I would also settle for some good doco on the eul5_xxxxxxxxx tables that are created detailing their functions, some are obvious - other less so...
    many thanks
    patrick.

    Hi Patrick
    As you may well be aware I am the author of the Oracle Discoverer 10g Handbook. In Appendix A of that book you will find many scripts for querying the EUL along with explanations for how some of the EUL is put together. If you don't have a copy you should consider getting one. Many companies get one for each of their administrators and report writers.
    The particular issue you refer to here is not covered in the book, simply because there is no easy mechanism to see the SQL used inside a workbook. Workbooks are stored in a table called EUL5_WORKBOOKS as binary objects which means you cannot query their content.
    If you have the gathering of query statistics enabled then each time a worksheet is executed a log of that is stored inside the table called EUL5_QPP_STATS. The following code will allow you to examine the folders and items that have been used in previously executed worksheets.
    SELECT
    QS.QS_DOC_OWNER USER_NAME,
    QS.QS_DOC_NAME WORKBOOK,
    QS.QS_DOC_DETAILS WORKSHEET,
    TRUNC(QS.QS_CREATED_DATE) DOC_DATE,
    (LENGTH(TO_CHAR(EUL5_GET_ITEM_NAME(QS.QS_ID)))+1)/9 ITEMS,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),1, 6)) ITEM1,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),10, 6)) ITEM2,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),19, 6)) ITEM3,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),28, 6)) ITEM4,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),37, 6)) ITEM5,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),46, 6)) ITEM6,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),55, 6)) ITEM7,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),64, 6)) ITEM8,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),73, 6)) ITEM9,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),82, 6)) ITEM10,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),91, 6)) ITEM11,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),100,6)) ITEM12,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),109,6)) ITEM13,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),118,6)) ITEM14,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),127,6)) ITEM15,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),136,6)) ITEM16,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),145,6)) ITEM17,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),154,6)) ITEM18,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),163,6)) ITEM19,
    EUL5_GET_ITEM(SUBSTR(EUL5_GET_ITEM_NAME(QS.QS_ID),172,6)) ITEM20
    FROM
    EUL5_QPP_STATS QS
    WHERE
    (LENGTH(TO_CHAR(EUL5_GET_ITEM_NAME(QS.QS_ID)))+1)/9 < 21
    As you can see, this code returns worksheets that use 20 or fewer items. You can easily alter this. Further, you may want to restrict this by searching for worksheets that have been run from a certain date using TRUNC(QS.QS_CREATED_DATE), or for a certain workbook using QS.QS_DOC_NAME, or for a certain user using QS.QS_DOC_OWNER. Sometimes you will see QS.QS_DOC_OWNER blank. This means the worksheet has been shared with someone else and was just executed without the user saving it.
    By the way, if you want to query this inside of Discoverer you will have to import the two functions that this uses: EUL5_GET_ITEM and EUL5_GET_ITEM_NAME. They are both owned by the EUL owner.
    Everyone: I will be having discussions with a publisher and a colleage of mine in early April to scope out a new Discoverer book. This book is intended to be a companion to the handbook but be more technical in its approach covering some of the more complex stuff in greater detail. We are looking at about 300 pages. If anyone has any suggestions for material that you would like to see included please send an email to me using [email protected]
    Best wishes
    Michael

  • HT4623 My Apple 4s phone is frozen up and I can't do anything on it.  I was updating my IOS to IOS7 as prompted to on the screen when I reached the part where it asked for an backup E-mail address.  I supplied this and it froze up and won't even turn off

    I received a prompt on the screen of my Iphone 4S to update my IOS to IOS7.  I clicked on "Start" and went thru and supplied all the requested info.  It asked me for an alternate back-up  E-mail address, I entered this on the screen and when I clicked on "Next" it would go no further on this setup. Now I can't do anything because it's like it totally froze up.  I can't even turn my phone off nor go forward or anything.  What can I do to turn my phone off and totally stop this update???

    Hi Genoc728,
    Thanks for visiting Apple Support Communities.
    If your iPhone is unresponsive and can't be turned off, you can reset it. See this article for the steps, and other helpful troubleshooting tips for an unresponsive device:
    http://www.apple.com/support/iphone/assistant/phone/#section_1
    Regards,
    Jeremy

  • E-mail address for release messages with medium 5

    In transaction process purchase orders, when a PO is outputted via mail and more  than one e-mail address is defined for a vendor address, the system uses the one that is marked as 'Standard'. So, the e-mail address must be selected before the message is created.
    Is there any workaround to avoid this and for example, select a different e-mail address directly from the Output screen(Create and release message)?
    Thanks in advance,
    E.Barrantes

    Hi Elena,
    Since you are using the Medium 5 which is external send, you can copy the driver program and write your owm custom logic to change the Email id and populated accordingly.
    Thanks
    Lakshman

  • I screwed up when I registered for firefox sync, and did not complete the registration and did not get the log in key. Now it says my e-mail address is in use and I cannot reregisted with my e-mail address. How can I fix this?

    I am trying to sync my iphone

    Go to the following address: https://account.services.mozilla.com/
    If you DO NOT remember your password, press the "Forgot your password?" link and it will be sent to the e-mail address that you used for registration.
    Enter your e-mail address and your password. Follow any additional prompts. '''This should remove your account and all Sync data associated with your account from the servers.'''
    Then, set up a new account.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • Customer master user exit to edit E-mail address  (XD01)

    We need to be able to change the e-mail address into smtp RFC 821 recommended format.  SAP says the e-mail field is doing this already, however when you hit save it still leaves the entire field in the same case as it was typed.  The 821 states that the domain will be upper case and the user name (before the @) will be lower case.  I know the code to do this, I just can't find a place to put it.  we are using EXIT_SAPMF02D_001 already for some edits, but the e-mail address is not available here.  We are on 4.6C and I have not found any OSS notes pertaining to saving the address in this manner.  
    We try to match on the e-mail address to see if we already have this customer from the web so we need it in this format across the board to make the match effective. 
    We are not running CRM.
    Thank you in advance for any help.

    Hello David,
    This is not possible , cursor will stop last edittable tab position.
    Just say to client that it is not possible since sap commands will not work.
    Thanks
    Seshu

  • PO printing to extenal (e-mail). Changing Vendor e-mail address.

    Guys, Sorry for being persistant with this issue. I only have data in test environment and screen debugging is not allowed in that environment at the moment so I can easly break-point when I save the message in Me22N. I can kick in the debugging session using /H but then it a hell of a long step through to try and find where the vendors e-mail address is being retrieved. Someone mentioned that it should be in the NAST itab somewhere, but where I look at that there seems to be no vendor e-mail address being shown.
    My problem is that some of our vendors have multiple e-mail addresses and so I need to somehow control which of these should be used as the default is incorrect.
    Has anyone had a similar experience and if so what area code did you change/enhance?
    In much need of help on this one.
    Jas

    Hello Mallik,
    The starndard SAP functionality will use vendor's default email ID when you trigger email for purchase order. so I will suggest you to create one distribution list (take help from network guy/ admin which will include all email addresses of the vendor and mention this email address in vendor master record.
    Hope this will help.
    Regards
    Arif Mansuri

  • Setting up default e-mail address

    Hi there,
    We currently have a set of Workflows sending several e-mails to different agents. We are using workCenters to identify the agents.
    It may occur that a WorkCenter does not have any position/user assigned to, and therefore no e-mail would be sent. We would like to setup a default e-mail address for this scenario. This e-mail address will receive the same e-mail, but only when no other agent can be found.
    The question is: What would be the most standard way to define this e-mail address? We have set it up within the method of the class we are using to retrieve the e-mail address from the workCenters, but this way users cannot modify this default e-mail address. And we need users to be able to modify this value in production.
    Is there any custom config table we can use (like T77S0) specific for WorkFlows? Any other suggestion will be appreciated
    Thank you,
    Miguel

    hi, you can use this FM to  get user details
      CALL FUNCTION 'SUSR_USER_ADDRESS_READ'
         EXPORTING
              user_name              =  (give user name here)
            READ_DB_DIRECTLY       = ' '
        IMPORTING
            USER_ADDRESS           = wa_ADDR3_VAL
             user_usr03             = wa_addr3_val
        EXCEPTIONS
             user_address_not_found = 1
             OTHERS                 = 2
    Give default user name here. Now u can change user email from table adrc6.
    reward if useful.

Maybe you are looking for