Immediate help with regards to grouping and decoding

Hi all
I have got a problem recently where I was asked whether this can be done using a single SQL statement.
The table data is from a flat file like this.
SITE TOOL PROD TOOLPROD
ABC DEN_01 15 DEN_01
ABC DEN_01 15 DEN_01|01
ABC DEN_01 15 DEN_01|02
ABC DEN_01 15 DEN_01|03
DEF DE_03 17 DE_03
DEF DE_03 17 DE_03|07
DEF DE_03 17 DE_03|08
and the sumarized result set should look like this from above info i.e grouped by site,tool,prod columns and the last columns toolprod concatenated as shown below. There is lot of data like this and hardcoding cannot be done since there are millions of rows like this.
ABC DEN_01 15 DEN_01|DEN_01|01|DEN_01|02|DEN_01|03
DEF DE_03 17 DE_03|DE_03|07|DE_03|08
Appreciate your help
Thanx in advance
Kris

Sys_connect_by_path is a 9i feature that provides the path from the root to the node in a hierarchical query. For an 8i workaround you can use the folloing hiearchy package by Solomon Yakobson. I know the package works in 8i, because that is what it was designed for and I used it in 8i, but I do not know if it will work in conjunction with the rest of the code, as I do not have 8i to test with anymore, and there were some restrictions as to what you could do with hierarchical queries in 8i. You may have to add some additional nesting of inline views or some such thing.
scott@ORA92> -- hierarchy package with branch function by Solomon Yacobson
scott@ORA92> CREATE OR REPLACE
  2   PACKAGE Hierarchy
  3    IS
  4            TYPE BranchTableType IS TABLE OF VARCHAR2(4000)
  5              INDEX BY BINARY_INTEGER;
  6            BranchTable BranchTableType;
  7            FUNCTION Branch(vLevel          IN NUMBER,
  8                      vValue          IN VARCHAR2,
  9                      vDelimiter      IN VARCHAR2 DEFAULT CHR(0))
10                      RETURN VARCHAR2;
11            PRAGMA RESTRICT_REFERENCES(Branch,WNDS);
12  END Hierarchy;
13  /
Package created.
scott@ORA92> CREATE OR REPLACE
  2   PACKAGE BODY Hierarchy
  3    IS
  4            ReturnValue VARCHAR2(4000);
  5    FUNCTION Branch(vLevel          IN NUMBER,
  6                   vValue          IN VARCHAR2,
  7                   vDelimiter    IN VARCHAR2 DEFAULT CHR(0))
  8                   RETURN VARCHAR2
  9       IS
10       BEGIN
11            BranchTable(vLevel) := vValue;
12            ReturnValue := vValue;
13            FOR I IN REVERSE 1..vLevel - 1 LOOP
14              ReturnValue := BranchTable(I)|| vDelimiter || ReturnValue;
15            END LOOP;
16            RETURN ReturnValue;
17    END Branch;
18  END Hierarchy;
19  /
Package body created.
scott@ORA92> select site, tool, prod,
  2           replace (max (hierarchy.branch (level, toolprod)), ',', '|')
  3             as toolprods
  4  from   (select site, tool, prod, toolprod,
  5                row_number () over
  6                  (partition by site, tool, prod
  7                   order by toolprod) as curr,
  8                row_number () over
  9                  (partition by site, tool, prod
10                   order by toolprod) - 1 as prev
11            from   your_table)
12  group  by site, tool, prod
13  start  with curr = 1
14  connect by prior curr = prev
15            and prior site = site
16            and prior tool = tool
17            and prior prod = prod
18  /
SITE TOOL         PROD TOOLPRODS
ABC  DEN_01         15 DEN_01 DEN_01|01 DEN_01|02 DEN_01|03
DEF  DE_03          17 DEN_03 DEN_03|07 DEN_03|08The second solution that I provided, using Tom Kyte's stragg user-defined aggregate function also requires 9i. The third solution with a function specific to the situation should work in 8i though. The following is an addiitional generic option for 8i.
scott@ORA92> CREATE OR REPLACE FUNCTION concatenate
  2    (p_key_name      IN VARCHAR2,
  3       p_key_value      IN VARCHAR2,
  4       p_col_to_concat  IN VARCHAR2,
  5       p_table_name      IN VARCHAR2,
  6       p_separator      IN VARCHAR2 DEFAULT '|')
  7    RETURN              VARCHAR2
  8  AS
  9    TYPE weak_ref_cur IS REF CURSOR;
