First/last in a group of

Hello!

I have a table with session_ids, url, a user has visited and the time did.

I need output session_id PR.

Session ID, durtaion of the session, the first page he visted, last page, it made

I tried many things with first_value, last_value, first/last in various analytical functions, but my head can't seem to find the right solution.
(aprt of coding it in PL/SQL)

It is an example of my table:

drop table mette_interval;
create table mette_interval (session_i number, varchar2 (400) url, date of url_time);

insert into mette_interval values (1, 'start page', sysdate);
insert into mette_interval values (1, 'xxxxside z', sysdate + interval of second '5');
insert into mette_interval values (1, 'end pagexxxxxside z', sysdate + interval of second '6');
insert into mette_interval values (2, 'page xxx z', sysdate + interval of second '0');
insert into mette_interval values (2, 'yyyy z page', sysdate + interval '10' sec);
insert into mette_interval values (3, 'page some z', sysdate + interval of second '1');

Select session_i, (max (url_time) - min (url_time)) * 24 * 60 * 60 duration
of mette_interval
Session_i group;

Can you give me a hint?

Concerning
Mette
SQL> select * from mette_interval;

 SESSION_I URL                  URL_TIME
---------- -------------------- ---------
         1 start page           24-MAR-09
         1 xxxxside z           24-MAR-09
         1 end pagexxxxxside z  24-MAR-09
         2 page xxx z           24-MAR-09
         2 page yyyy z          24-MAR-09
         3 page whatever z      24-MAR-09

6 rows selected.

SQL> select session_i,(max(url_time)-min(url_time))*24*60*60 duration,
  2        max(url) keep(dense_rank first order by url_time) frst,
  3        max(url) keep(dense_rank last order by url_time) lst
  4   from mette_interval
  5   group by session_i;

 SESSION_I   DURATION FRST                 LST
---------- ---------- -------------------- --------------------
         1          6 start page           end pagexxxxxside z
         2         10 page xxx z           page yyyy z
         3          0 page whatever z      page whatever z

Too late...

Published by: JAC on March 24, 2009 12:38

Tags: Database

