Concatenation of fields for the Group of records

Dear friends,

Here's my detail records


employee not non-contact
1360 8934
1360 7172
1360 [email protected]
1297-8933
1297 7056
1297 8888
1297 xyzl

I want to write to the bottom of the query that returns the following result set

1360 [email protected] 8934,7172,
1297 8933,7056,8888, xyzl

Pls help me!

Manish Manyal

See: http://www.oracle-base.com/articles/misc/StringAggregationTechniques.php

An example:

SQL> -- generating sample data
SQL> with t as (
  2  select 1360 employee_no, '8934' contact_no from dual union
  3  select 1360, '7172' from dual union
  4  select 1360, '[email protected]' from dual union
  5  select 1297, '8933' from dual union
  6  select 1297, '7056' from dual union
  7  select 1297, '8888' from dual union
  8  select 1297, 'xyzl' from dual
  9  )
 10  --
 11  -- actual query:
 12  --
 13  select employee_no
 14  ,      ltrim(sys_connect_by_path(contact_no, ','), ',') contact_no
 15  from ( select employee_no
 16         ,      contact_no
 17         ,      row_number() over (partition by employee_no order by contact_no) rn
 18         from   t
 19       )
 20  where connect_by_isleaf=1
 21  start with rn=1
 22  connect by rn=prior rn+1
 23         and employee_no = prior employee_no;    

EMPLOYEE_NO CONTACT_NO
----------- --------------------------------------------------
       1297 7056,8888,8933,xyzl
       1360 7172,8934,[email protected]

Tags: Database

