Query on Addresses

Hello Experts,
I have a query
An employee can have multiple addresses
How can I write a query to show the address of an employee i.e., address1,address2 in different columns
Here is some demo data for the format which I was looking for
employee_name    employee_address1   employee_address2
X                        No-5,Chennai              No-7,Mumbai
Y                       No-8,Assam                N0-10,Delhi
Thanks in advance

Hi,
       You can try something like this.
select address_line1,(select address_line1 from per_Addresses A where a.address_id!=b.address_id and a.person_id=b.person_id and a .date_from=b.date_from)
from per_Addresses B where b.person_id=10984 and rownum=1;
Regards,
VInod

Similar Messages

  • API method to query multicast address and port of a cluster

    I am new to Tangosol and I'm looking to write a quick Java dashboard that will display current information on our cluster, such as the clustername and the multicast address and port that is being used. Looking at the API I've found the Cluster object and I'm able to get the memeberset and the clustername.But I have not been able to find a way to query the multicast address and port being used by the cluster.
         Any help or links would be appreciated.
         Thanks,
         Len

    Hi Len,
         All this information could be retrieved via JMX. Please see this Wiki page. Detailed documentation about the semantics of all exposed attributes and method could be found in the Javadoc for the <a href ="http://tinyurl.com/r75sy">Registry interface</a>.
         Regards,
         Gene

  • Query, email addresses and Outlook

    Hi,
    I have a query that returns a list of email addresses.  I want to populate the to or cc field in Outlook programmatically?  How can I do this?  I'm trying to find a way to open the user's email client and put the email addresses from my query into the cc field ideally.
    Any way to do this?
    I know this:  <a href="mailto:[email protected]">[email protected]</a> will work, but that works because it's a hyperlink.  Is there another way to simulate a hyperlink being clicked?
    -ws

    WestSide wrote:
    I'm trying to find a way to open the user's email client and put the email addresses from my query into the cc field ideally. 
    Any way to do this?
    Basic answer is NO!
    Once you ever, as a developer of web applications that run on a server, say anything like: "open the user's {blank} client" you have overstepped the bounds of client server applications.  If we, web developers, could open what ever client tools we wanted, just imagine the havoc nefarious web developers (aka hackers) could do.
    But you can provide links, that if the client has chosen configure their system to do so, would open the client tool request.  I.E. for e-mail you could provide a "mail to" link with the proper suggestions for from, to, cc, subject etc.
    http://www.ianr.unl.edu/internet/mailto.html

  • Query on Address Resolution Feature

    Hi,
    Can I mark a location on the map using its postal address(street, city, country), instead of its latitude/longitude coordinates(which are unavailable)? Example, would it be possible to mark my home at the map based on the address?
    As, in docs, i can only see WGS 84(long/lat) coordinate system used.
    Also, would it be possible to do vice-versa, i.e, on a mouse click event on the map, Can I capture the address?

    You need to create the address geocoding data within Oracle database to enable such functionality.
    Another way is to use to the google geocoding service to get the coordinates and then project the returned point to Oracle maps.

  • Primary N7k cannot query MAC address table

    I try:
    show mac address-table
    show mac address-table <anything else>
    The command just hangs on:
    #sh mac address-table
    Legend:
            * - primary entry, G - Gateway MAC, (R) - Routed MAC
            age - seconds since last seen,+ - primary entry using vPC Peer-Link
       VLAN     MAC Address      Type      age     Secure NTFY    Ports
    ------------+-----------------------+-------------+---------+-----------+--------+------------------
    The secondary N7k does not have this issue.
    Rick

    Do you have a redundant/backup supervisor engine in the N7K?
    If so, try to failover to it - I have had instances where the MAC address for a specific host has become "stuck" in one supervisor engine, and the only solution was to failover to the second engine and restart the first.
    If you don't have a redundant engine, you may have to restart your supervisor engine with the "reload module x" command, or by simply restarting the switch. Note that if you've only got one supervisor module and you reload it, you will lose traffic while it reboots.
    Cheers

  • Logging query with information about ip client machine address

    Halo,
    One of our most important requirements is logging user query (physical to database and logical) with following informations:
    - USER
    - SQL QUERY TEXT (logical/physical)
    - DATE and TIME executing query
    - IP ADDRESS client machine (or name of client machine) (this is very important information)
    We have following configuration:
    - BI Server with Presentation Servicess on one machine (AIX)
    - Web server on second machine (BEA Weblogic 9)
    I've tested [USAGE_TRACKING] mechanism but thera are three problems with it:
    1. in S_NQ_ACCT in field NODE_ID is always written the same information: name of Web Server - WebLogic
    2. in S_NQ_ACCT are storages only logical queries.
    3. Length of field QUERY_TEXT is 1024. I'm sure that in many cases it'll be to short.
    I've tested USER_LOG too (that logs to NQQuery.log file) but there are also some problems:
    1. there is no information about ip client machine but is information about physical and logical queries and other necessary informations
    2. oracle recommends turn off this mechanism on production system.
    I've tested PRESENTATION SERVICESS log (it is configured at logconfig.xml file)
    1. In file is information about ip client machine
    2. In file are written only logical queries (this is big problem we also need physical queries)
    Do you have some idea how to resolve my problem?
    Regards

    hi, you can use the sys_context function, like this:
    select sys_context('userenv','current_user'),
         sys_context('userenv','os_user'),
         sys_context('userenv','host'),
         sys_context('userenv','ip_address'),
         sys_context('userenv','instance'),
         sys_context('userenv','sessionid'),
         sys_context('userenv','terminal')
    from dual;
    Is this what you 're looking for?

  • IOS 5 OTA: Device query for mac address

    Device query for attribute "MAC_ADDRESS_EN0" doesn't return any value on iOS 5. It use to work fine on iOS 4. Does anyone know the new attribute to query mac address on iOS 5. Appreciate any help.
    Thanks,
    Juzer.

    That attribute was deprecated in iOS 4, and has been removed in iOS 5. There is no replacement for it.

  • Querying microsoft exchange address book

    Hello guys
    How can I query the address book of microsoft exchange server using jndi?
    Thanks for any help.
    a code example would be a great help.

    If you are using Exchange 2000 or Exchange 2003, it uses the Active Directory for its address book.
    If you are using Exchange 5.5 (an older and probably no longer supported product), it provides it's own directory service that is also accessibile via LDAP. You may be able to find information on it's LDAP implementation at http://www.microsoft.com/technet/prodtechnol/exchange/55/reskit/exc00.mspx

  • Sapscript query ADDRESS PARAGRAPH AS...ENDADDRESS

    good day experst...
    i have a query regarding ADDRESS PARAGRAPH AS...ENDADDRESS...
    ADDRESS PARAGRAPH AS
    TITLE          &LFA1-ANRED&
    NAME         &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-STRAS&, &ANAME1&,
    LOCATION  &ANAME2&,
    STREET      &ANAME1&, &ANAME2&
    POBOX       &LFA1-PFACH&  CODE &LFA1-PSTL2&
    CITY            &LFA1-ORT01&
    POSTCODE &LFA1-PSTLZ&
    REGION      &LFA1-REGIO&
    ENDADDRESS
    ADDRESS PARAGRAPH AS
    COUNTRY &LFA1-LAND1&
    ENDADDRESS
    my problem with this is i cannot display LOCATION  &ANAME2&, when i print my Purchased order form...
    &ANAME2& - Street3 address of the vendor i get this in TCODE MKVZ under Street Address
    please help how can i display this...
    thank you

    hello experts...
    im sorry i fortgot to comment the line STREET... this is the original code...
    regarding &ANAME1& and &ANAME2& is not in table LFA1...
    if u can check in tcode MKVZ we can see there the vendor Street Address.
    ANAME1 =  Street 2.
    ANAME2 = Street 3.
    In PO print preview &ANAME1& is being display but &ANAME2& which is under LOCATION is not...
    this is the original code...
    ADDRESS PARAGRAPH AS
    TITLE &LFA1-ANRED&
    NAME &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-STRAS&, &ANAME1&,
    LOCATION &ANAME2&,
    POBOX &LFA1-PFACH& CODE &LFA1-PSTL2&
    CITY &LFA1-ORT01&
    POSTCODE &LFA1-PSTLZ&
    REGION &LFA1-REGIO&
    ENDADDRESS
    ADDRESS PARAGRAPH AS
    COUNTRY &LFA1-LAND1&
    ENDADDRESS
    Please help me on this...
    Thank you

  • Duplicate invoice. Query help needed

    Hi All,
    We need to build a query which addresses the following condition
    Some of the invoices were created against the wrong vendors and that money needs to be recovered. Some of them are already recovered while some are not
    * list out all the duplicate invoices between a particular date range(invoice date) with same invoice num ,same invoice amount and same invoice date.
    * If there are any debit invoice created(invoice number postfixed with CR or ADJ),those particualr invoices should not be included.
    The table below shows two type of invoice, the one with bold(invoice num=193666) has debit invoice created and all the three records related to it should not be a part of output data
    while the record(invoice num=00017321) should be a part of output data.
    INVOICE_NUM     INVOICE_AMOUNT     VENDOR_NUMBER     INVOICE_DATE     ORG_ID
    00017321     233.35     A321     1-Dec-11     95
    00017321     233.35     K452     1-Dec-11     95
    *193666     101.67     EM9B     18-May-12     91*
    *193666     101.67     1B02     18-May-12     91*
    *193666CR     -101.67     1B02     18-May-12     91*
    Below is the query which i wrote to identify the duplicate invoice
    select distinct
    a1.invoice_amount,
    a1.invoice_num,
    (select segment1 from apps.po_vendors where vendor_id=a1.vendor_id) vendor_name,
    a1.invoice_date,
    A1.ORG_ID
    from apps.ap_invoices_all a1,
    apps.ap_invoices_all a2
    where 1=1
    and a1.org_id in (91,95)
    and a1.org_id in (91,95)
    and a1.invoice_date between (to_DATE('01-SEP-2011','DD-MON-YYYY')) AND (to_DATE('01-JUN-2012','DD-MON-YYYY'))
    and a2.invoice_date between (to_DATE('01-SEP-2011','DD-MON-YYYY')) AND (to_DATE('01-JUN-2012','DD-MON-YYYY'))
    and a2.invoice_num=a1.invoice_num
    and a1.invoice_amount=a2.invoice_amount
    and a1.invoice_id<>a2.invoice_id
    and a1.invoice_amount<>0
    order by a1.invoice_amount,a1.invoice_num
    Can anybody share their thoughts on how to modify the query above which checks if there are any debit invoice created and not include in the final output.
    Thanks in advance

    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • Need Help to query Lync Database for User Information

    Need Help to Query the lync database to retrieve below user information.
    1. SIP Address of the registered user
            2. Phone Number configured to the particular account.
            3. IP Address
           4. Last Logged in time.
    I am trying to pull the above information from rtc database for all the registered users. Please let me know if this is possible and it would be great if you can throw some light on what tables to look for the data. Thank You.

    Hi,
    For SIP address and Phone number you can check RTC database.
    IP Address:
    You can refer to the link below to query IP address: 
    http://h30499.www3.hp.com/t5/Business-Service-Management-BAC/Monitoring-Lync-with-the-User-Registrations-Viewer-Free-NMC-tool/ba-p/5961497#.UtOU43mIrwo
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
    Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
    Last Logged in time:
    You can refer to the link below:
    http://blogs.technet.com/b/dodeitte/archive/2011/05/11/how-to-get-the-last-time-a-user-registered-with-a-front-end.aspx
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Printing Only address in other language

    Hi all,
    My requirement is i want to print address in bangladesh language in rtf template is it possible to do soo.
    please help..
    thanks...

    create way for translate address in english language to address in bangla language
    for example
    you can create table for relation between address in english language (EL) to address in bangla language (BL)
    table xx_translt_addrees where
    |col1 | col2 |col3 |
    |by EL| by BL|some code|
    or create lookup for this
    or see to multi-language in oebs
    next
    in query select address (EL) and address (BL)
    put to tag in xml (for example)
    <address_el>addreesssss by EL<address_el>
    <address_bl>addreesssss by BL<address_bl>
    next
    in rtf template
    put field or <?address_el?> for address in EL
    put field or <?address_bl?> for address in BL

  • What's wrong with this ejb-query?

    Hi people,
    may be i worked too much, may be i've just missed something, but guys, can enyone tell me what the hell is wrong with this GOD DAMNED query?
    <ejb-ql>Select Object(adt) From AddrDataTable AS adt, IN (adt.addresseeQualities) AS aq WHERE adt.season.id = ?1 And aq.aQTemplate.id=?2</ejb-ql>
    That JBoss throws following exception:
    org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 'Select Object(adt) From AddrDataTable AS adt, IN (adt.addresseeQualities) AS aq WHERE adt.season.id = ?1 And aq.aQTemplate.id=?2'; - nested throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "1" at line 1, column 103.
    Was expecting one of:
    "ABS" ...
    "LENGTH" ...
    "LOCATE" ...
    "SQRT" ...
    "+" ...
    <INTEGER_LITERAL> ...
    <FLOATING_POINT_LITERAL> ...
    <NUMERIC_VALUED_PARAMETER> ...
    <NUMERIC_VALUED_PATH> ...
    at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.<init>(JDBCEJBQLQuery.java:50)
    The worst thing is that when i remove WHERE clause JBoss keeps silence like a fish - it works fine!
    So, any ideas about this?
    Thank you

    Are you sure the ?1 and ?2 parameters exist in the method for which the query is addressed.
    In the statement adt.season.id I guess season is a CMR field and then season has a CMP field called id
    and the same for aq.aQTemplate.id, aQTemplate being the CMR field and the is being a CMP field in the CMR.
    and in adt.addresseeQualities is a CMR field?
    Looks like a complex query
    SELECT OBJECT(adt) from BEAN AS adt,
    IN(adt.CMR_FIELD) AS aq
    WHERE
    adt.ANOTHER_CMR.ANOTHER_AMR_CMP_FIELD=?1
    AND
    aq.2_CMR_FIELD.2_CMP_FIELD =?2

  • Gap between two characters in SAP Script Address EndAddress.

    Hi Abapers,
    I have one query regarding Address - EndAddress in SAPScript.
    I am putting the code :
    /: ADDRESS TYPE '1' PARAGRAPH ZI PRIORITY 'APL43' LINES 6
    /:ADDRESSNUMBER &ZPOLGORT-ADRNR&
    /:ENDADDRESS
    and  I am getting the output in this form
    <b><i>ABC Soft c/o JSI Hong Kon g
    c/o RS Logistics (Shenzhen) Limited
    6/F., DZ Zhong Tian Yuan Logistics Ctr.
    126/Xia Road, Futian Free Zone,
    Shenzhen
    China</i></b>
    But the problem is there is a gap between character "n" and 'g" in first line in word Kong.
    Can anybody suggest me how to solve this issue. Or is there any other issues to sort it out this problem.

    Hi,
    Its not the problem with Address / End Address.
    It could be probably maintained that way.
    Please check the entry in the table where it is maintained.
    reagrds,

  • How to disable "about:newtab" text in address bar of each new tab Firefox 13

    Many of us have habit of opening a new tab & start writing web address/search query in address bar
    with Firefox 13 if I open new tab and just try to search firefox
    following appears in address bar
    about:newtabfirefox
    (about:newtab is already written in new tab addressbar)

    Resolved
    Thanks
    Although "about:blank" is present in address bar but it is selected, if I type anything it get over-righted - :)
    please make "about:newtab" selected as "about:blank" in newer versions of Firefox

Maybe you are looking for

  • How can I be sure my hard drive is "dead?"

    Last week my internal drive on my G5 stopped functioning. It is the OEM drive. it was running fine and then the system seemed to freeze up. Upon rebooting, the drive was no longer recognized through Disk Utility. Fortunately, my data was backed up on

  • Can't delete, cut, or copy a song onto my iPhone 4S from charging it onto iTunes

    When I have a song on my phone and I want 2 delete it on iTunes I can't delete, cut, or copy that song and also the "get info" button has the info in grey. When I delete a song on my phone, the song on iTunes will have an "!" Sign beside it after cli

  • How to change the banner at top of homepage

    There is a decorative banner at the top of the homepage and every webpage. How do I get rid of it?

  • LabVIEW crashes when calling a dll

    I am trying to call a dll through my LabVIEW program. The dll implements a routine to access an ftp server. When the server is found, everything works as expected. However, if there is a delay in finding the server, LabVIEW throws an error � �An exce

  • What would you prefer - SAP ERP or S/4 HANA?

    Hello, After the impressive keynote speech of the recent TechEd, it made wonder about how the customers of SAP would leverage the new S/4 HANA, if at all and it instigated a thought process. Possibilities: A. Keep our good old SAP ERP - Through the y