Similar Questions

  • Names of participants blackBerry Smartphones meeting (first, last vs. last, first)

    Updated to 4.6 DM, and now Outlook meetings (with the participants) remains in line with harm during synchronization with my 8310.  I have synced several times, and it maintains see these different between Outlook and your handheld.  The ONLY difference seems to be the order of the names of participants (first, last vs. last, first).

    How can I fix it?    Thank you

    As with most of the problems, you will need to dig a little deeper.  Here's how I solved it:

    (1) under Options/language there is a setting for the display name.  I changed it to "First name" "Last, first".

    (2) but then I've always had some problems so I examined the difference in names more in detail (by cut and paste to WORD and then comparing the documents).   Here is the ROOT of the problem:

    • Several of the guests at the meetings were invited by third parties in Outlook
    • I have several of my names of colleagues, phone numbers and the email addresses in my phone Contact list - but not everyone in the company.
    • There are several cases where people in the Outlook e-mail database name was DIFFERENT then how I was entered in their names in my phone.   If (for example) Robert Jones was in my phone: Bob Jones - but the email addresses are the same of course.
    • Apparently with this version of DM (and I've also updated my phone to 4.5.0.81) emails AND THE NAMES are compared and MUST BE IDENTICAL.

    The solution was to compare it and then change my Outlook Contact file so that the names are the same as in the corporate e-mail system superior, including initial and same averages the number of spaces between the names!

    Once I did, the problem disappeared.   Thought I'd document it here, because someone else may have the same problem.  This did not appear until I upgraded to 4.6 DM.

  • mark the first value of a group

    I get the following
    16:57:28 >r
      1  with my_table as
      2       (
      3      select 'M082012' pera, to_number(10584338) snr, to_number(10) pnr, 'Beule' name, 'Anna' f_name from dual union all
      4      select 'M092012' pera, to_number(15965177) snr, to_number(15) pnr, 'Tester' name, 'Toni' f_name from dual union all
      5      select 'M082012' pera, to_number(14254501) snr, to_number(20) pnr, 'Wallen' name, 'Monika' f_name from dual union all
      6      select 'M082012' pera, to_number(10584339) snr, to_number(10) pnr, 'Beule' name, 'Anna' f_name from dual union all
      7      select 'M092012' pera, to_number(15965178) snr, to_number(10) pnr, 'Beule' name, 'Anna' f_name from dual union all
      8      select 'M012013' pera, to_number(10674833) snr, to_number(15) pnr, 'Tester' name, 'Toni' f_name from dual union all
      9      select 'M012013' pera, to_number(10674834) snr, to_number(15) pnr, 'Tester' name, 'Toni' f_name from dual union all
     10      select 'M012013' pera, to_number(10539210) snr, to_number(30) pnr, 'Klose' name, 'Werner' f_name from dual union all
     11      select 'M012013' pera, to_number(12345678) snr, to_number(50) pnr, 'Meier' name, 'Otto' f_name from dual union all
     12      select 'M012013' pera, to_number(22345789) snr, to_number(50) pnr, 'Meier' name, 'Otto' f_name from dual union all
     13      select 'M082012' pera, to_number(10584346) snr, to_number(77) pnr, 'Carl' name, 'Frank' f_name from dual union all
     14      select 'M062012' pera, to_number(10550971) snr, to_number(77) pnr, 'Carl' name, 'Frank' f_name from dual union all
     15      select 'M092012' pera, to_number(15965185) snr, to_number(77) pnr, 'Carl' name, 'Frank' f_name from dual union all
     16      select 'M082012' pera, to_number(10584352) snr, to_number(50) pnr, 'Meier' name, 'Otto' f_name from dual union all
     17      select 'M092012' pera, to_number(15965191) snr, to_number(80) pnr, 'Duster' name, 'Hucke' f_name from dual)
     18  select case when pera = 'M012013' then '*' end mark,
     19         pera, snr, pnr, name, f_name
     20  from (
     21        select pera, snr, pnr, name, f_name,
     22               max(case when pera = 'M012013' then 'Y' end)
     23                 over(partition by upper(name||f_name)) m_flag,
     24               count(*) over(partition by upper(name||f_name)) cnt
     25        from my_table
     26       )
     27  where m_flag = 'Y'
     28  and cnt > 1
     29* order by 4,5,6, to_number(substr(pera,4,4)||substr(pera,2,2)) desc
    
    MARK  PERA           SNR        PNR NAME   F_NAME
    ----- ------- ---------- ---------- ------ ------
    *     M012013   10674834         15 Tester Toni
    *     M012013   10674833         15 Tester Toni
          M092012   15965177         15 Tester Toni
    *     M012013   22345789         50 Meier  Otto
    *     M012013   12345678         50 Meier  Otto
          M082012   10584352         50 Meier  Otto
    I would like to mark only the first value in the group with an asterisk as follows.
    MARK  PERA           SNR        PNR NAME   F_NAME
    ----- ------- ---------- ---------- ------ ------
    *     M012013   10674834         15 Tester Toni
          M012013   10674833         15 Tester Toni
          M092012   15965177         15 Tester Toni
    *     M012013   22345789         50 Meier  Otto
          M012013   12345678         50 Meier  Otto
          M082012   10584352         50 Meier  Otto

    Perhaps this example might be useful for you. the code uses the same code that you published with additional analytical query to return the row grouping for the name, the NRP and columns pera. then use that line number to determine which will be placed at the first mark.

    SQL>   with my_table as
      2         (
      3        select 'M082012' pera, to_number(10584338) snr, to_number(10) pnr, 'Beule' name, 'Anna' f_name from dual union all
      4        select 'M092012' pera, to_number(15965177) snr, to_number(15) pnr, 'Tester' name, 'Toni' f_name from dual union all
      5        select 'M082012' pera, to_number(14254501) snr, to_number(20) pnr, 'Wallen' name, 'Monika' f_name from dual union all
      6        select 'M082012' pera, to_number(10584339) snr, to_number(10) pnr, 'Beule' name, 'Anna' f_name from dual union all
      7        select 'M092012' pera, to_number(15965178) snr, to_number(10) pnr, 'Beule' name, 'Anna' f_name from dual union all
      8        select 'M012013' pera, to_number(10674833) snr, to_number(15) pnr, 'Tester' name, 'Toni' f_name from dual union all
      9        select 'M012013' pera, to_number(10674834) snr, to_number(15) pnr, 'Tester' name, 'Toni' f_name from dual union all
     10        select 'M012013' pera, to_number(10539210) snr, to_number(30) pnr, 'Klose' name, 'Werner' f_name from dual union all
     11        select 'M012013' pera, to_number(12345678) snr, to_number(50) pnr, 'Meier' name, 'Otto' f_name from dual union all
     12        select 'M012013' pera, to_number(22345789) snr, to_number(50) pnr, 'Meier' name, 'Otto' f_name from dual union all
     13        select 'M082012' pera, to_number(10584346) snr, to_number(77) pnr, 'Carl' name, 'Frank' f_name from dual union all
     14        select 'M062012' pera, to_number(10550971) snr, to_number(77) pnr, 'Carl' name, 'Frank' f_name from dual union all
     15        select 'M092012' pera, to_number(15965185) snr, to_number(77) pnr, 'Carl' name, 'Frank' f_name from dual union all
     16        select 'M082012' pera, to_number(10584352) snr, to_number(50) pnr, 'Meier' name, 'Otto' f_name from dual union all
     17        select 'M092012' pera, to_number(15965191) snr, to_number(80) pnr, 'Duster' name, 'Hucke' f_name from dual)
     18    select case when pera = 'M012013' and rn = 1 then '*' end mark,
     19           pera,
     20           snr,
     21           pnr,
     22           name,
     23           f_name
     24      from (select pera, snr, pnr, name, f_name,
     25                   row_number() over (partition by pera, pnr, name, f_name order by pera, pnr, name) rn
     26              from (select pera, snr, pnr, name, f_name,
     27                           max(case when pera = 'M012013' then 'Y' end)
     28                           over(partition by upper(name||f_name)) m_flag,
     29                           count(*) over(partition by upper(name||f_name)) cnt
     30                      from my_table)
     31                     where m_flag = 'Y'
     32                       and cnt > 1
     33             order by 4,5,6, to_number(substr(pera,4,4)||substr(pera,2,2)) desc)
     34    order by 4,5,6, to_number(substr(pera,4,4)||substr(pera,2,2)) desc;
    
    MARK PERA           SNR        PNR NAME   F_NAME
    ---- ------- ---------- ---------- ------ ------
    *    M012013   10674834         15 Tester Toni
         M012013   10674833         15 Tester Toni
         M092012   15965177         15 Tester Toni
    *    M012013   22345789         50 Meier  Otto
         M012013   12345678         50 Meier  Otto
         M082012   10584352         50 Meier  Otto
    
    6 rows selected
    
    SQL> 
    
  • Select records of first and the last in the Group results - Oracle 11 g

    I have the following information in the Oracle 11 g table:

    Qty.Production orderDate and time
    200000000000000000112 JANUARY 14 00:02
    200000000000000000112 JANUARY 14 00:05
    200000000000000000112 JANUARY 14 00:07
    2000000000000000001JANUARY 13, 14 00:09
    300000000000000000212 JANUARY 14 00:11
    3000000000000000002JANUARY 12/14 00:15
    300000000000000000212 JANUARY 14 00:20
    300000000000000000214 JANUARY 14 00:29

    I here to write a query that returns the following:

    Qty.Production orderFirstLast
    800000000000000000112 JANUARY 14 00:02JANUARY 13, 14 00:09
    1200000000000000000212 JANUARY 14 00:1114 JANUARY 14 00:29

    Is the sum of the Qty. grouping column by Production order and the time of the first and last records for each Production order .

    I came up with a query that gave this result:

    Qty.Production orderFirstLast
    800000000000000000112 JANUARY 14 00:0214 JANUARY 14 00:29
    1200000000000000000212 JANUARY 14 00:0214 JANUARY 14 00:29

    Wwhich means that the and last columns show the first and last date / time the whole table. Please note that there is a shadow table. Sorry, I am now allowed to write the actual query

    , I came with given work policies don't allow me to share. Also, I tried with windowing functions such as rank()and row_number() but my user has not enough privileges to do so.

    Help or advice will be greatly appreciated.

    Due to the fact that Oracle does not have the lines in a particular order, it would be wrong that the first 'date' would be the first line to be processed by the query.

    So, you will need to provide another column if you do not want to look at the table as ordered by date.

    Any analytic function must also allows you to provide the 'to' and if that's the date, then just a simple query:

    SQL > WITH Tab1 (quantity, Production_Order, patch)

    2 ALSO (SELECT 20, '00000000000000001', TO_DATE (12 JANUARY 14 00:02 ', 'DD-MON-YY HH24') FROM DUAL UNION ALL)

    20. SELECT 3, '00000000000000001', TO_DATE (12 JANUARY 14 00:05 ', 'DD-MON-YY HH24') FROM DUAL UNION ALL

    4. SELECT 20, '00000000000000001', TO_DATE (12 JANUARY 14 00:07 ', 'DD-MON-YY HH24') FROM DUAL UNION ALL

    20. SELECT 5, '00000000000000001', TO_DATE (13 JANUARY 14 00:09 ', 'DD-MON-YY HH24') FROM DUAL UNION ALL

    6. SELECT 30, '00000000000000002', TO_DATE (12 JANUARY 14 00:11 ', 'DD-MON-YY HH24') FROM DUAL UNION ALL

    30 SELECT 7, '00000000000000002', TO_DATE (12 JANUARY 14 00:15 ', 'HH24 LUN-JJ-AA') OF ANY UNION DOUBLE

    8. SELECT 30, '00000000000000002', TO_DATE (12 JANUARY 14 00:20 ', 'DD-MON-YY HH24') FROM DUAL UNION ALL

    9 SELECT 30, '00000000000000002', TO_DATE (14 JANUARY 14 00:29 ', 'DD-MON-YY HH24') FROM DUAL)

    10. SELECT SUM (Qty), Production_Order, MIN (update), MAX (updated)

    11 OF Tab1

    GROUP of 12 BY Production_Order

    13 * ORDER BY Production_Order

    SQL > /.

    SUM (QTY) PRODUCTION_ORDER (PDATE) MIN MAX (PDATE)

    ---------- -------------------- ----------------------------- -----------------------------

    80 00000000000000001 12 January 2014 00:02:00 January 13, 2014 00:09:00

    120 00000000000000002 12 January 2014 00:11:00 January 14, 2014 00:29:00

  • Best way to details data and show of force only last result in Group

    Hi all! First, just let all the world know that it is a great place to explore and learn Oracle - I learned more here than I have in some classes. Come and explore the forums and looking for an answer lead me to the functions that I hadn't known otherwise existed.

    Here's what I'm trying to do now... Let's say I have a table that contains information about the family - if two or more persons associated with a family (determined by a separate table) then it should return the person identification and then the details of the group.

    For example, the following data are contained in two tables, the follow-up of current results and then the result, that I'm looking...
    PERSONS TABLE
    ----------------------
    PERSON         PERSON_ID           ADDRESS
    John Smith     101                     1 Oracle Drive
    Jane Smith     102                     1 Oracle Drive
    RELATIONSHIPS TABLE
    -----------------------------
    PERSON_ID      RELATEDPERSON_ID
    101                 102
    102                 101
    A simple query would result in the following text:
    WITH PERSONS AS
    (
      SELECT 'John Smith' AS person, 101 AS person_id, '101 Oracle Drive' AS address FROM dual union all
      SELECT 'Jane Smith', 102, '101 Oracle Drive' FROM dual
    )
    ,    RELATIONSHIPS AS
    (
      SELECT 101 AS person_id, 102 AS relatedperson_id FROM dual union all
      SELECT 102, 101 FROM dual
    )
    SELECT
        person
      , address
    FROM  PERSONS p
    JOIN  RELATIONSHIPS r ON r.person_id = p.person_id
    RESULT
    PERSON      ADDRESS
    John Smith      101 Oracle Drive
    Jane Smith      101 Oracle Drive
    I'm looking to produce the following result, but I do not know how... I am convinced that it is something simple.

    DESIRED RESULT
    PERSON      ADDRESS
    John Smith     
    Jane Smith      101 Oracle Drive
    Note that the address for members of the family is not displayed until the last member of the family is returned. It repeats this process for each family.

    Thank you all for any help you can provide! 31%

    Published by: nage62587 on October 16, 2012 20:20

    Hello

    nage62587 wrote:
    I did a lot of searching the forum and revised my question a bit hopefully make things a little clearer... I got a request Frank wrote and revised to meet my criteria.

    The forum search (and other places on the web) is great! Not only are you things, but the people on this forum are more likely to help you when they see you do everything you can.
    If you find something that you are trying to adapt, post a link to it. Seeing the correct way to adapt it can be very instructive.

    essentially, if I can determine which members of the family someone is, then I can create a unique "FAMILY_ID" for them - once I have that, it would seem that I could then use the FAMILY_ID to combine their addresses and other information.

    The problem I have is that if a RELATEDPERSON_ID is linked to a PERSON_ID (PERSON_ID related RELATEDPERSON_ID works very well), he attributes them a new FAMILY_ID, rather than include them in the correct family.

    Here is my sql

    WITH PERSONS AS
    (
    SELECT 'John Smith' AS person, 101 AS person_id, '1 Oracle Drive' AS address FROM dual union all
    SELECT 'Jane Smith', 102, '1 Oracle Drive' FROM dual union all
    SELECT 'Jack Smith', 103, '8 Oracle Drive' FROM dual union all
    SELECT 'John Doe', 104, '10 Oracle Drive' FROM dual union all
    SELECT 'Jane Doe', 105, '10 Oracle Drive' FROM dual union all
    SELECT 'Pete Smith', 106, '1 Oracle Drive' FROM dual
    )
    ,    RELATIONSHIPS AS
    (
    SELECT 101 AS person_id, 102 AS relatedperson_id FROM dual union all
    SELECT 102, 101 FROM dual union all
    SELECT 104, 105 FROM dual union all
    SELECT 105, 104 FROM dual union all
    SELECT 106, 101 FROM dual
    )
    , table_x
    AS
    (
    SELECT   person_id         AS col1
    ,        relatedperson_id  AS col2
    FROM     relationships
    )
    ,     got_relatives     AS
    (
         SELECT     col1
         ,     CONNECT_BY_ROOT col2     AS relative
         FROM     table_x
         CONNECT BY NOCYCLE     col1     =  col2
    OR  col2  =  col1
    )
    SELECT       col1
    ,       DENSE_RANK () OVER ( ORDER BY  MIN (relative)
    ) AS family_id
    FROM      got_relatives
    GROUP BY  col1
    

    I think the result is:

    COL1   FAMILY_ID
    -----   ----------
    102     1
    106     1
    101     1
    105     2
    104     2
    

    I suspect that whatever you copied originally had the FIRST keyword somewhere in the CONNECT BY clause.

    Here's a way to do what you want:

    WITH    all_relationships     AS
    (
         SELECT  person_id
         ,     relatedperson_id
         FROM     relationships
        UNION
         SELECT  relatedperson_id     AS person_id
         ,     person_id          AS relatedperson_id
         FROM     relationships
    )
    ,     got_relatives     AS
    (
         SELECT     CONNECT_BY_ROOT person_id     AS person_id
         ,     relatedperson_id
         FROM     all_relationships
         CONNECT BY NOCYCLE     person_id       = PRIOR relatedperson_id
                 OR          relatedperson_id  = PRIOR person_id
    )
    ,     got_family_id     AS
    (
         SELECT       person_id
         ,       MIN (relatedperson_id)     AS family_id
         ,       ROW_NUMBER () OVER ( PARTITION BY  MIN (relatedperson_id)
                                      ORDER BY          person_id     DESC
                                    )            AS r_num
         FROM       got_relatives
         GROUP BY  person_id
    )
    SELECT       p.person
    ,       CASE
               WHEN  f.r_num  = 1
               THEN  p.address
           END          AS address
    ,       p.person_id
    ,       f.family_id
    FROM       got_family_id  f
    JOIN       persons      p  ON  p.person_id  = f.person_id
    ORDER BY  family_id
    ,            person_id
    ;
    

    Output:

    PERSON     ADDRESS          PERSON_ID  FAMILY_ID
    ---------- --------------- ---------- ----------
    John Smith                        101        101
    Jane Smith                        102        101
    Pete Smith 1 Oracle Drive         106        101
    John Doe                          104        104
    Jane Doe   10 Oracle Drive        105        104
    

    Obviously, you don't have to see all the columns, I posted above in your first post, you said you wanted only person and address. In your last message, you said you wanted only person_id and family_id. change the SELECT main clause just as you wish.

    I used the lowest person_id in each family as the family_id. You can use DENSE_RANK if you really want to have families numbered 1, 2, 3,..., but I suspect that you really care what family_id, as long as all the members of the family have the same value.

    Table of relationship a you certain symmetrical, such as relationships

    SELECT 104, 105 FROM dual union all
    SELECT 105, 104 FROM dual union all
    

    and a few asymmetric relations. For example, the only relationship involving person_id = 106 is

    SELECT 106, 101 FROM dual
    

    in other words, there is no line of mirror-image:

    -- SELECT 101, 106 FROM dual union all   -- THIS IS NOT IN THE SAMPLE DATA
    

    I guess it didn't matter to that. As long as 101 and 106 appear on the same line, they are in the same family, regardless of the person_id and which is the relatedperson_id.
    The first thing I did above was therefore to ensure that all lines of the mirror-image were represented. This is what all_relationships does.
    The following subquery, got_relatives, is probably what you mean to adapt, but you let him operators PREREQUISITES.
    Got_family_id does the grouping and also calculates r_num to determine which is the last member of the family. Address of this member of the family only will be displayed in the main query.
    You could combine got_family_id and the main request; you don't need really a subquery for this. It would be a little less coding, but I wrote it that way because I think it's a little easier to understand and maintain.

  • IMAQ edge tool 2 'first + last edge' - returns the position of the first border

    I use 'IMAQ edge tool 2.vi' with the whole process in order to detect the 'first and last edge. It is obvious to edge coordinates the infromation seeing that it returns only a single point. Where are the coordinates of the last edge detection?

    Note: it detects the edges along the long green horizontal line, so there's at least 2 edges definitevely.

    Thanks for the tips.

    Martin

    Hey Martin,

    This may sound silly, but what happens if you scroll down to the following entry in your cluster? Currently, you can view information for your benefit '0' on the front panel. What happens if you are indexing at the edge '1' of your cluster and therefore see the information on the second edge. Is the cluster of empty when you look at the 'zero' edge? If it is, perhaps, the parameters of your step edge find are too strict and the step does not come back on a second advantage.

    If the problem persists, maybe post your vi sample and a sample picture will help clear things upward.

    I hope this helps!

    -Ben

  • Last feature via Group Policy user logon

    I understand how to turn off the last user logon feature is via group policy if I wanted users to always have to type their user name and passwords by logging into Windows XP or Windows 7 workstations.
    What I really want to do if I can, is to allow the possibility for the user assigned to the specific workstation to always display their username when they sign in, but if I connect the SysAdmin, I don't want them to see this.
    So, if I work on their workstations, then logoff or restart, I want for their username to remember and displays not only mine.
    Is there a way to do this?

    Hello

    I suggest you to ask your question at the following link.

    http://social.technet.Microsoft.com/forums/en-us/w7itprosecurity/threads

  • FIRST, LAST, COUNTY collection

    Hello

    I need to know how these values are coming to Arry.FIRST, Arry.LAST and Arry.COUNT.

    SQL > DECLARE

    Arry_t TYPE 2 IS the TABLE OF THE PLS_INTEGER;

    3 Arry Arry_t: = Arry_t();

    4 BEGIN

    5. FOR i IN 1.10 LOOP

    6 Arry.EXTEND (i + 3);

    7 Arry(i+3): = - 100 + 2 * i;

    8 END OF LOOP;

    9 DBMS_OUTPUT. Put_line ("FIRST value" |) Arry.FIRST);

    10 DBMS_OUTPUT. Put_line (' LAST value ' |) Arry.LAST);

    11 DBMS_OUTPUT. Put_line (' COUNT value ' |) Arry.COUNT);

    12 DBMS_OUTPUT. Put_line ("FIRST value" |) Arry.FIRST);

    13. FOR I IN 1.10 LOOP

    14 DBMS_OUTPUT. Put_line (' value to the index ' |) I |' is ' | Arry (i));

    15 END LOOP;

    16 END;

    17.

    FIRST value 1

    LAST value 85

    Value of COUNT 85

    Value at index 1 is

    Value at index 2 is

    Value at index 3 is

    Value at index 4 is - 98

    Value at index 5 is - 96

    Value at index 6 is - 94

    Value at index 7 is - 92

    8 index value is - 90

    Value at index 9 is - 88

    Value to the index 10 is - 86

    PL/SQL procedure successfully completed.

    Arry.FIRST should be 4, Arry.LAST and COUNT must be 10 and 7 respectively. So how is it random values are to come.

    Hello

    When you create arry, its NUMBER is 0.

    Then you throw in the loop (beginning on line 5) 10 times.

    When the 1st time in the loop, I = 1, you add 1 + 3 = 4 points and put the 1 + 3 = a 4th.

    The 2nd time in the loop, when I = 2, you add 2 + 3 = 5 points more and put the 2 + 3 = 5.

    When the 3rd time in the loop, I = 3, you add 3 + 3 = 6 points more and put the 3 + 3 = 6 a.

    ...

    The 10th time through the loop, when I = 10, you add 10 + 3 = 13 points more and set them 10 + 3 = a 13th.

    The other inputs (i.e., 1-3 and 14-85) never get assigned to all values.

    4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 = 85.

  • My address book in v. 32.0 will not sort correctly for example by first, last, etc. ; How can I fix this?

    My address book has 106 names. I selected to sort by ascending by display name. But it will not fully sort this way; on the contrary, the names appear as lots, within each of them, sorting is (mostly) correct. When I click on the name above, sort allows to switch between ascendants and descendants, as expected, but the change occurs within each batch apparent rather than global. Also, it seems that in 1 or several lots, the display name is not what I chose, for example first, change or display.

    In other words, display is a long list of names, but it's really defined names, which are treated as such. I want to be in a 'set' and properly sorted as such.

    If I understand correctly, modules include different ways to add functionality to Thunderbird. They are Extensions, themes and Plugins. So, you could say that the lightning is a part of the extension of a wider selection of modules.

  • Problem with sound in the ProRes files on first last, CC on 10 to win

    Hello, I've updated my CC Pro first to the latest version on my Windows 10 PC. Since then, I have a problem with the sound in ProRes files recorded with recorder Odyssey 7 q. My first reads the file and it detects sound only partially (in each file it our times of 2-3 seconds of silence, followed by its normal).

    It happens only on my first on Windows. On my MacBook with the same version of first, everything works fine. Apart from the first, I play Prores files successfully on my windows (with sound).

    You know all the solutions to this problem? I tried to reinstall codec first and Quicktime on my PC. Thanks in advance for the help.

    Convergent Design and Adobe are aware of the problem and working on a fix.  You need to roll back to 2015.3 for the moment.

  • Differences in the performance of nividia geforce gtx 860, 870, 880 first last on

    Hello guys, I'm about to pass a big load of money on a new laptop and I was wondering how high the power difference of performance between geforce gtx 860 to 870 880 on the latest edition of the first's. It's really the question of the difference in price of about 800 euros, so before decide me on this matter, I would really like to know if it is worth. Once again: there will be a considerable advantage to work first with the geforce 880 or 870 as opposed to 860?

    Hope someone can help me here. Thank you

    See the compatibility list first. I don't see any of the three top! They CAN work, and I think that these are more recent model processors that are specifically designed for CUDA.

    Don't know all about laptops, but on the desktop the other variable (which you don't mention) is the amount of RAM on the video card itself. 800 euros is a huge difference; If the RAM is the same, and all three are on the list of compatibility for playback of mercury, I don't know that you can justify the difference. If the RAM is 1 GB on the cheapest and 4 or 6 on the most expensive, it's a different calculation.

    I speculate that the differences between these three cards would be more apparent to players for video editors, but that's just my opinion... what makes the difference in the first is the fact that transcode the video RAM made and perceived effect much faster as the RAM system can, and to do so effectively, it takes like RAM video as much as possible. I think it's the number you want to watch, rather than 860 vs 870 or 880.

  • the index of the first/last numerical value

    Hello

    I want to find the index of the first numeric value in a string. I can do this by using built-in features of Oracle? (Without creating a new function)

    I want to find the index of the first numeric value in a string

    regexp_instr could do (for the first digit):

    SQL> select regexp_instr('abc1def2', '\d') first_digit from dual
    /
    FIRST_DIGIT
    -----------
              4
    1 row selected.
    
  • Find first & last day of the week of the given date

    Hi all

    I have the input query, below

    WITH TEM AS (SELECT 11 January 13 ' DT dual union SELECT June 16, 12 'from dual union SELECT 4 July 12' dual Union SELECT 9 January 13 'from dual union SELECT 10 January 13' dual Union SELECT 4 January 13 'from dual union SELECT 7 January 13' from dual union SELECT 4 June 13 'from dual union SELECT 8 January 13' double) TO_DATE (DT) SELECT D1 ,' WEEK ' | To_char (to_date (DT), 'IW-YYYY') tem WK;

    I would like to get output that is below start date week (Saturday) & the end of the week (Friday)

    DTPeriod of the WEEKMax Date in this weekMin Date this week
    June 16, 12WEEK 24-2012June 16, 1222 June 12
    July 4, 12WEEK 27-201230 June 12July 6, 12
    January 4, 13WEEK 01-2013January 4, 1329 December 12
    January 7, 13WEEK 02-20135 January 13January 11, 13
    January 8, 13WEEK 02-20135 January 13January 11, 13
    January 9, 13WEEK 02-20135 January 13January 11, 13
    January 10, 13WEEK 02-20135 January 13January 11, 13
    January 11, 13WEEK 02-20135 January 13January 11, 13
    June 4, 13WEEK 23-20131 June 13June 7, 13

    Indicate also if a function available in oracle for this one.

    Like this? I think in your required output, 3rd line data, MAX_DATE should be 29 December 12 and MIN_DATE should be January 4, 13.

    WITH TEM AS

    (SELECT 11 January 13 ' DT double Union)

    SELECT 16 June 12 ' Union double

    SELECT 4 July 12 ' Union double

    SELECT January 9, 13 ' Union double

    SELECT 10 January 13 ' Union double

    SELECT 4 January 13 ' Union double

    SELECT January 7, 13 ' Union double

    SELECT 4 June 13 ' Union double

    SELECT 8 January 13 ' double)

    SELECT D1 DT,

    WK WEEK_PERIOD,

    BOX WHEN (TRIM (TO_CHAR (D1, 'DAY')) = 'SATURDAY') THEN D1

    ANOTHER NEXT_DAY(D1,'SATURDAY')-7

    END AS MAX_DATE_IN_THIS_WEEK,

    BOX WHEN (TRIM (TO_CHAR (D1, 'DAY')) = 'FRIDAY') THEN D1

    OF OTHER NEXT_DAY(D1,'FRIDAY') END AS MIN_DATE_IN_THIS_WEEK

    DE)

    SELECT TO_DATE (DT) D1,' WEEK ' | To_char (to_date (DT), 'IW-YYYY') tem WK)

    ORDER BY DT;

    OUTPUT:

    DT WEEK_PERIOD MAX_DATE_ MIN_DATE_

    --------- ------------ --------- ---------

    JUNE 16, 12 WEEK 24-2012 16 JUNE 12 22 JUNE 12

    4 JULY 12 WEEK 27-2012 JUNE 30, 12 6 JULY 12

    4 JANUARY 13 WEEK 01-2013 29 DECEMBER 12 JANUARY 4, 13

    JANUARY 7, 13 WEEK 02-2013, JANUARY 5, 13 JANUARY 11, 13

    JANUARY 8, 13 WEEK 02-2013, JANUARY 5, 13 JANUARY 11, 13

    JANUARY 9, 13 WEEK 02-2013, JANUARY 5, 13 JANUARY 11, 13

    10 JANUARY 13 WEEK 02-2013, JANUARY 5, 13 JANUARY 11, 13

    JANUARY 11, 13 WEEK 02-2013, JANUARY 5, 13 JANUARY 11, 13

    4 JUNE 13 WEEK 23-2013, JUNE 1, 13 JUNE 7, 13

    9 selected lines.

  • It is possible to select more than one layer by selecting the first and the last layers?

    I frequently get Illustrator files which are individual objects such as the paths on separate layers that can be grouped together to make the shorter layers. I find that I have to change click on each individual layer to select it to finally bring together them. Sometimes, I have 25 or so layers that I need to select. Is there a way to select the first and the last layer in the layers palette and have Illustrator select all the layers in the meantime?

    Don't know about the selection of layers of first/last, but to select several consecutive layers in the layers palette...

    Option-click on (Mac) on a layer to select it and, with the option always pressed key, drag to the bottom of the list - DO NOT slip on as logical target icons you like.  When you drag to the bottom of the list of layers, the icons of the target will become selected.

    Shift + Option-click allows you to ignore the layers and continue to select consecutive additional layers on the bottom of the palette.

    Note: Drag slowly or some layers would not choose.

    Strange, I know.  It took me years to come across this.

  • First day/last day of each month

    Hello
    y at - it sql/script to get the first day/last day of each month.new to bi do not know the syntax

    If a point on the link to get these things will be highly appreciated

    Hello
    I suggest that you go through the following link

    (1) http://oracle.ittoolbox.com/groups/technical-functional/oracle-bi-l/obiee-date-comparison-1726677#M1729534

    Toget first/last day of the month

    (2) http://www.obinotes.com/2010/02/tip-to-get-firstday-lastday.html

    New to OBIEE---> http://obiee101.blogspot.com/2009/07/obiee-how-to-get-started.html

    Thank you
    Saichand.V

Maybe you are looking for