Similar Questions

  • How to add a field for the multiple file upload in WebApps?

    I create a Web application for the user to record certain information with multiple images. I only see a single uploader.

    How can I add multiple image uploader and how do I create an upload field instead of a custom file upload image?

    Hello

    There is no other type of upload for web applications field.  You will need to use the 'image file type"to apply to multiple file upload fields in the form of web application in this case.

    Kind regards

    -Sidney

  • Problem in designing a custom field for the display of paragraph

    Hello

    I need to develop a custom field that is supposed to act as a RichTextField with the additional of the hyperlink feature as seen in the web pages. I have a few paragraphs of text with an id associated with each of them. A paragraph may have link to another paragraph. I think that the hyperlink is actually like a button.

    My screen will consist of a single paragraph. If any hyperlink (id) in this paragraph is preesed then the screen reloads with another paragraph (id in a hurry).

    My problem is to develop a custom field for the display of this paragraph.

    Point: several lines of text without interruption. Some of the text may be bold, italic. a text can be the hyperlink.

    Now I'm stuck. I have no ideas how I can start with. Can someone give me please suggestions as to how I can start with?

    Thanks in advance

    Bika

    I have a different Suggestion.

    If you are using an ActiveRichTextField, you get two things:

    (1) the ability to shape a field using different fonts:

    Comment - formatting text in a RichTextField
    Article number: DB-00124
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800345/...

    (2) the ability to create "links" automatically using string models

    How to-to comparison models in the BlackBerry smartphone to provide a user experience integrated applications
    Article number: DB-00525
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

    Using models of string, I think you'd be able to create ' hot-link in your text, which the run Menu item was able to process you want.

    Just an idea.  Hope this works for you.

  • Captivate in 8, can you apply an effect (for example, a transition) for the grouped shapes? (I can apply the effect to a single shape, but when I group forms, I can't understand how).

    Captivate in 8, can you apply an effect (for example, a transition) for the grouped shapes? (I can apply the effect to a single shape, but when I group forms, I can't understand how).

    Hello

    It is not possible to apply effects to groups of forms. You can apply the transition from the distribution panel and other properties in the property inspector.

    You will need to apply the same effect of the same duration for all objects in a group in this case.

    Thank you.

  • Cannot choose fields for the calculation

    It's very frustrating.

    I change the fields of a form of invoice and want to use the last field of the line to create a total. I select the field and go into its properties. Under the tab 'Calculate', I select "Value is the 'product' of the following" and then click on the "Pick" box to select the fields to be calculated. I am then provided a list of all my fields and I check my selections, and then click OK. But once I click OK, I'm back in the tab calculate with any of my selections in the fields box. Basically, it does not save my selections.

    I tried this all means that I can imagine, rebooted, etc.. Yet, no matter what I can't do to save the field selections that I do for the calculation. I managed to do this successfully for the first line in the form (apparently in full at random) and have not been able to reproduce any success for the following fields. I have check the fields and once I hit OK it ignores them completely.

    Here, any help would be greatly appreciated.

    RP

    After further inspection, it seems that after the field that contains the total bet in shape, I then have to close edition form and re-enter form edition in order to choose the options field for the calculation.

    Very odd behavior, but this is as close I just reproducible results.

  • Validation in the field for the city of delivery

    Hello everyone,

    I need a validation of field for the maritime City field. But as you know this field is not directly accessible. You have any tips how I can do?

    For any help, I would be very grateful.

    Kind regards
    Dmitri

    Dmitri, I don't think that it is possible for field validation on the city of delivery.

  • Concatenation of data with the GROUP BY clause

    Hi again!

    Following my previous thread...
    Re: Need help with RANK() on data ZERO

    I tried to apply the GROUP BY clause instead of preforming my query with RANK() to manage records NULL... I have a scenario where I also need to concatenate data from several lines.

    CREATE TABLE T_EMP (NUMBER OF EMP_NO, NAME VARCHAR2 (20));
    INSERT INTO T_EMP VALUES (1001, 'MARK');
    INSERT INTO T_EMP VALUES (1002, 'DAVID');
    INSERT INTO T_EMP VALUES (1003, "SHAUN");
    INSERT INTO T_EMP VALUES (1004, "JILL");

    CREATE TABLE T_EMP_DEPT (NUMBER OF EMP_NO, DEPT_NO NUMBER);
    INSERT INTO T_EMP_DEPT VALUES (1001, 10);
    INSERT INTO T_EMP_DEPT VALUES (1001, 20);
    INSERT INTO T_EMP_DEPT VALUES (1002, 10);
    INSERT INTO T_EMP_DEPT VALUES (1002, 20);
    INSERT INTO T_EMP_DEPT VALUES (1002, 30);
    INSERT INTO T_EMP_DEPT VALUES (1003, 20);
    INSERT INTO T_EMP_DEPT VALUES (1003, 30);
    INSERT INTO T_EMP_DEPT VALUES (1004, 10);

    CREATE TABLE T_EMP_VISITS (NUMBER OF EMP_NO, DEPT_NO NUMBER, VISITED DATE);
    INSERT INTO T_EMP_VISITS VALUES (1001, 10, 1 JAN 2009');
    INSERT INTO T_EMP_VISITS VALUES (1002, 10, 1 JAN 2009');
    INSERT INTO T_EMP_VISITS VALUES (1002, 30, 11 APR 2009');
    INSERT INTO T_EMP_VISITS VALUES (1003, 20, 3 MAY 2009');
    INSERT INTO T_EMP_VISITS VALUES (1003, 30: 14 FEB 2009');
    COMMIT;

    I have a T_EMP master table that stores the name and number of the emp. Each emp is required to visit some departments. This mapping is stored in the T_EMP_DEPT table. An employee can visit one or more departments. T_EMP_VISITS table stores the dates where the employee visited the services required. I need to view the report which should show when an employee all completed visits, which is the maximum date when it finished to visit all departments. If he did not visit any of the report should display date max, otherwise NULL. I was able to do using GROUP BY such proposed by Salim, but how do I show a list separated by commas of the services required for an employee in the same query.

    SELECT
    EMP_NO,
    NAME,
    MAX (DEPT_NO) KEEP (DENSE_RANK LAST ORDER BY VISITED) MAX_DEPT_NO,.
    MAX (VISITED) KEEP (DENSE_RANK LAST ORDER PER VISIT) VISITS_COMP
    DE)
    SELECT
    T_EMP. EMP_NO,
    NAME,
    T_EMP_DEPT. DEPT_NO,
    VISITED
    OF T_EMP
    LEFT OUTER JOIN T_EMP_DEPT
    ON T_EMP. EMP_NO = T_EMP_DEPT. EMP_NO
    LEFT OUTER JOIN T_EMP_VISITS
    ON T_EMP_DEPT. EMP_NO = T_EMP_VISITS. EMP_NO
    AND T_EMP_DEPT. DEPT_NO = T_EMP_VISITS. DEPT_NO)
    GROUP EMP_NO, NAME;

    Output
    EMP_NO NAME MAX_DEPT_NO VISITS_COMP
    1001 MARK 20
    1002 DAVID 20
    1003 SHAUN 20 3 MAY 09
    JILL 1004

    Power required
    EMP_NO NAME REQ_DEPTS MAX_DEPT_NO VISITS_COMP
    1001 MARC 20 10.20
    1002 DAVID 10,20,30 20
    1003 SHAUN 20,30 20 3 MAY 09
    JILL 10 1004

    Can we do this in a single query?

    Hello

    user512647 wrote:
    ... Sanjay
    The query you provided that stragg() use seems to work but my requirement is not in the result set. I don't know how to use stragg with
    MAX (DEPT_NO) KEEP (DENSE_RANK LAST ORDER BY VISITED) MAX_DEPT_NO,.
    MAX (VISITED) KEEP (DENSE_RANK LAST ORDER PER VISIT) VISITS_COMP
    I need more, these two columns these gives me the date when they have completed all visits. If they missed any Department then the result must be NULL in the VISITS_COMP field.

    Just add them to the SELECT clause:

    SELECT    t_emp.emp_no,
           name,
           STRAGG (t_emp_dept.dept_no)     AS deptno,
           MAX (t_emp_dept.dept_no) KEEP (DENSE_RANK LAST ORDER BY visited)
                                      AS max_dept_no,
           MAX (visited)                      AS visits_comp
    FROM             t_emp
    LEFT OUTER JOIN      t_emp_dept     ON   t_emp.emp_no     = t_emp_dept.emp_no
    LEFT OUTER JOIN      t_emp_visits     ON   t_emp_dept.emp_no     = t_emp_visits.emp_no
                                 AND  t_emp_dept.dept_no = t_emp_visits.dept_no
    GROUP BY  t_emp.emp_no
    ,            name
    ;
    

    The column called visit_comp is simply the last visited, regardless of how the employee visited departments.
    If you want to have the NULL value if the employee has not yet visited all 3 departments:

    ...       CASE
              WHEN  COUNT (DISTINCT t_emp_dept.dept_no) = 3
              THEN  MAX (visited)
           END                    AS visits_comp
    

    The 'magic number' 3 is the total number of departments.
    If you want to understand the correct value of that at the time of the execution of the query, replace the code literal 3 hard with a scalar subquery.

    Note that 'KEEP MAX (x) (DENSE_RANK OVER LAST SERVICE BY x)' (where the exact same column is used as an argument and that the ORDER BY column) is just "MAX (x)".

  • Question on DNS entries for the grouping and the call

    Hey all,.

    We test a bunch of highway that has been placed in its own subdomian DNS (for example)

    cluster.Domaine.com

    With DNS entries:

    SRV

    _sips._tcp.cluster.domain.com. 86400 IN SRV 5061 1 1 Expressway1.cluster.domain.com.

    _sips._tcp.cluster.domain.com. 86400 IN SRV 5061 1 1 Expressway2.cluster.domain.com.

    _sip._tcp.cluster.domain.com. 86400 IN SRV 1 1 5060 Expressway1.cluster.domain.com.

    _sip._tcp.cluster.domain.com. 86400 IN SRV 1 1 5060 Expressway2.cluster.domain.com.

    _h323ls._udp.cluster.domain.com. 86400 IN SRV 1 1 1719 Expressway1.cluster.domain.com.

    _h323ls._udp.cluster.domain.com. 86400 IN SRV 1 1 1719 Expressway2.cluster.domain.com.

    _h323cs._tcp.cluster.domain.com. 86400 IN SRV 1 1 1720 Expressway1.cluster.domain.com.

    _h323cs._tcp.cluster.domain.com. 86400 IN SRV 1 1 1720 Expressway2.cluster.domain.com.

    _h323rs._udp.cluster.domain.com. 86400 IN SRV 1 1 1719 Expressway1.cluster.domain.com.

    _h323rs._udp.clusterdomain.com. 86400 IN SRV 1 1 1719 Expressway2.cluster.domain.com.

    A

    Expressway1.cluster.domain.com. IN a x.x.x.x (address IP Expressway1)

    Expressway2.cluster.domain.com. IN a x.x.x.x (address IP of Expressway2)

    However, I would actual calls placed to the root domain

    domain.com

    But with these entries DNS pointing to the subdomain of cluster, or I point to the individual counterparts of the cluster (see above). My feeling is that what I should do to the cluster so I need update DNS entries for the main domain if the peer of the cluster changes, such as:

    SRV

    _sips._tcp.domain.com. Cluster.Domaine.com IN SRV 0 0 5061 3600.

    _sip._tcp.domain.com. Cluster.Domaine.com IN SRV 0 0 5060 3600.

    But is this correct?

    Post edited by: Chris Swinney

    Comment added to records showing that they point to

    Hi Chris, how are you?

    If I remember correct SRV RFC which would be an error because no recursive search of srv would get,

    the address at the end of the srv record must be an a record (so also no CNAME).

    In your scenario, you can use:

    _sips._tcp.domain.com. 86400 IN SRV 5061 1 1 Expressway1.cluster.domain.com.

    _sips._tcp.domain.com. 86400 IN SRV 5061 1 1 Expressway2.cluster.domain.com.

    _sip._tcp.domain.com. 86400 IN SRV 1 1 5060 Expressway1.cluster.domain.com.

    _sip._tcp.domain.com. 86400 IN SRV 1 1 5060 Expressway2.cluster.domain.com.

    _h323ls._udp.domain.com. 86400 IN SRV 1 1 1719 Expressway1.cluster.domain.com.

    _h323ls._udp.domain.com. 86400 IN SRV 1 1 1719 Expressway2.cluster.domain.com.

    _h323cs._tcp.domain.com. 86400 IN SRV 1 1 1720 Expressway1.cluster.domain.com.

    _h323cs._tcp.domain.com. 86400 IN SRV 1 1 1720 Expressway2.cluster.domain.com.

    _h323rs._udp.domain.com. 86400 IN SRV 1 1 1719 Expressway1.cluster.domain.com.

    _h323rs._udp.domain.com. 86400 IN SRV 1 1 1719 Expressway2.cluster.domain.com.

    h323cs and rs cannot be used (cs is if you dial the field directly without user @ from the beginning)

    RS is used for registration, most of the configurations that I saw live fine without it...

    BTW, if it is a copy paste, replace your alone there is an error in the last entry of rs, it lacks one. between the two

    cluster and field.

    Btw2, I would set a record also has to be cluster.domaine.com at least one of the VCS, it's

    very convenient for endpoints no or wrong to support srv records.

  • Mapping of metadata fields for the Lightroom import process

    Does anyone know what metadata fields using Adobe when playing jpg in a Windows (2000, XP, 7) environment? I tried many variations of the title, caption (subject), comments, and other areas. It seems that the areas are interdependent. If one is missing, then the same field may be used to fill two or more other areas. Adobe publishes a mapping or logical flow for the transfer of the metadata fields when importing? Yes, I understand that Microsoft broke all the standards known in this area, but I was using the "Windows Explorer" program for 20 years to fill the metadata fields in my image files. I'm now import a lifetime of photos in Lightroom for better management.

    There are two separable issues: how Lightroom reads fields of metadata from photos, and how Windows Explorer writes of metadata fields.  Unfortunately, I don't think that there is a single document that authoritative describing each question.  The industry has made a mess inherited metadata, and very few programs trying to do quality work.

    Lightroom has done a reasonable job to follow the industry standard, published by the metadata working group.  This standard unifies the three main mechanisms in which the metadata is stored in JPEG files and other file formats: EXIF, IPTC and XMP.    Many fields have defined slots in each of these three mechanisms.  For example, the capture time can be stored in EXIF:DateTimeOriginal, IPTC:DateCreated and IPTC:TimeCreated and XMP:DateCreated.  The MWG standard specifies how applications should read and write these multiple fields.

    For a couple of the most commonly used fields, LR uses its own names: "caption" (for EXIF:ImageDescription, IPTC:Caption - Abstract, XMP:Description); "capture date" (see above); "title" (IPTC:ObjectName, XMP:Title).  But for the rest of the fields, LR usually uses the same name as that defined in EXIF or IPTC - standards are the names displayed in the presets EXIF and IPTC in the Panel metadata, in the right column of the library.

    There is a dark corner where LR has made a mess: capture photos missing time (scans or digital photos very old).  Some parts of the LR will use the last modified time of the file, others the time to create the file (as defined by the Windows or Mac operating systems).  This gives very confused, inconsistent results that is easily corrected using the metadata > command change the Capture time.

    About Windows File Explorer, as Windows 7, Microsoft has done a better job than average according to the standards of the industry (a little better), it's a pretty low bar, especially considering that there are many standards to choose but file Explorer has a lot of quirks.  It's been a while since I looked at File Explorer in depth, but I remember that he (like virtually all other applications, including LR) uses names for fields that do not necessarily closely match the names assigned by the standards.  For example, "Title" of the file Explorer Gets the mapping to EXIF:ImageDescription, EXIF:Title, EXIF:Description and IPTC:Caption - abstract.

    * * *

    If you really want to get your 20-years-worth of photos loaded properly in LR (and I think you do), then your best best is to download the free "exiftool" and learn how to use it.  This is the tool the more authority without exception to examine and manipulate metadata.  To see where fields, I use this command line:

    ExifTool - a g fichier.jpg

    I think that there are versions of Exiftool GUI, but in the past, they don't have to deal with the basic tool, and after a while, I found that they just in the way.

    Then with a little trial and error, you can see exactly where the fields that you have stored with the file Explorer and if LR is read correctly.

  • Support for the 'grouping' Dual LAN

    I bought a router of WRT600N, which was far & away the router wireless dual band to use more expensive (& only) available at the time + 2 compatible Ultra Range Plus USB receivers.  Apparently Linsys/Cisco decided to abandon this model & more support - still firmware version 1.0 (from 2008).  OK, then repeat ceMarketing not high on their priorities.

    I recently upgraded my hardware in a platform Intel 1156 running Win 7 Ultimate 64-bit completely.  The new motherboard, a Gigabyte GA-P55-UD5, has a 'dual LAN' support that allows "bundling" - potentially 2 GB support & self-switching if a port is not functional.  Apparently, it requires a router that has 'IEEE 802.3ad' capabilities.  As far as I can tell, this potentially interesting feature only is not supported, & the firmware upgrade failure suggests it will be never. - bought their "Network Magic" software Pro to add another $50.

    So the question is this: I believe - no double support LAN is built in & never will be--or is there a way to use this feature?  Suffice to say, if I paid about $420 for the router & USB receivers where if other router support him on the level of consumption, I will never consider a Linksys/Cisco product in this life.

    Thanks for some clarity - that someone has to offer.

    I would say the associations are no consumer router function. If you really need a connection of 2 Gbps to a single device to your network, I wonder what other device to communicate with this speed. It is not only another device because it would have only 1 GB/s unless you team two remaining ports as well. (Do not forget that desktop computers more level of consumption are not yet fast enough to offer or receive data at a rate even if they have a Gigabit ethernet port).

    If you have a set of other features which, in combination, require 2 Gb/s access server, then you will have again the same problem: it must connect somewhere which means you need a switch that must be connected to the two remaining LAN ports. But then, you might as well get a switch that supports reunification and enough ports and connect everything what he. Of course, an ethernet switch that supports the grouping is usually some 'smart' managed switch that cost easily more then your WRT600N.

    So I think that grouping will be never supported on any Linksys consumer device. If you then you must watch the Cisco Small Business series or better. They have some devices supporting 802. 1 q VLAN and therefore potentially also 802.3ad. Although even in this case I doubt because given the number of ports available on these devices is not really a lot of sense to support at least on a router 4 ports. Devices consumer and SOHO are not for internet connections of 1 Gbit/s or more. So you can only use the speed inside the LAN, but with 4 ports that would be difficult... So I would say that by their design these routers don't support grouping. If you need grouping within your LAN, get a managed switch...

  • Merge field for the ID of Eloqua

    I want to be able to use the digital part of Eloqua ID contact in an electronic mail merge field.

    For example when someone registers, Eloqua grants them an ID like: CIDCM000000023336

    I want that the welcome email to transmit the number 23336 as part of a URL, something like: www.myurl.com/parameter?id=23336

    .. but I can't find a way to access this part of the identifier.  With the help of the field ID Eloqua standard Contact as a merge field returns the integer "CIDCM000000023336."  If someone managed to get the digital ID in a merge field, or remove the... part CIDCM00 leader?  (Of course the numeric part is variable length 1, 2, 3... 6 digits, if you can't just strip the first 12 characters).

    any ideas?

    Thank you

    Charlesailemail_e

    Hi Charlie,

    Assuming you can use this field in the handling of string cloud connector, then you could probably find a way to do this - can I ask why this field as your setting?

    What you are doing here, is there a reason you can't use the integer value for this and it must be numeric?

    See you soon,.

    Chris

  • Too big for the grouped SQL 2 K 8 Express Database?

    I'm plodding through the vCenter Server 5.1 Upgrade Guide, all the time, assuming that I didn't need to worry about installing a complete SQL DB for 5.1, and I come across this Page 51:

    > Microsoft SQL Server 2008 R2 Express: group database that you can use for small deployments of virtual hosts up to 5 and 50 machines.

    I have 3 guests and 36 VMs.  These 36 VMs, about 25 are critical.  We you will develop, but we should be good for another year or more.

    Question1: should I worry about the time, licenses, etc. to create a complete SQL DB for vCenter 5.1 upgrade?

    Question2: is SQL 2 K 8 R2 Express come with the file .iso image for the upgrade to vCenter and just install/upgrade it first?

    Ty

    -lc

    Answer 1: You can go with the Express for your deployment. In fact, the limitation is a soft and only has an impact on the size of DB stored by vCenter (R2 Express now have a 10 GB limit size of DB) and performance. You CAN have more than 50 virtual machines / 5 ESX, but if you have a problem with your vCenter service (i.e. vCenter start fail, slow performance when you access the inventory, etc.), VMware will not support you in this case. Virtual machines will not be affected by this.

    Answer 2: Yes, SQL Express are delivered on the installation of VC. He moved with vCenter (you can choose during installation).

  • How can I add a text field for the main menu?

    I have a project with a menu.  He has a title.  I wanted to add an additional track on the menu, what I had done in an earlier draft.  I would have thought he would have intuitively obvious, as highlighting the existing title I and do a copy and paste.  However, I learned that nothing is intuitive with Premiere elements 12.  Can someone tell me how to get a 2nd title on my main menu?  I have done it before, but apparently did not write it and I was faced with that I falsely assumed would take me 30 seconds to accomplish.  Thank you.

    Rick

    Do you really need a second title for the page in the main menu and the selection of scene or you page fixed for your Adobe title in more than one line?

    I wonder

    I wanted to add an additional track on the menu, what I had done in an earlier draft.

    Is it possible that as soon as you use a theme which came with 'subtitle', as the trip/Beach Resort, not all do.

    Workaround for the title with more than one line of text can backfire on you. But you can try. Excerpt from my first items 13 on this blog

    0019 first Elements 13 movie Menu title question: multiple lines of text


    A first elements 13/13.1 user reports that, if it creates a 3 lines of title text for the main menu of the fake big screen theme in the customization area of Movie Maker project, these 3 lines of text eventually "encoded" in the project of reopening after that that there had been closed.

    We have confirmed this report and extended it to include this problem appears for 13 of Menus other than the fake Widescreen cinema. This issue is not seen in first items 12/12.1 and earlier versions.

    BEFORE REOPENING THE CLOSE SAVE

    Figure 1. Main menu of Spring Flower home with 3 lines of text, as seen before the closure of the Reopen

    AFTER THE REOPENED NARROW SAVE


    Figure 2. Spring Flower main Menu title initially with 3 lines of text, as seen from the closure of the Reopen



    The only way found so far to get the final product to have 3 lines of title text for menus in the final product is to customize the theme to the movie Menu in the customization of the Menu movie of the project area, do not save, close the project at this time and can do the burn to.


    Many variables were examined to explain this behavior. So far, no answer for why.

    If you are determined to use a particular theme that comes with the title menu and subtitle, look at the text of the Palette layers layers in the editing menu .psd file (.psd Editor could be Photoshop CS or higher).

    Regarding

    on my project last year that was the menu that I liked with 2 text fields, I have also got rid of the "arrow" shortly before the text that was the menu key.  Anyone know how I do that?  I can't figure that out now.

    Could you be more specific. But, for now, consider... If you Play All text, you double-click to open the text of the amendment, the deleted text, click OK. Play All disappeared. Sometimes, in page and removal of text "main menu" scene selection to the navigation button... double click on the button to open the changes to the text, delete text, press ENTER, and then bar spacing, and click OK.

    Please let us know if everything above the target you wanted to know.

    Thank you.

    RTA

  • Trying to get ending entry into force for the groups of lines

    Hello world

    I searched the forums, but I can't find a post that is a problem quite like that.

    I have some data that looks like this:
            ID_NUM     EFFECTIVE ALLOC_PERCENT   ACCT
    ---------- --------- -------------   ----
           101 01-JUL-11            21   A1
           101 01-JUL-11            72   A2
           101 01-JUL-11             7   A3
    
           101 01-JUL-12            20   B1
           101 01-JUL-12            80   B2
    
           101 01-JAN-13            20   A1
           101 01-JAN-13            20   A2
           101 01-JAN-13            50   A3
           101 01-JAN-13            10   B1
    
           101 01-JUN-13            50   A1
           101 01-JUN-13            50   A2
    (note: I inserted manually empty lines for clarity)

    Here's the logic: the lines represent an assignment of percentage on the account for the identification number specified for this entry into force. A new date to cancel the previous, and if any line in the conceptual group is replaced, so they are all.

    I'll try to find the date when the effective period of each group ended and which includes in the game so that I can calculate then the number of days in a given line has been effective; something like that;
      ID_NUM     EFFECTIVE END_DATE   ALLOC_PERCENT ACCT
    ---------- --------- ---------- ------------- ----
           101 01-JUL-11 01-JUL-12             21 A1
           101 01-JUL-11 01-JUL-12             72 A2
           101 01-JUL-11 01-JUL-12              7 A3
    
           101 01-JUL-12 01-JAN-13             20 B1
           101 01-JUL-12 01-JAN-13             80 B2
    
           101 01-JAN-13 01-JUN-13             20 A1
           101 01-JAN-13 01-JUN-13             20 A2
           101 01-JAN-13 01-JUN-13             50 A3
           101 01-JAN-13 01-JUN-13             10 B1
    
           101 01-JUN-13 <null>                50 A1
           101 01-JUN-13 <null>                50 A2
    The end_date of the group is the EFFECTIVE_DATE of the next group (ordered by ID_NUM, EFFECTIVE_DATE).

    End_date of two rows is zero because there is no group of lines with an effective date the later - in my process, I'll NVL which sysdate so that my calculations of days will be valid.

    I tried some analytical queries with LEAD, but I couldn't figure out how to get the next date of the efficient group. I could get the entry into force of the next row, but not the next group. I couldn't specify how many lead lines to look forward, because there is not a number of rows in each group.

    How to fill the end_date column?

    Here's the code to create the above.
    create table t
    (id_num number,
     effective_date date,
     alloc_percent number,
     acct_code varchar2(4)
     );
    
    insert into t (id_num,Effective_date,alloc_percent,acct_code) values(101,'01-jul-2011',21.0,'A1');
    insert into t (id_num,Effective_date,alloc_percent,acct_code) values(101,'01-jul-2011',72.0,'A2'); 
    insert into t (id_num,Effective_date,alloc_percent,acct_code) values(101,'01-jul-2011',7.0,'A3');
    insert into t (id_num,Effective_date,alloc_percent,acct_code) values(101,'01-jul-2012',20.0,'B1');
    insert into t (id_num,Effective_date,alloc_percent,acct_code) values(101,'01-jul-2012',80.0,'B2');
    insert into t (id_num,Effective_date,alloc_percent,acct_code) values(101,'01-jan-2013',20.0,'A1');
    insert into t (id_num,Effective_date,alloc_percent,acct_code) values(101,'01-jan-2013',20.0,'A2');
    insert into t (id_num,Effective_date,alloc_percent,acct_code) values(101,'01-jan-2013',50.0,'A3');
    insert into t (id_num,Effective_date,alloc_percent,acct_code) values(101,'01-jan-2013',10.0,'B1');
    insert into t (id_num,Effective_date,alloc_percent,acct_code) values(101,'01-jun-2013',50.0,'A1');
    insert into t (id_num,Effective_date,alloc_percent,acct_code) values(101,'01-jun-2013',50.0,'A2');
    
    commit;
    
    select * from t;
    Oracle version information:
    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    "CORE 11.2.0.3.0 Production."
    AMT for Solaris: 11.2.0.3.0 - Production Version
    NLSRTL Version 11.2.0.3.0 - Production


    Thank you very much

    Hello

    Here is one more way to do using lead work.

    WITH ds as (id_num, effective_Date, lead (effective_date) select on end_date (id_num order, effective_Date))

    t

    Id_num group, effective_date)

    Select t.*, ds.end_date

    DS, t

    where t.effective_Date = ds.effective_Date;

  • Toggle visibility for the Group layer

    With the help of this forum, I got a script that activates / deactivates the visibility of a specific layer without selecting the layer.

    I would like to know if the same functionality can be obtained for a layer group.

    In other words the script can toggle the visibility of a layer with output actually group by selecting the Group of layers?

    I understand that some parts of Photoshop are not scriptable and wan to ensure that it is not one of them, before I was embarking on the creation of the script.

    
    

    I have a script that does what you need. Can't remember if I got here, but I know that the scripts here guys are geniuses and can help you with almost anything. That being said, here's the script you need. All you need to do is replace the three parties "Insert Layer Name Here" with the name of the layer you want to toggle. Don't thank me, thank the guy who wrote (probably someone here)

    var targetID = getLayerIDByName('Insert Layer Name here');
    if(undefined != targetID){
        if(getLayerVisibilityByID( targetID ) ){
            hideByName('Insert Layer Name here');
        }else{
            showByName('Insert Layer Name here');
        }
    }
    function getLayerIDByName(name) {
        try{
        var ref = new ActionReference();
        ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "LyrI" ));
        ref.putName( charIDToTypeID( "Lyr " ), name );
        return executeActionGet(ref).getInteger(charIDToTypeID( "LyrI" ));
        }catch(e){}
    };
    function getLayerVisibilityByID( id ) {
        var ref = new ActionReference();
        ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "Vsbl" ));
        ref.putIdentifier( charIDToTypeID( "Lyr " ), id );
        return executeActionGet(ref).getBoolean(charIDToTypeID( "Vsbl" ));
    };
    function hideByName(name) {
        var desc = new ActionDescriptor();
            var list = new ActionList();
                var ref = new ActionReference();
                ref.putName( charIDToTypeID('Lyr '), name );
            list.putReference( ref );
        desc.putList( charIDToTypeID('null'), list );
        executeAction( charIDToTypeID('Hd  '), desc, DialogModes.NO );
    };
    function showByName(name) {
        var desc = new ActionDescriptor();
            var list = new ActionList();
                var ref = new ActionReference();
                ref.putName( charIDToTypeID('Lyr '), name );
            list.putReference( ref );
        desc.putList( charIDToTypeID('null'), list );
        executeAction( charIDToTypeID('Shw '), desc, DialogModes.NO );
    };
    

    EDIT-Oops, I just realized that it is only for layers, not groups. But I hope that it is a starting point

Maybe you are looking for