Hu is related to undershipment and count over ?

Hi everyone ,
  Can anyone tell me how HU is related to undershipment and count over ?

Did you try a reset? Hold down on the sleep and home buttons at the same time until the Apple logo appears on the screen, then let go of the buttons.

Similar Messages

  • ICloud keeps adding same contact over and over. How do I stop it? 4,600 duplicates in less than 24 hours and counting.

    I added a contact on my Mac Mini yesterday and it keeps adding the same contact over and over.. up to 4,600 duplicates and counting.. How do I stop it?
    Here was the exact sequence.
    1. Added a contact in Contacts.app on my Mac running OSX Mavericks 10.9
    2. Contact was added to Contacts.app successfully.
    3. Noticed only one contact in Contacts.app on Mac.
    4. Opened Contacts on my iPhone 5S running 7.0.4 and searched for contact.
    5. Noticed duplicates in Contacts on my iPhone 5S.
    6. Looked at Contacts.app on Mac, Still only one.
    7. Checked iPhone again, noticed several more contacts added and the data spin icon working in the status bar and more being added as I was watching.
    8. Opened icloud via web browser, noticed same thing in the Contacts section.
    9. Shutdown, Mac (thinking there was a bit of code open ended code)
    10. turned off all iCloud Contacts on all iOS devices linked to this icloud account.
    11. Less than 24 hours later... 4,600++ duplicate contacts in icloud and counting.
    12. As I am writing this I deleted icloud from my mac.. thinking this is the bug's origination point.
    what's next??

    Step 12 Stopped the duplicate contact.
    Deleted iCloud from my Mac. Hope this helps someone.

  • Is over 400 hours (and counting) normal for iTunes to authenticate an iBook?

    Is over 400 hours (and counting) normal for iTunes to authenticate an iBook before uploading to iBooks store? Does the size of the document make a difference?
    Any help or advice greatly appreciated.
    Thanks

    OK, by coincidence this  happened to me just  yesterday as I was updating  a book, I   was doing other things and  noticed after about an  hour  it was still  showing loading lines.
    Its locked up somewhwere and  I just closed/ force close if needed.. and started the delivery process again.
    This time it  took 20 minutes or so which was what I expected.
    If it  happens a second time, try starting the  Publish from within iBA, but  first  check the  xxxxxxx.itmsp number and  check if it issues a new xxxxx.itmsp, if it does.. delete the old one to avoid confusion.

  • [Mostly Sorted] Extracting tags - regexp_substr and count help needed!

    My original query got sorted, but additional regexp_substr and count help is required further on down!
    Hi,
    I have a table on a 10.2.0.3 database which contains a clob field (sql_stmt), with contents that look something like:
    SELECT <COB_DATE>, col2, .... coln
    FROM   tab1, tab2, ...., tabn
    WHERE tab1.run_id = <RUNID>
    AND    tab2.other_col = '<OTHER TAG>'(That's a highly simplified sql_stmt example, of course - if they were all that small we'd not be needing a clob field!).
    I wanted to extract all the tags from the sql_stmt field for a given row, so I can get my (well not "mine" - I'd never have designed something like this, but hey, it works, sorta, and I'm improving it as and where I can!) pl/sql to replace the tags with the correct values. A tag is anything that's in triangular brackets (eg. <RUNID> from the above example)
    So, I did this:
    SELECT     SUBSTR (sql_stmt,
                       INSTR (sql_stmt, '<', 1, LEVEL),
                       INSTR (substr(sql_stmt, INSTR (sql_stmt, '<', 1, LEVEL)), '>', 1, 1)
                       ) tag
    FROM       export_jobs
    WHERE      exp_id =  p_exp_id
    CONNECT BY LEVEL <= (LENGTH (sql_stmt) - LENGTH (REPLACE (sql_stmt, '<')))Which I thought would be fine (having tested it on a text column). However, it runs very poorly against a clob column, for some reason (probably doesn't like the substr, instr, etc on the clob, at a guess) - the waits show "direct path read".
    When I cast the sql_stmt as a varchar2 like so:
    with my_tab as (select cast(substr(sql_stmt, instr(sql_stmt, '<', 1), instr(sql_stmt, '>', -1) - instr(sql_stmt, '<', 1) + 1) as varchar2(4000)) sql_stmt
                    from export_jobs
                    WHERE      exp_id = p_exp_id)
    SELECT     SUBSTR (sql_stmt,
                       INSTR (sql_stmt, '<', 1, LEVEL),
                       INSTR (substr(sql_stmt, INSTR (sql_stmt, '<', 1, LEVEL)), '>', 1, 1)
                       ) tag
    FROM       my_tab
    CONNECT BY LEVEL <= (LENGTH (sql_stmt) - LENGTH (REPLACE (sql_stmt, '<')))it runs blisteringly fast in comparison, except when the substr'd sql_stmt is over 4000 chars, of course! Using dbms_lob instr and substr etc doesn't help either.
    So, I thought maybe I could find an xml related method, and from this link:get xml node name in loop , I tried:
    select t.column_value.getrootelement() node
      from (select sql_stmt xml from export_jobs where exp_id = 28) xml,
    table (xmlsequence(xml.xml.extract('//*'))) tBut I get this error: ORA-22806: not an object or REF. (It might not be the way to go after all, as it's not proper xml, being as there are no corresponding close tags, but I was trying to think outside the box. I've not needed to use xml stuff before, so I'm a bit clueless about it, really!)
    I tried casting sql_stmt into an xmltype, but I got: ORA-22907: invalid CAST to a type that is not a nested table or VARRAY
    Is anyone able to suggest a better method of trying to extract my tags from the clob column, please?
    Message was edited by:
    Boneist

    I don't know if it may work for you, but I had a similar activity where I defined sql statements with bind variables (:var_name) and then I simply looked for witch variables to bind in that statement through this query.
    with x as (
         select ':var1
         /*a block comment
         :varname_dontcatch
         select hello, --line comment :var_no
              ''a string with double quote '''' and a :variable '',  --:variable
              :var3,
              :var2, '':var1'''':varno'',
         from dual'     as string
         from dual
    ), fil as (
         select string,
              regexp_replace(string,'(/\*[^*]*\*/)'||'|'||'(--.*)'||'|'||'(''([^'']|(''''))*'')',null) as res
         from x
    select string,res,
         regexp_substr(res,'\:[[:alpha:]]([[:alnum:]]|_)*',1,level)
    from fil
    connect by regexp_instr(res,'\:[[:alpha:]]([[:alnum:]]|_)*',1,level) > 0
    /Or through these procedures
         function get_binds(
              inp_string in varchar2
         ) return string_table
         deterministic
         is
              loc_str varchar2(32767);
              loc_idx number;
              out_tab string_table;
         begin
              --dbms_output.put_line('cond = '||inp_string);
              loc_str := regexp_replace(inp_string,'(/\*[^*]*\*/)'||'|'||'(--.*)'||'|'||'(''([^'']|(''''))*'')',null);
              loc_idx := 0;
              out_tab := string_table();
              --dbms_output.put_line('fcond ='||loc_str);
              loop
                   loc_idx := regexp_instr(loc_str,'\:[[:alpha:]]([[:alnum:]]|_)*',loc_idx+1);
                   exit when loc_idx = 0;
                   out_tab.extend;
                   out_tab(out_tab.last) := regexp_substr(loc_str,'[[:alpha:]]([[:alnum:]]|_)*',loc_idx+1);
              end loop;
              return out_tab;
         end;
         function divide_string (
              inp_string in varchar2
              --,inp_length in number
         --return string_table
         return dbms_sql.varchar2a
         is
              inp_length number := 256;
              loc_ind_1 pls_integer;
              loc_ind_2 pls_integer;
              loc_string_length pls_integer;
              loc_curr_string varchar2(32767);
              --out_tab string_table;
              out_tab dbms_sql.varchar2a;
         begin
              --out_tab := dbms_sql.varchar2a();
              loc_ind_1 := 1;
              loc_ind_2 := 1;
              loc_string_length := length(inp_string);
              while ( loc_ind_2 < loc_string_length ) loop
                   --out_tab.extend;
                   loc_curr_string := substr(inp_string,loc_ind_2,inp_length);
                   dbms_output.put(loc_curr_string);
                   out_tab(loc_ind_1) := loc_curr_string;
                   loc_ind_1 := loc_ind_1 + 1;
                   loc_ind_2 := loc_ind_2 + length(loc_curr_string);
              end loop;
              dbms_output.put_line('');
              return out_tab;
         end;
         function execute_statement(
              inp_statement in varchar2,
              inp_binds in string_table,
              inp_parameters in parametri
         return number
         is
              loc_stat dbms_sql.varchar2a;
              loc_dyn_cur number;
              out_rows number;
         begin
              loc_stat := divide_string(inp_statement);
              loc_dyn_cur := dbms_sql.open_cursor;
              dbms_sql.parse(c => loc_dyn_cur,
                   statement => loc_stat,
                   lb => loc_stat.first,
                   ub => loc_stat.last,
                   lfflg => false,
                   language_flag => dbms_sql.native
              for i in inp_binds.first .. inp_binds.last loop
                   DBMS_SQL.BIND_VARIABLE(loc_dyn_cur, inp_binds(i), inp_parameters(inp_binds(i)));
                   dbms_output.put_line(':'||inp_binds(i)||'='||inp_parameters(inp_binds(i)));
              end loop;
              dbms_output.put_line('');
              --out_rows := DBMS_SQL.EXECUTE(loc_dyn_cur);
              DBMS_SQL.CLOSE_CURSOR(loc_dyn_cur);
              return out_rows;
         end;Bye Alessandro
    Message was edited by:
    Alessandro Rossi
    There is something missing in the functions but if there is something that may interest you you can ask.

  • SSRS report with tabular model – MDX query how to get the sum and count of measure and dimension respectively.

    Hello everyone,
    I am using the following MDX query on one of my SSRS report.
    SELECT NON EMPTY { [Measures].[Days Outstanding], [Measures].[Amt] } ON COLUMNS,
    NON EMPTY { ([Customer].[Customer].[Customer Key].ALLMEMBERS) }
    HAVING [Measures].[ Days Outstanding] > 60
    DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS
    FROM ( SELECT ( STRTOSET(@Location, CONSTRAINED)) ON COLUMNS
    FROM ( SELECT ( {[Date].[Fiscal Period].&[2014-06]}) ON COLUMNS
    FROM [Model]))
    Over here, the data is being filtered always for current month and for a location that is being selected by user from a report selection parameter.
    I would like to get the count of total no. of customers and sum of the amount measure.
    When I am using them in calculated members it gives incorrect values. It considers all records (ignores the sub-select statements) instead of only the records of current month and selected location.
    I also tried with EXISTING keyword in calculated members but there is not difference in output. Finally, I manage the same at SSRS level.
    Can anybody please advise what are the ways to get the required sum of [Measures].[Amt] and count of [Customer].[Customer].[Customer Key].ALLMEMBERS dimension?
    Also, does it make any difference if I manage it as SSRS level and not at MDX query level?
    Any help would be much appreciated.
    Thanks, Ankit Shah
    Inkey Solutions, India.
    Microsoft Certified Business Management Solutions Professionals
    http://www.inkeysolutions.com/MicrosoftDynamicsCRM.html

    Can anybody please advise what are the ways to get the required sum of [Measures].[Amt] and count of [Customer].[Customer].[Customer Key].ALLMEMBERS dimension?
    Also, does it make any difference if I manage it as SSRS level and not at MDX query level?
    Hi Ankit,
    We can use SUM function and COUNT function to sum of [Measures].[Amt] and count of [Customer].[Customer].[Customer Key].ALLMEMBERS dimension. Here is a sample query for you reference.
    WITH MEMBER [measures].[SumValue] AS
    SUM([Customer].[Customer].ALLMEMBERS,[Measures].[Internet Sales Amount])
    MEMBER [measures].[CountValue] AS
    COUNT([Customer].[Customer].ALLMEMBERS)
    MEMBER [Measures].[DimensionName] AS [Customer].NAME
    SELECT {[Measures].[DimensionName],[measures].[SumValue],[measures].[CountValue]} ON 0
    FROM [Adventure Works]
    Besides, you ask that does it make any difference if I manage it as SSRS level and not at MDX query level. I don't thinks it will make much difference. The total time to generate a reporting server report (RDL) can be divided into 3 elements:Time to retrieve
    the data (TimeDataRetrieval);Time to process the report (TimeProcessing);Time to render the report (TimeRendering). If you manage it on MDX query level, then the TimeDataRetrieval might a little longer. If you manage it on report level, then the TimeProcessing
    or TimeRendering time might a little longer. You can test it on you report with following query: 
    SELECT Itempath, TimeStart,TimeDataRetrieval + TimeProcessing + TimeRendering as [total time],
    TimeDataRetrieval, TimeProcessing, TimeRendering, ByteCount, [RowCount],Source
    FROM ExecutionLog3
    WHERE itempath like '%reportname'
    Regards,
    Charlie Liao
    TechNet Community Support

  • Guidance on use of "COUNT(*) OVER () * 5" in a select query.

    Hello Friends,
    I was reading one article, in which one table was created for demo. Following was the statements for there.
    CREATE TABLE source_table
    NOLOGGING
    AS
    SELECT ROWNUM AS object_id
    , object_name
    , object_type
    FROM all_objects;
    INSERT /*+ APPEND */ INTO source_table
    SELECT ROWNUM (COUNT(*) OVER () * 5)+ AS object_id
    , LOWER(object_name) AS object_name
    , SUBSTR(object_type,1,1) AS object_type
    FROM all_objects;
    INSERT /*+ APPEND */ INTO source_table
    SELECT ROWNUM (COUNT(*) OVER() * 10)+ AS object_id
    , INITCAP(object_name) AS object_name
    , SUBSTR(object_type,-1) AS object_type
    FROM all_objects;
    Can anyone please tell me the purpose of *"ROWNUM + (COUNT(*) OVER () * 5)"* in above 2 insert statements, or suggest me some document on that.
    I don't know about its usage, and want to learn that..
    Regards,
    Dipali..

    The insert statements that you have listed are using Oracle Analytic Functions. Some examples of these functions can be found here: [Oracle Analytic Functions|http://www.psoug.org/reference/analytic_functions.html|Oracle Analytic Functions]
    Effectively what that says is the following:
    1. "COUNT(*) OVER ()" = return the number of rows in the entire result set
    2. Multiply that by 5 (or 10 depending on the insert)
    3. Add the current ROWNUM value to it.
    This can be shown with a simple example:
    SQL&gt; edit
    Wrote file sqlplus_buffer.sql
      1  SELECT *
      2  FROM
      3  (
      4     SELECT ROWNUM r,
      5             (COUNT(*) OVER ()) AS ANALYTIC_COUNT,
      6             5,
      7             ROWNUM + (COUNT(*) OVER () * 5) AS RESULT
      8     FROM all_objects
      9  )
    10* WHERE r &lt;= 10
    SQL&gt; /
             R ANALYTIC_COUNT          5     RESULT
             1          14795          5      73976
             2          14795          5      73977
             3          14795          5      73978
             4          14795          5      73979
             5          14795          5      73980
             6          14795          5      73981
             7          14795          5      73982
             8          14795          5      73983
             9          14795          5      73984
            10          14795          5      73985
    10 rows selected.
    SQL&gt; SELECT COUNT(*) from all_objects;
      COUNT(*)
         14795Hope this helps!
    Note the the statements you provided will not actually execute because of the extra "+" signs on either side. I have removed them.

  • Counting Over Last 3500 appearances with Where Clause

    I'm Using Sql Server Studio 2014
    I have a Table containing the following columns:
    AutoId  Assembly_No  [Rank]   
    1          Assembly1       2
    2          Assembly2       1
    3          Assembly1       2
    4          Assembly1       1
    5          Assembly1       0
    6          Assembly2       2
    7          Assembly2       1
    I'm Trying to Run a query that Will count over the last 3500 times that a specific Assembly_No has been that has a rank > 0. For simplicity's sake we can use we can look at the last 2 times that an assembly has been ran. So the results that I'm expecting
    should look like this
    Assembly_NO   Count
    Assembly2        2
    Assembly1        1
    This resulted in assembly2 being counted twice for ids 6 and 7 and only once for ids 4 and 5 because only one rank was > 0. AutoID is an identity column so the most recent values will be determined using this number.
    The query below can count over all of the Assemblies ran, however I'm having trouble only counting over the last 2 for each assembly
    Select Assembly_No, Count(*) as Count
    From TblBuild
    Where Rank > 0
    Group By Assembly_No
    Returns the following 
    Assembly_no  Count
    Assembly2      3
    Assembly1      3

    Looks like this should return what you are expecting:
    --drop table #temp
    create table #temp
    autoid int,
    assembly_no nvarchar(10),
    rank_no int
    insert into #temp (autoid, assembly_no, rank_no) values (1, 'Assembly1', 2)
    insert into #temp (autoid, assembly_no, rank_no) values (2, 'Assembly2', 1)
    insert into #temp (autoid, assembly_no, rank_no) values (3, 'Assembly1', 2)
    insert into #temp (autoid, assembly_no, rank_no) values (4, 'Assembly1', 1)
    insert into #temp (autoid, assembly_no, rank_no) values (5, 'Assembly1', 0)
    insert into #temp (autoid, assembly_no, rank_no) values (6, 'Assembly2', 2)
    insert into #temp (autoid, assembly_no, rank_no) values (7, 'Assembly2', 1)
    select t.assembly_no, count(nullif(t.rank_no, 0))
    from #temp t
    inner join 
    select autoid, rank_no, row_number() over (partition by assembly_no order by autoid desc) as ct
    from #temp
    )x
    on x.autoid = t.autoid
    and x.ct <= 2
    group by t.assembly_no

  • Time Capsule with BT Home Hub - 9 hours of trying to set up and counting...

    Hi...I am at my wits end having spent two long evenings trying simply to connect a Time Capsule to an iMac. We have pored over the instructions, read all the postings in all the forums, probably in the entire world (OK, slight exaggeration) and tried every possible combination, and still we end up with a non-responsive Time Capsule (blinking amber light), and the Airport software saying "Waiting for the Time Capsule to restart" in a perpetual loop. The issues may well be around compatibility with the BT Home HUb, but there again they may not. There are no clues about why it fails so consistently in every combination. For the record, these are the combinations we have so far tried: ethernet connection from WAN port on TC to Ethernet port on Home Hub...A wired connection is established successfully. But then immediately the wireless connection wizard starts up, we can't turn it off, and the wireless connection wizard fails. We have tried it in all three combinations of the Wireless wizard. The end result is always the above, the blinking amber light.
    We have tried adding the TC without any ethernet connection being involved in the first place. This was the most promising, we actually finally got a green light on the TC itself, but, crucially, NOT in the Airport software: that just hung in the same perpetual loop saying "waiting for Time capsule to restart", even though it CLEARLY HAD RESTARTED (because it gave us the green light). So, after about 9 hours and counting trying to get this "out of the box" solution simply to be recognised by a Mac computer, let alone connected to any other devices in the house (heaven forbid), we are now at our wit's end. Does anyone have any advice?

    hi cprelude, I have the same or nearly the setup as you a BT HH V1 and a 500gb timecapsule this is hardwired to bt hh and works well so fear not it can be resolved. first hold the reset button on the HH with the TC disconnected, then while the HH is restarting unplug the TC for a couple of mins then replug inyour TC with the reset switch at the rear pushed in and then let the TC restart and plug in the ethernet cable to thr HH then use Airport utility to connect to the TC. then if all goes well you can set up two wireless networks first being the HH and the second the TC 5ghz. if I was you I would do the first backup on TC via ethernet as the first wireless backup can take hours and hours depending on the amount GBs you already have on your hard drive
    good luck
    john

  • Windows 7 and counter-strike source shuttering.

    I have concluded this is caused by creatives driver by disabling the card in device manager the shuttering is gone. Is there a work in progress for this or some kind of work around until it is fixed?

    Re: Windows 7 and counter-strike source shuttering. Found a simple work around until someone can fix this, found this over in the sevenforums.com
    Hi there, I've recently had an extremely annoying issue regarding sound, games, multiplayer, and Windows 7. When I would start up a game (such as Counter-Strike Source or Heroes of Newerth) and connect to server, my fps and ping would be nominally ok, but the game would lag. In HoN this would be displayed by the heroes moving jerkily around the map, even though my fps and ping were good. In Counter Strike, this evidenced itself by glitchy nades that don't bounce smoothly, and whenever sounds are played, the ping spikes a bit. It's kind of like playing on a 33 tic server, for those of you familiar with the game. None of these issues occurred in single player games or in the aforementioned games with a local server.
    Anyway, I searched and searched here and couldn't find anything, but finally I found something in Google:
    Stop and disable the "Multimedia Class Scheduler" service<
    Run regedit and go to "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servi ces\Audiosrv"<
    Double click on the entry "DependOnService" and delete the line with "MMCSS" from the text box<
    Reboot and enjoy lag free games<
    This fixes issues with Realtek '97 (my motherboard uses nforce 4 chipset), and I'm guessing it will also fix issues with Creative Audigy 2 ZS, which I also have installed at the moment, but haven't tested.
    I diagnosed the issue by realizing that by disabling audio devices in device manager, lag would disappear in-game. So glad I found this solution after installing 6 different audio drivers and generally being very frustrated. Just thought I'd leave this here as a reference for others with a similar issue.
    Original solution by Mirkon. Thanks!

  • Relation between Rollup and compression.

    Hi All,
    Is there a relation between rollup and compression ? i.e if i compress the cube, will the rollup job be faster ?

    Hi,
    Thanks for all your replies. Now the picture is crystal clear.
    1. A compression job moves data from F table to E table. This is also applicable for aggregates. If you schedule a compression job for a cube, the aggregates are automatically compressed( You can also compress aggregates of a cube without compressing the cube. There are programs avalibale for the same).
    2. Assume that you have not done compression . If you load the data to base cube ,it takes more time to create the indexes after loading.
    3) Assume that you have done compression . If you load the data to base cube ,it takes less time than 2 point to create the indexes after loading.
    On similar lines, if aggregates of a cube  are compressed before rollup, then rollup will be faster. This is what exactly I have experienced. I had a cube which had 1000 request. It was never compressed. The rollup job for the cube used to take around 60,000 seconds. I compressed 900 requests. Now the rollup job gets over in 2400 seconds.So the conclusion is the following:
    <b>When aggregates of a cube are compressed, the rollup job runs faster.</b>
    Message was edited by: Tej Trivedi

  • Paging and count of rows

    Hi,
    I have a procedure doing paging and returning the count of rows:
    As you see I used 2 select, one for paging and one for getting total row counts.
    Is there a way to get rid of "SELECT count(*) into PO_TOTAL FROM TABLE1;"?
    CREATE OR REPLACE PACKAGE BODY MYPACKAGE AS
    TYPE T_CURSOR IS REF CURSOR;
    PROCEDURE SP_PAGING
    PI_STARTID IN NUMBER,
    PI_ENDID IN NUMBER,
    PO_TOTAL OUT NUMBER,
    CUR_OUT OUT T_CURSOR
    IS
    BEGIN
    OPEN CUR_OUT FOR
    SELECT *
    FROM (SELECT row_.*, ROWNUM rownum_
    FROM (
    SELECT column1, column2, column3 FROM TABLE1
    ) row_
    WHERE ROWNUM <= PI_ENDID)
    WHERE rownum_ >= PI_STARTID;
    SELECT count(*) into PO_TOTAL FROM TABLE1;
    END SP_PAGING;
    END MYPACKAGE;

    Yes, I can reproduce that:
    SQL> create table emp1 as select * from emp
      2  /
    Table created.
    SQL> exec dbms_stats.gather_table_stats('SCOTT','EMP1');
    PL/SQL procedure successfully completed.
    SQL> EXPLAIN PLAN FOR
      2  SELECT  ename,
      3          job,
      4          sal,
      5          cnt
      6    FROM  (
      7           SELECT  ename,
      8                   job,
      9                   sal,
    10                   count(*) over() cnt,
    11                   row_number() over(order by 1) rn
    12             FROM  emp1
    13          )
    14    WHERE rn BETWEEN 4 AND 9;
    Explained.
    SQL> @?\rdbms\admin\utlxpls
    PLAN_TABLE_OUTPUT
    Plan hash value: 1444408506
    | Id  | Operation           | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT    |      |    14 |   728 |     4  (25)| 00:00:01 |
    |*  1 |  VIEW               |      |    14 |   728 |     4  (25)| 00:00:01 |
    |   2 |   WINDOW BUFFER     |      |    14 |   252 |     4  (25)| 00:00:01 |
    |   3 |    TABLE ACCESS FULL| EMP1 |    14 |   252 |     3   (0)| 00:00:01 |
    PLAN_TABLE_OUTPUT
    Predicate Information (identified by operation id):
       1 - filter("RN">=4 AND "RN"<=9)
    15 rows selected.
    SQL> EXPLAIN PLAN FOR
      2  SELECT *
      3  FROM (SELECT row_.*, ROWNUM rownum_
      4  FROM (
      5  SELECT ename,job,sal, count(*) over() FROM emp1
      6  ) row_
      7  WHERE ROWNUM <= 9)
      8  WHERE rownum_ >= 4;
    Explained.
    SQL> @?\rdbms\admin\utlxpls
    PLAN_TABLE_OUTPUT
    Plan hash value: 519025698
    | Id  | Operation             | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT      |      |     9 |   468 |     2   (0)| 00:00:01 |
    |*  1 |  VIEW                 |      |     9 |   468 |     2   (0)| 00:00:01 |
    |*  2 |   COUNT STOPKEY       |      |       |       |            |          |
    |   3 |    VIEW               |      |     9 |   351 |     2   (0)| 00:00:01 |
    |   4 |     WINDOW BUFFER     |      |     9 |   162 |     2   (0)| 00:00:01 |
    |   5 |      TABLE ACCESS FULL| EMP1 |     9 |   162 |     2   (0)| 00:00:01 |
    PLAN_TABLE_OUTPUT
    Predicate Information (identified by operation id):
       1 - filter("ROWNUM_">=4)
       2 - filter(ROWNUM<=9)
    18 rows selected.
    SQL> However, you interpreted it incorrectly. Your query will still fetch all rows in TABLE1. Optimizer is smart enough to stop creating window buffer after 9 rows and that is what you see 9 in explain plan, while my query builds 14 row window buffer and then filters. So your query will be a bit faster.
    SY.
    Edited by: Solomon Yakobson on Jan 25, 2009 2:51 PM

  • EXHAUSTED!!! 25 DAYS AND COUNTING FOR INSTALL!

    Well its got to the point where i think ive just about had it with BT im appalled by them now!!!up to now ive been kept well informed as to what's been going on without me having to ring them .Then Last Friday the day that finally i was gonna get my final appointment (the 4th appointment) i was told yet another excuse/reason as to why this wasn't going to happen and that it will take 48 hrs to sort, so tuesday will now be the day i get my appointment, i was then sent a text with a number and to call  if it wasn't sorted by tuesday which is when they were suppose to ring me again with an update but i didn't get the call (the 1ST time)?
    so i called the number i got texted and its the infinity call centre in Dundee well guess what? the problem still persists and that they sent a request but it still hasn't been answered so it could well be another 48 hrs until openreach respond, i asked for a manager to call me back because the person at the call centre was just not bothered atall about my situation and sounded uninterested,well that didn't happen either.
    My MAC code runs out on the 20th that will be a month since i ordered, just over infact!!! i ordered 17th march.And just to add insult to injury my BT account states that the total order was complete on the 7th april(my 3rd appointment date)and they will be taking the 1st month broadband payment off me by DD on the 23rd april. I KNOW ITS HARD TO BELIEVE BUT ITS ALL TRUE!!!
    SO I WARN ANYONE THINKING OF DEALING WITH BT THINK HARD AND LONG???
    days off work,3 engineer appointments,25 days and counting for install,paying for a service i havnt got and uninterested customer services and managers not returning calls.WELCOME TO BT!!!
    WATCHDOG,CISAS,OFFICE OF FAIR TRADING AND THE MAN HIMSELF IAN LIVINGSTON. all getting emails.

    I read through your thread Boostmonkey like you say similar in alot of ways,only i wished id read your thread earlier as i mite have got things done sooner(infact i don't know how i missed it).Ive had some progress today but im not saying anything as im still waitng for some concrete confirmation.
    Good luck with it anyway. let me know how you get on.

  • Barcode counting over groups

    Hi all,
    I am working on a barcode for my invoices print. This barcode counts over the invoices from 1 to 16 and then starts over again. For example if i have a set of 6 invoices each of 3 pages the barcode numbering will be as follows:
    invoice 1 page 1: 1
    invoice 1 page 2: 2
    invoice 1 page 3: 3
    invoice 2 page 1: 4
    invoice 2 page 2: 5
    invoice 5 page 3: 15
    invoice 6 page 1: 16
    invoice 6 page 2: 1
    invoice 6 page 3: 2
    I have tried to solve this with some xsl-fo programming, but i can't get the page-number or total pages per invoice into a variable. So I can't determine how many pages have been printed for previous invoices and which is the next number to print in the barcode.
    Hope you can give me some advice.

    Looks like this should return what you are expecting:
    --drop table #temp
    create table #temp
    autoid int,
    assembly_no nvarchar(10),
    rank_no int
    insert into #temp (autoid, assembly_no, rank_no) values (1, 'Assembly1', 2)
    insert into #temp (autoid, assembly_no, rank_no) values (2, 'Assembly2', 1)
    insert into #temp (autoid, assembly_no, rank_no) values (3, 'Assembly1', 2)
    insert into #temp (autoid, assembly_no, rank_no) values (4, 'Assembly1', 1)
    insert into #temp (autoid, assembly_no, rank_no) values (5, 'Assembly1', 0)
    insert into #temp (autoid, assembly_no, rank_no) values (6, 'Assembly2', 2)
    insert into #temp (autoid, assembly_no, rank_no) values (7, 'Assembly2', 1)
    select t.assembly_no, count(nullif(t.rank_no, 0))
    from #temp t
    inner join 
    select autoid, rank_no, row_number() over (partition by assembly_no order by autoid desc) as ct
    from #temp
    )x
    on x.autoid = t.autoid
    and x.ct <= 2
    group by t.assembly_no

  • How to ignore nulls in analytic functions ( row_number() and count())

    how to ignore nulls in analytic functions ( row_number() and count())

    Iam attaching test data can any one help me please
    thanks in advanceeeee
    CREATE TABLE TEMP_table
    ACCTNUM NUMBER,
    l_DATE TIMESTAMP(3),
    CODE VARCHAR2(35 BYTE),
    VENDOR VARCHAR2(35 BYTE)
    insert into temp_table values (1,sysdate+1/60,'bso','v1');
    insert into temp_table values (1,sysdate+2/60,'bsof','v1');
    insert into temp_table values (1,sysdate+3/60,'bsof','v2');
    insert into temp_table values (1,sysdate+4/60,'','v1');
    ian executing this my ;
    SELECT acctnum,l_date,vendor,code_1,
           CASE
             WHEN code = 'bsof'
              AND COUNT (DISTINCT code) OVER (PARTITION BY acctnum, vendor) > 1
              AND row_number () OVER (PARTITION BY acctnum, vendor ORDER BY vendor, l_date) != 1
             THEN 'yes'
           ELSE 'no' END result
      FROM  (select  acctnum,l_date,vendor, code code_1, case when code IN ('bso', 'bsof') then code
      else null end code   from  TEMP_TABLE
    ORDER BY acctnum ,l_date);
    my result :
    1    3/23/2011 5:24:34.000 PM    v1    bso    no
    1    3/23/2011 5:48:36.000 PM    v1    bsof    yes
    1    3/23/2011 6:36:41.000 PM    v1    bsof    yes
    1    3/24/2011 11:55:53.000 AM    v1        no
    1    3/23/2011 6:12:38.000 PM    v2    bsof    no
    I need to eliminate nulls  in top query not in inner query (not using where condition in inner query)
    [\code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Add EMO button and counter

    Hi guys,
    Doing a college project and am stuck with this. Honestly haven’t a clue about Labview but been trying my best.
    I'm trying to add a counter that will increment every time my slider returns and I also want to add an EMO button to stop the slider instantly.
    I've cut the relevant section out of my VI and posted.
    Appreciate any help.
    Attachments:
    Server VI.5.vi ‏19 KB

    Hi guys,
    Thanks for the replies. I've tried looking over the tutorials, but i must be just a bit slow
    This is supposed to be the clamp part of a moulding machine.
    Hi Ravens,
    Thanks for the advice, EMO was Emergency Motor Off, to be honest I haven't a clue, this is just a college project but I'm only back in work so have missed last 2 months and this project is due in 2 weeks. Trying to play catch up is just making things more confussing.
    All I want to do with this part of the VI is the ability to stop the ram as soon as a button is pressed. And count each time the Ram returns home to indicate a Shot count for parts out.
    I know the wiring is awful but i'm so lost I just need to get something that I can submit.
    Cheers.

Maybe you are looking for

  • Issue in 3rd Party Remittance to FI Posting

    Hi there, I am trying to run the Third Part remittance posting run and i am getting the issue "3rAccount with the following search key was not found: 1000HRFB039" while running i am getting 2 line items, 1, Amount credit posted to Vendor account and

  • How can i downgrade lion to snow leopard on my macbook pro of early 2011

    I'm trying to downgra my mac book pro back to snow leopard. i've already tried with snow leopard cd directly, but it seems not to work. I was wandering if there is a way to get apple to send me the correct version of snow leopard for my mac. Thanks i

  • XI3.0 - file adapter create directory

    Hi, Is there anyway in 3.0 to prevent a receiver file adapter from creating a directory if it does not already exist.  There was a parameter in the J2SE adapter but I do not know if or how this has been implemented in 3.0. Regards Ian

  • Please help me! Ipod plugged in but not connected

    I plugged in my ipod and when I went to update it after adding songs, according to my preferences no ipod was connected. So, I could not update. I checked the cord, tried another port, restarted my PC. Everything else I try to do, I can't because it

  • Nokia 6680 need help!! pc suite

    error1935 . an error occurred during the installation of assembly 'microsoft.MSXML2,publickeytoken="6bd6b9abf345378f",version=4.20.9818.0.", type="win32",processorarchitectur e="x86"' please refer to help and support for more information.hresult :0x8