10    v_string          VARCHAR2 (4000);
11    v_separator         VARCHAR2 (      3) := NULL;
12    v_value              VARCHAR2 (4000);
13    v_cur              weak_ref_cur;
14  BEGIN
15    OPEN v_cur FOR
16          'SELECT ' || p_col_to_concat
17    || ' FROM '   || p_table_name
18    || ' WHERE '  || p_key_name || ' = :b_key_name'
19    || ' ORDER BY :b_col_to_concat'
20    USING p_key_value, p_col_to_concat;
21    LOOP
22        FETCH v_cur INTO v_value;
23        EXIT WHEN v_cur%NOTFOUND;
24          v_string := v_string || v_separator || v_value;
25          v_separator := p_separator;
26    END LOOP;
27    CLOSE v_cur;
28    RETURN v_string;
29  END concatenate;
30  /
Function created.
scott@ORA92> select site, tool, prod,
  2           concatenate ('site || tool || prod',
  3                  site || tool || prod,
  4                  'toolprod', 'your_table') toolprods
  5  from  your_table
  6  group by site, tool, prod
  7  /
SITE TOOL         PROD TOOLPRODS
ABC  DEN_01         15 DEN_01|DEN_01|01|DEN_01|02|DEN_01|03
DEF  DE_03          17 DEN_03|DEN_03|07|DEN_03|08
scott@ORA92>

Similar Messages

  • Help with regard to flex and flash

    Hi
    I am a newbie to GUI developement... I would like to create a GUI for my application which is in C for an android platform. I did get a few suggestions which says Adobe Flex is suitable for doing the same. But I am still not clear as to what would be the best tool I can pick on for doing the same. Will flash serve the purpose as well ? I need  a GUI with good animation and look and feel.
    Thank you !
    Reshma

    You can have an inner class. If you have problems using more than one class you are severly limiting yourself.
    Are you using JDK 1.4.2 or 1.5
    Try this code, you only need one java file.
    import java.util.ArrayList;
    import java.util.List;
    public class SimpleExample {
        public static void main(String[] args) {
            List list = new ArrayList(100);
            for (int n = 0; n < 100; n++) {
                list.add(new Data(n, n * n, n * n * n));
            // add 1 to j and k.
            for (int n = 0; n < 100; n++) {
                Data data = (Data) list.get(n);
                data.j++;
                data.k++;
            // print out all values.
            for (int n = 0; n < 100; n++) {
                System.out.println(n + ": " + list.get(n));
        public static class Data {
            int i, j, k;
            public Data(int i, int j, int k) {
                this.i = i;
                this.j = j;
                this.k = k;
            public Data(String text) {
                String[] nums = text.split(",");
                i = Integer.parseInt(nums[0]);
                j = Integer.parseInt(nums[1]);
                k = Integer.parseInt(nums[2]);
            public String toString() {
                return i + "," + j + "," + k;
    }

  • Help with opening Adobe Reader and downloading updates

    I can not open Adobe .pdf files any longer (this started yesterday, prior to that I could open adobe files).
    When I double click a .pdf file I get this notice on my screen: Windows cannot access the specified device path or file. You may not have the appropriate permission to access file.
    So I went to the Adobe download site to download a new copy of Adobe.  When I start the download I get this on the screen:  The instruction at "0x0e3a0068" referenced memory at "0x0e3a0068."  The memory could not be written.  Then two options are listed: click OK to terminate or cancel to debug.  So I click on cancel and I get this on my screen: Internet Explorer has closed this webpage to help protect your computer.   A malfunctioning or malicious addon has caused I.E. to close this webpage.
    I don't have AVG running, I do have avast but I've disabled it.  I ran Registry Mechanic and an I.E. erasure program but nothing helps.
    I have gone into I.E. and reduced the security level to its lowest state but no joy.
    So, any ideas or suggestions on what's the problem and how to overcome it would be appreciated.  Thanks, in advance, for your reply.  Jim R.

    Hi Mike..tried that as well but no joy.  A friend of mine was looking at it all and noticed that it was an I.E. thing as far as not letting me redownload the reader so I went to Mozilla Firefox and I could download a new version but....whenever I attempt to open a .pdf file I get that message, "Windows can not open the specified device, path or file. You man not have the appropriate permissions to access the item." 
    Damn...this is irritating as I need to get to some of thos files as I need them for a Journal I'm working on as editor-in-chief. 
    It all worked just fine last Saturday but starting Monday when I was on my flight out to D.C.  no joy. 
    Sigh...Jim R.
    Jim R.
    Date: Tue, 1 Dec 2009 14:50:27 -0700
    From: [email protected]
    To: [email protected]
    Subject: Help with opening Adobe Reader and downloading updates
    Under the help menu, there is an option to repair the installation of reader. Did you try that?
    >

  • Need help with my iPhone 5 and my Macbook Pro.

    Need help with my iPhone 5 and my Macbook Pro.  I was purchased some music on itunes at my mac. Some reason I deleted those music from both on Mac and iPhone 5.  Today, I went to my iPhone iTunes store inside of iCloud to redownload my puchased. But those song won't able to sync back to my iTunes library on my Mac.  Can anyone help me with that ??....
    iPhone 5, iOS 6.0.1

    You've posted to the iTunes Match forum, which your question does not appear to be related to. You'll get better support responses by posting to either the iTunes for Mac or iTunes for Windows forum. Which ever is more appropriate for your situation.

  • Regarding case statement and decode function

    Hi Experts,
    I have question.....regarding case statement and decode statement....
    Can you please explain me that which one will be efficient,to place in insert statement...
    insert statement(
    (case when ........then
                         case when ....then
                         else
                         end)
      else
    end)
    or
    insert statement(
    case when.....then
    decode(....)
    else
    end)
    Can you people explain me which one is more efficient method?
    Thanks in advance.......

    The are major differences to talk about in case of CASE vs DECODE, but performance wise both are pretty much the same.
    Have a look at Tom's thread
    Ask Tom &amp;quot;better performance - case or decode&amp;quot;
    I would suggest to use CASE whenever possible. Don't worry about the performance part.

  • Barbara Brundage, can you help with PS Elements 11 and Epson R2000 printer issue?

    Seeking help with PS Elements 11 which does not work with Epson r2000 printer.  Epson tech support could not fix, said it is PS e11 problem.  Receive prompt on PS e11 screen when I try to print stating "not compatible or settings are not correct.  Have set PS to manage color and printer manages color to off.  Would appreciate any suggestions.  Thank you.

    Hi,
    Sincerely appreciate your help.  Running Windows 7 on a  Dell XPS420.  System has been very stable for years.  Before purchasing the Epson r2000, I owned an r1800 which was an excellent printer but after seven years started to exhibit paper feed problems.  The r1800 worked with all applications and I was well satisfied with the saturation, contrast, etc. printing mostly 8x10 and 11x17 prints. 
    Thank you for the information about the # of installs for PS E11, will try uninstall/reinstall this morning.
    Will let you know how things go.
    Richard
    Date: Thu, 12 Sep 2013 19:47:38 -0700
    From: [email protected]
    To: [email protected]
    Subject: Barbara Brundage, can you help with PS Elements 11 and Epson R2000 printer issue?
        Re: Barbara Brundage, can you help with PS Elements 11 and Epson R2000 printer issue?
        created by Barbara B. in Photoshop Elements - View the full discussion
    What operating system are you using?
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5678022#5678022
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5678022#5678022
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5678022#5678022. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop Elements by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • New help with my mac air and airport extreme time capsule dont know how to save to time capsule and use as a external hd

    new help with my mac air and airport extreme time capsule dont know how to save to time capsule and use as a external hd would like 2 store my home videos and pictures on the time machine (ONLY) as the MAC AIR has storage space limited space please help. THANK YOU.

    See the info here about sharing or using the TC for data.
    Q3 http://pondini.org/TM/Time_Capsule.html
    It is extremely important you realise.. the Time Capsule was never designed for this.
    It is a backup target for Time Machine.. that is the software on the computer that does backups.. it has no direct connection to the Time Capsule.
    It has no ability to back itself up.. unlike all other NAS in the market. It is therefore likely one day you will lose all your files unless you seriously work out how to backup.
    The TC is slow to spin up the hard disk and fast to spin down. iTunes and iPhoto will continually lose connection to their respective libraries.
    iPhoto in particular is easy to corrupt when you move photos over wireless into the library.. once corrupted all is corrupt. A single photo will ruin it all.. so backup is utterly essential.
    Time Machine cannot do backups of network drives. ie the TC. You will need a different backup software like CCC. You will then need another target to backup to..

  • Desperately need help with a networked printer and SMB sharing for windows

    Complete xServ newbie here. I'm a windows/novell admin, with limited experience in Unix and Linux.
    Against my advice, a client of mine that owns a small office of 20 people bought an XServG5 to act as a server for 20 mixed Windows PCs. File sharing services are working fine. I've created the users, set up groups and rights - that's all good.
    I cannot get an SMB shared printer to work from the windows machines. They run through the network printer install just fine, it shows up online, etc. However, when print jobs are submitted they DO show up in the printer queue on the server, sit there for a while, and then get moved to the completed box.
    They never print. There's not any indication that the job is even submitted to the printer. I can print to the printer just fine from the server itself, but the windows clients don't work, but they don't return an error message.
    Print services are running on the server, I've configured the printer name to be less than 12 characters for the share, and indeed it does pop right up during the "add network printer" routine.
    Ideas? I'm not even sure what questions I'm supposed to be asking, such is my ignorance of the OS. I do know that I followed the documentation to a T, and according to Apple this should work.
    Thanks in advance for the help. I'm extremely frustrated.

    We have the same problem. Our printer worked for about 2 years but failed similar to yours after a system update.
    Can you go into the Windows service, Logs, Printer Service. Copy and paste the log here. What I am looking for is a line like lpr: CANNOTCONNECTCLIENT or something similar to this.
    What I expect is that you have a problem where the cups defined printer is not usable. We can't get our problem fixed either - but am just curious if you have the same thing. We reloaded our server, applied all of the update and still cannot get it to work.
    Again, I think it stems from the update.

  • Help with RFC sender, Program And RFC Destination

    Hi!!
    my scenary is asynchronous
         RFC Sender -> SAP-XI -> Oracle reciever
    I have a problem with abap, especially rfc, program and rfc destination. The connection with SAP-XI exist and SAP-XI  receive the message but the message is empty.
    1. In my program on the line
              CALL FUNCTION 'ZBAPI_SD_PED_ORD_SERVIC' DESTINATION 'ZXI_ENVIAR_PED_ORD_SERVIC'
              catch an error system_failure = 2 and it dont execute the rfc ZBAPI_SD_PED_ORD_SERVIC
    2. I rewrite my program, that line to
              CALL FUNCTION 'ZBAPI_SD_PED_ORD_SERVIC' STARTING NEW TASK 'NEW' DESTINATION 'ZXI_ENVIAR_PED_ORD_SERVIC'
              catch an error communication_failure = 1 but the rfc ZBAPI_SD_PED_ORD_SERVIC is executed but no send to SAP-XI
    3. I rewrite my program, that line to
              CALL FUNCTION 'ZBAPI_SD_PED_ORD_SERVIC' IN BACKGROUND TASK DESTINATION 'ZXI_ENVIAR_PED_ORD_SERVIC'
              No error but it dont execute the rfc ZBAPI_SD_PED_ORD_SERVIC and the message in SAP-XI is empty, display the tables but not the row. i check the table PED_ORDEN and RETURN but the controls fields dont are afected.
    What is my Error?
    Where am i making a mistake?
    RFC
    FUNCTION zbapi_sd_ped_ord_servic.
    *"Interfase local
    *"  TABLES
    *"      PED_ORDEN STRUCTURE  ZSD_RFC_T04
    *"      RETURN STRUCTURE  ZSD_RFC_R06
      TABLES: zsd_ped_orden, zsd_rfc_r01.
      DATA: tb_ped_orden LIKE zsd_ped_orden  OCCURS 0 WITH HEADER LINE,
                     tb_rfc_orden_error LIKE zsd_rfc_r01 OCCURS 0 WITH HEADER LINE.
    *Get Pedido by Ordenes
      SELECT  *  INTO CORRESPONDING FIELDS OF TABLE tb_ped_orden
              FROM zsd_ped_orden
              WHERE estatus  EQ  space.
      LOOP AT tb_ped_orden.
        MOVE-CORRESPONDING tb_ped_orden TO ped_orden.
        APPEND ped_orden.
        tb_ped_orden-estatus = 'X'.
        tb_ped_orden-fecha_actualiz = sy-datum.
        tb_ped_orden-hora_actualiz = sy-uzeit.
        MODIFY tb_ped_orden.
      ENDLOOP. 
      MODIFY  zsd_ped_orden FROM TABLE tb_ped_orden.
      COMMIT WORK.
    *Errors in Ordenes
      SELECT  *  INTO CORRESPONDING FIELDS OF TABLE tb_rfc_orden_error
              FROM zsd_rfc_r01
              WHERE estatus  EQ  space.
      LOOP AT tb_rfc_orden_error.
        MOVE-CORRESPONDING tb_rfc_orden_error TO return.
        APPEND  return.
        tb_rfc_orden_error-estatus = 'X'.
        tb_rfc_orden_error-fecha_actualiz = sy-datum.
        tb_rfc_orden_error-hora_actualiz = sy-uzeit.
        MODIFY tb_rfc_orden_error.
      ENDLOOP.
      MODIFY  zsd_rfc_r01 FROM TABLE tb_rfc_orden_error.
      COMMIT WORK.
    ENDFUNCTION.
    PROGRAM
    REPORT  ZBAPI_SD_PED_ORD_SERVIC.
    DATA: ped_orden LIKE ZSD_RFC_T04 OCCURS 0 WITH HEADER LINE,
          return LIKE ZSD_RFC_R06 OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'ZBAPI_SD_PED_ORD_SERVIC' DESTINATION 'ZXI_ENVIAR_PED_ORD_SERVIC'
         TABLES
              ped_orden             = ped_orden
              return                = return
      EXCEPTIONS
        communication_failure = 1
        system_failure        = 2
        OTHERS                = 3.
    IF sy-subrc <> 0.
      MESSAGE 'error' type 'I'.
    ENDIF.
    COMMIT WORK.
    RFC DESTINATION
    RFC Destination: ZXI_ENVIAR_PED_ORD_SERVIC
    Connection TYpe: TCP/IP Connection
    Register Server Program: ZBAPI_SD_PED_ORD_SERVIC
    Gateway host: host00
    Gateway service: sapgw00

    hi
    For rfc sender adapter we hv to do some settings .Please chk whether this settings are well configured or not.
    a) RFC destination
    b) RFC channel in the XI directory
    This weblog is a response to a few question about the basic configuration of the RFC sender adapter
    that were posted on the XI forum (and also on my e-mail)
    So here we go, basically we have to configure 2 things:
    a) RFC destination
    b) RFC channel in the XI directory
    RFC destination:
    1. To create the RFC go to TCODE: SM59
    2. Create new destination of type T (TCP/IP)
    3. Make sure you select Registered Server Program option before writing your program ID
    4. Write you program ID (remember it's case-sensitive)
    5. In the gateway host and gateway service write the values of your "Application system" - business system (not the XI server)
    7. No configuration in the J2EE administrator nessecary
    Now we can proceed to RFC channel configuration:
    1. Enter your Application Server
    2. Your Application Server Service
    3. Enter your Program ID from the RFC destination
    And we're done:)
    Now you can test the RFC destination in SM59 to see if it works.
    Please chk this following link.
    1. RFC Processing with the RFC Adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/25/76cd3bae738826e10000000a11402f/content.htm
    2. Configuring the Sender RFC Adapter -
    http://help.sap.com/saphelp_nw04/helpdata/en/67/6d0540ba5ee569e10000000a155106/content.htm
    3.  /people/swaroopa.vishwanath/blog/2006/12/28/send-rfc-to-sap-xi-150-asynchronous
    regards
    Manas

  • Help with Keywording a group of Images

    I need help applying keywords to a group of selected images. For some reason I can't get this to work. I've done it before and now it won't work. Here is what I'm doing. I've selected a group of images in a project by using shift and clicking the first and last image I want and using comand to select images that are not next to each other. They all show up in the viewer and the thin white lines show up around the images in the browser. Now I go and add a keyword. It doesn't seem to matter if I use the Keyword control bar buttons or if I type in a key word in the bar in the lower right hand side, the same thing happens. The keyword is only being applied to the primary selection and not the whole group. Why isn't this working? I'm sure I'm missing something simple, but it's starting to drive me crazy. Any help with this would be great thanks.
    -Matthew

    You have switched 'toggle primary only' on. To turn it off click on the button with a square in it at the bottom of the screen or press 's'

  • Help with MIRO Badi's and Translation Date (Exchange Rate Date Reference)

    Dear experts
    This is a problem I have read a lot about, but none of the answers work properly and I wanted to create a new thread in order to try to compile a final answer for this problem (at least in version 6.0)
    As you know Standar SAP uses posting date as translation date in MIRO for foreign currency.
    This is not always true (imagine Crude Imports with 3 dates: Invoice date, posting date and Bill of Lading date. The last one happens to be the fiscal date for exchange rate in my county and the other two are also mandatory).
    I am proposing thus to use 3 dates: Document date as invoice date; posting date as posting date and Invoice Receipt Date
    (REINDAT - RBKP) as Bill of Lading date. I would like to implement this third date as translation date.
    Lot of ways to do it, but none works properly as for the end user it is complicated to enter data in a certain way so that BADI's work properly. I have implemented note 574583 and only works with some restrictions.
    I have also used some more BADI's like MRM_HEADER_CHECK, FI_TRANS_DATE_DERIVE, INVOICE_UPDATE,... and all of them have some restrictions (depending always in data header taps data introduction or saving the exchange rate properly in MM TABLES but not in FI TABLES).
    I would really appreciate if anyone could help with this, ensuring that the Badi get's always the data and makes it work with no screen selection dependance.
    Thanks in advance.

    Dear All,
    I have found the solution with the help of ABAPer. The system has a bug for which SAP has given a  Sap Note no 22781.
    Actually what happened in the Invoice is, the system by default fetched the exchange rate for the Exchange Rate Type 'M' for the rate last maintained. Since we were using different Exchange rate it did not match. Also we came to know about the difference only because off-late the users had stopped updating Exchange Rate 'M' .
    The funny part is in the Invoice if we click on each tab at the header and come back to the first tab where we find the Exchange rate for accounting, the system picks up the actually rate as per the Exchange Rate maintained.
    Regards,
    Karthik.

  • Help with regards to customize settings

    Dear sir i am unable to print on customize settings after 3 times printing,the issue is that when i customize my settings i will get print 3 times on my given setting but after that the printer comes to default settings and print a single page and with default configured darkness,The whole issue is regard with copier.Provide me assistance as soon as possible.Thanks to someone who is concerned.

    ,Welcome to the Forums! I saw your post about the troubles you're having with setting custom sizes and having them stay permanently in your settings. I will do my best to help you. Please start with telling me what exact custom sizes, or settings you are selecting to use, and which program you are using. Also try Uninstalling the Printer Software, restarting your PC, and then reinstall the printer by running the HP Printer Install Wizard for Windows. Try your custom sizes again! Please check the specifications sheet for your LaserJet M126nw to make sure you are using supported sizes for this model: HP LaserJet Pro MFP M125 and M126 Printer Series Product Specifications Good luck   

  • Help with contacts between iphone and address book

    I am learning my way through the syncing activities and will say, as some other have, that it is a bit more complicated than I had hoped. I've had a mac for over 20 years and used the older mac.com, which I would sync with my computer. I did not renew it when I found I wasn't using it for the cost.
    I recently got my first iphone and had the contacts moved from my old cell phone by AT&T when I bought it.
    I have a lot of contacts in my imac's address book and I do not want to move all of them to my iphone. Some are just historical in case I want to email that person. For my iphone, I just want the contacts I use most often.
    So, in address book, I made a new group and named it iphone contacts. In this I have about 20 cnotacts with email addresses.
    On my iphone, I have many of these same people listed, but just their phone numbers as I did not send emails from my previous wireless phone.
    So my questions are:
    is there any way to get the two to combine via syncing? I want to keep the phone numbers in the iphone contacts and combine them with the email addresses that are in my address book on the imac. I would like to avoid having to open them both and do a lengthy copy and paste event But unless there is some way to tell the lists to combine with each other, on the iphone and in the group list I made in address book that I name iphone contacts, than that is what I'll do. But I thought it was worth a query here to see what options I might have.
    Thanks for any help you can give me.

    Bump, I did not get any replies to my query if there was a way to combine my iphone numbers in my cell phone contacts with email addresses in a group list in my imac's address book via syncing, so I am wondering if anyone knows if there is an app that might help me.
    Thank you in advance.

  • Help with Oracle PL/SQL and Objects...

    Hi,
    I wonder if you can help me, I am having some trouble dealing with Oracle objects in PL/SQL. I can declare them, populate them and read from them without any issues.
    But I am having some problems with trying to copy records in to other records of the same type, and also with updating existing records. I've made a mock up piece of code below to explain what I mean, it may have a few mistakes as I've written it in notepad but should be reasonably clear.
    First I have created a record type, which contains attributes relating to a person.....
    CREATE OR REPLACE
    TYPE PERSON_RECORD_TYPE AS object (
                        Person_ID          NUMBER(3),
                        Person_Name     VARCHAR(20),
                        Person_Age          NUMBER(2),
                        static function new return PERSON_RECORD_TYPE );
    CREATE OR REPLACE
    TYPE BODY PERSON_RECORD_TYPE as
    static function new return PERSON_RECORD_TYPE is
    BEGIN
    return PERSON_RECORD_TYPE (
         NULL,
                             NULL,
                             NULL,
                             NULL,
                             NULL
    END;
    END;
    Then I have created a table type, which is a table of the person record type......
    CREATE OR REPLACE
    type PERSON_TABLE_TYPE as table of PERSON_RECORD_TYPE;
    Finally I have created a procedure which recieves an instance of the person table type and reads through it using a cursor.....
    PROCEDURE ADMIN_PERSON (incoming_person     IN     PERSON_TABLE_TYPE)
    IS
    -- This is a local record declared as the same type as the incoming object
    local_person PERSON_TABLE_TYPE;
    -- Cursor to select all from the incoming object
    CURSOR select_person
    IS
    SELECT      *
    FROM      TABLE ( cast (incoming_person AS PERSON_TABLE_TYPE));
    BEGIN
    -- Loop to process cursor results
    FOR select_person_rec IN select_person
         LOOP
              /* Up to this point works fine...*/
              -- If I want to store the current cursor record in a local record of the same type, I can do this....
              local_person.person_id          := select_person_rec.person_id;
              local_person.person_name      := select_person_rec.person_name;
              local_person.person_age          := select_person_rec.person_age;
    -- QUESTION 1
              -- The above works fine, but in my real example there are a lot more fields          
              -- Why cant I set the local record to the value of the cursor record like this below..     
              local_person := select_person_rec;
    -- The above line gives a pl/sql error - expression is of wrong type, (as far as I can see the records are of the same type?)
    -- QUESTION 2
              --Also how do you update an existing record within the original object, I have tried the following but it does not work
              UPDATE incoming_person
              SET          age = (age + 1)
              WHERE     incoming_person.person_id = '123';
    -- The error here is that the table does not exist
         END LOOP;
    END;
    So I hope that you can see from this, I have two problems. The first is that I can store the current cursor record in a local record if I assign each attribute one at a time, but my real example has a large number of attributes. So why can't I just assign the entire cursor record to the local cursor record?
    I get a PL/SQL error "Expression is of wrong type" when I try to do this.
    The second question is with regards to the update statement, obviously this doesn't work, it expects a table name here instead. So can anyone show me how I should update existing person records in the incoming table type to the procedure?
    I hope this makes sense, but I don't think I have explained it very well!!
    Any help will be gratefully recieved!!
    Thanks

    I understand why you are having trouble - my own brain started to hurt looking at your questions :)
    First off, database types are not records. They can act like records but are "objects" with different characterstics.
    You can create a record in PL/SQL but the "type" is of RECORD. You created an OBJECT as BODY_PERSON_RECORD_TYPE.
    I don't use database types unless I really need them, such as for working with pipelined functions.
    -- QUESTION 1
    -- The above works fine, but in my real example there are a lot more fields
    -- Why cant I set the local record to the value of the cursor record like this below..
    local_person := select_person_rec; local_person is set to the (misnamed) BODY_PERSON_RECORD_TYPE, while SELECT_PERSON_REC is anchored to the cursor and is a RECORD of SELECT_PERSON%ROWTYPE with a field for each column selected in the query. Different types, not compatible.
    You should be able to manually assign the object items one by one as object.attribute := record.field one field at a time.
    -- QUESTION 2
    --Also how do you update an existing record within the original object, I have tried the following but it does not workCheck the on-line documentation for the syntax. You'll probably have to reference the actual value through the table; this is one reason why I don't work with nested tables - the syntax to do things like updates is much more complex.

  • Help with backing up files and opening from disk image.

    I am trying to back up my hard drive so that I can send my PowerBook in for repair. I used disk utility from my Panther install discs to create a disk image of my HD.
    The disk image was created successfully and mounts perfectly on my HD. I can open it and open all of my files from the disk image just fine when it is mounted on my PowerBook.
    However, when I take it to a different Mac, things start getting sketchy. I can open Word files just fine, but Excel files claim they are read-only and cannot open. I checked the permission back on my PowerBook to see what was up, and the files were read/write for the owner and read-only for groups and others, but they should still open as read-only files right? I even checked the permissions on the Word files to see if there was a difference, but there was no difference.
    I can take the external HD back to my PowerBook, remount it, and open everything fine, but then on the other Mac it is a no go.
    I need to back this up for when it is out on repair, but I need to know that the files will open in case I need to restore my disk.
    Can anyone help??
    BTW, I couldn't find the best forum to post this in, if there is a better one please direct me there...

    solution:
    I went into the Apple Store nearby today to send my PowerBook off for repair for a screen issue, and in the process got help with my backing up issue.
    It seems all one needs to do is copy the file from the external hard drive to the internal drive.
    It was that simple.
    Jason

Maybe you are looking for

  • I have problem to connect oracle DB with SQL developer

    I try connect to my oracle db with oracle SQL developer and received that message: http://ioj.com/v/camkp (pictures 1 and 2) if i try connect with sql plus, all well. command : select userenv('LANGUAGE') from dual; result: Connected to: Oracle Databa

  • Strange thing...must be a reason?

    I just set up a business card, front and back, in Illustrator, with crop marks, two art boards, etc. The front of the card has a full picture and a logo. After saving as a PDF in Illustrator, I opened up the PDF to check it and there are three pages.

  • Which ethernet cable to use?

    I want to run a single cable from the Airport Extreme in the house to the garage and plug it directly into my laptop in the garage, without having a separate hub in the garage. I have several questions? Cat-5e or Cat-6? Do they both use the same conn

  • Mail not displaying embedded attachments correctly

    Hello all, I have a strange problem that I can't seem to find any information on anywhere. Whenever I receive a photo or pdf embedded in an email message, I get this: --0015174c1230fc3ab30499a6fc4d Content-Type: image/jpeg; name="photo.JPG" Content-D

  • Initialization field at declaration or in constructor?

    Hi, Could somebody tell me which one is better practice and why? public class Course {      private List<Student> students;      public Course() {           this.students = new ArrayList<Student>(); }or public class Course {      private List<Student