Some question about the query designer

hello, dear all,
I am a new comer of here, and I am intersting in BI, but I have no basic knowledge about it.
so I just want someone could give me some advice about it.
our boss need I do the developer about the query designer,  I just have searched in this forum. but nothing founded for I am a new comer here,
I heard there are some training document of the query designer, could someone give me the URL, thanks.

Hi,
Query desinger is used to develop a Query, Query can be created on following data targets
-Info Cube
-DSO
Virtual data target
-MultiCube
-Infoset
-Multiprovider
We have 5 section in query designer
- Infoprovider : where we select the data target , on which report to be created
-Filter : to restrict value at infoprovider level ( if you want data for year 2008, for example)
-Free Characterstic : this allow you to drill down
-Columns : char/keyfigs to be display in columns can be added here
Row: key/char to be display in Rows can be added here
gv me ur mailid i will let u have Bex manual,
I would suggest , if you have any IDES ( training ) system , where you can log in and then go to RRMX,
and try to create new query and add any data target ( which is already created ) and then drag and drop the char/key fig to the required section ,
save it and execute it .....
if you play arround and see the output , that would help u to understand how to work with query designer.
Hope this helps
Sukhi
Edited by: Sukhvidner Singh on Nov 4, 2009 5:36 PM

Similar Messages

  • Some questions about the integration between BIEE and EBS

    Hi, dear,
    I'm a new bie of BIEE. In these days, have a look about BIEE architecture and the BIEE components. In the next project, there are some work about BIEE development based on EBS application. I have some questions about the integration :
    1) generally, is the BIEE database and application server decentralized with EBS database and application? Both BIEE 10g and 11g version can be integrated with EBS R12?
    2) In BIEE administrator tool, the first step is to create physical tables. if the source appliation is EBS, is it still needed to create the physical tables?
    3) if the physical tables creation is needed, how to complete the data transfer from the EBS source tables to BIEE physical tables? which ETL tool is prefer for most developers? warehouse builder or Oracle Data Integration?
    4) During data transfer phase, if there are many many large volume data needs to transfer, how to keep the completeness? for example, it needs to transfer 1 million rows from source database to BIEE physical tables, when 50%is completed, the users try to open the BIEE report, can they see the new 50% data on the reports? is there some transaction control in ETL phase?
    could anyone give some guide for me? I'm very appreciated if you can also give any other information.
    Thanks in advance.

    1) generally, is the BIEE database and application server decentralized with EBS database and application? Both BIEE 10g and 11g version can be integrated with EBS R12?You, shud consider OBI Application here which uses OBIEE as a reporting tool with different pre-built modules. Both 10g & 11g comes with different versions of BI apps which supports sources like Siebel CRM, EBS, Peoplesoft, JD Edwards etc..
    2) In BIEE administrator tool, the first step is to create physical tables. if the source appliation is EBS, is it still needed to create the physical tables?Its independent of any soure. This is OBIEE modeling to create RPD with all the layers. If you build it from scratch then you will require to create all the layers else if BI Apps is used then you will get pre-built RPD along with other pre-built components.
    3) if the physical tables creation is needed, how to complete the data transfer from the EBS source tables to BIEE physical tables? which ETL tool is prefer for most developers? warehouse builder or Oracle Data Integration?BI apps comes with pre-built ETL mapping to use with the tools majorly with Informatica. Only BI Apps 7.9.5.2 comes with ODI but oracle has plans to have only ODI for any further releases.
    4) During data transfer phase, if there are many many large volume data needs to transfer, how to keep the completeness? for example, it needs to transfer 1 million rows from source database to BIEE physical tables, when 50%is completed, the users try to open the BIEE report, can they see the new 50% data on the reports? is there some transaction control in ETL phase?User will still see old data because its good to turn on Cache and purge it after every load.
    Refer..http://www.oracle.com/us/solutions/ent-performance-bi/bi-applications-066544.html
    and many more docs on google
    Hope this helps

  • Some question about the renegotiation function in SRM Contract (GOA)

    Hi All Expert,
    We are on SRM 5/4.6,  there is a question about the renegotiation function in SRM GOA.
    Can we renegotiate the price for some parts in the GOA items with this function ( e.g. Only renegotiate one item in the contract) ?
    Will the item price updated automatically after the renegotiation?
    Many thanks in advance!!!
        Wendrin

    Hi Sanjeev,
    Many thanks for your help.
    One more question, if I add a new item when we renegotiation, will it be transfered to contract and create a new item after that?
    Thanks and best regards
    Wendrin

  • Some questions about the battery

    I have a couple of questions about the battery in general.
    Is it normal that my iPod Touch 4G charges very fast? It reaches 60% in only one hour and it's fully charged before it takes two hours. I know this is not bad but I'm just worried. How can I be sure if it's really loaded?
    Is it normal that the battery is very quick empty when I'm gaming? For now I'm blaming this due to the quick charge.
    Is it normal that for example my battery level is at 30% and when I put on standby or something or close a game, the battery starts rising for approx. 5% even 10% sometimes?
    Those are my question, I hope they are clear enough. Thanks in advance.
    Regards

    1. The tech specs says:
    Charging times: Fast charge in about 2 hours (80% capacity), full charge in about 4 hours
    2. Heavy use like gaming drains the batery fater then other use. The tech specs say:
    Video playback time: Up to 7 hours when fully charged
    3.. Yes, the indicate capacity tends to rise after heary draining is stopped.  The battery indicator is not that accurate is affected by temperature. Heavy use increases battery temperature and when it decreases battery temperature decreases.

  • HCM Processes & Forms - Some questions about the PD Processes

    Hi Experts,
    At my Organisation we use HCM Processes and Forms and Organisation Management and MSS to manage Position Based Security (PBS).
    The MSS Managers have requested a form be developed which they can use to extend an existing Position to Employee temporary assignment (IT1001 S-P with A081 relationship) which is due to expire within the next 30 days. We recently upgraded to ECC EHP6 and I thought I would now have a go at developing this Form.
    While researching in SCN and SAP Press books on the ‘HCM Processes and Forms’ topic, I have discovered a lot of information that has assisted me so far in progressing this solution.
    There are a few givens that I have confirmed so far, which are as follows;
    Since we are using Positions (Organisation Management), the only option available here is to use the PD Process, which implies using the SAP_PD Back_End Service. Therefore this become the baseline to build upon.
    While researching in SCN and SAP Press books on this subject I could not find relevant information about what is possible using the SAP_PD Service to achieve my solution design for the above requirements and thus my post to the HCM P&F Community for assistance.
    My questions are as follows;
    In the solution design, I was considering to use the “Process without Start Object” or “Mass Start” to skip Step 1 - “Selection Object” and use a Generic Service to get all the positions for the Manager (along the lines of the SAP Standard Generic Service - find Positions in Manager’s area of Responsibility) and only retain the Positions where the End Date for the IT1001 A081 relationship in between the Effective Date and Effective Date plus 30 days. This should provide me with all the positions under the Manager that have the A081 relationship with the assigned employee that are about to expire within the next 30 days.
    I want the result presented on the Form in a Table format so that the Manager has to enter the Extension Start Date and End Date for the new assignment period.
    Is this possible using Standard Design Time functionality?
    2.       Or Instead of Question 1, could I use OADP to achieve the same result using a custom search class to return a list of multiple objects (Positions)which is used to populate the form?
    3.       I get the impression that the ‘Mass Start’ process is mainly for multiple employees. Can it also be used for multiple PD objects?
    4.       I get the impression that if I used the ‘Mass Start’ option I could only use this if I was CREATING a new object or assignment? (I take it that you cannot use the Mass Start option to CHANGE multiple existing objects. Only because I have not seen any SAP Standard examples of this yet!)   Please confirm if this is possible?
    5.       Has anyone used the “Query for Mass Start” option on a Process? How does that work? (Could I write a ‘SAP Query’ to get the positions I am interested in under the Manager?) Is there a sample SAP Standard process that uses a query?
    Your assistance would be greatly appreciated.
    Thanks in Advance.
    Regards,
    Steve

    no limit
    no limit
    limitations of what?
    you can use forms on mac, pc, and other systems

  • Some questions about the limit of memory usage of Adobe flash player in different OS & Web Browser

    Hi Adobe experts,
    I'm from HP, and now using Adobe flash player making some products about massive data displaying.
    For my target, I need to show more than 200 K rows in client web browser, using AdvancedDataGrid.
    And that may needs more than 200M to cache the data in Web browser memory space.
    So, my questions are:
    Does there any memory usage limit in flash player?
    Say, if we have 4G bytes of physical memory in machine, in Windows, how much can I use in flash player?
    Also, if we have 4G bytes of physical memory in Linux, how much can I use in flash player?
    Does it depends on the Web Browser?
    Say, is there any difference between different web browsers?
                    If the limit exists, can we control the limit?
    Say, can we define some parameters in the tag in web page to expand the limitation?
    Or, can we try to control this limitation by the Flash player management which exists in the Windows Control Panel?
    Best Regards
    Huang Haixu
    +86 18616735091
    [email protected]<mailto:[email protected]>

    1. Yes. The Toolkit for CreateJS is an extra downloadable extension for Flash CS6. It will publish html and js files that will provide the animation instead of the swf that you would normally publish. The success or failure of the resulting javascript version of your animation is the result of working within the constraints of the toolkit. You are pretty much constrained to using the timeline in Flash for your animations. If you work only in Actionscript, then the output will be very disappointing.
    2. Edge outputs javascript, css, and html to give you an animation. The user interface allows you to design within the constraints of what Edge can do. You can preview and adjust and tweek your animation as you work. Edge is an html5 tool. It can create html5 animation. It is not a replacement for Flash. It is something that you can use instead of Flash to embed animation in html.
    The problems and benefits of each are unique. Neither is a good substitute to learning javascript, css and html5. If you don't understand the code that is created from each of these tools, you can easily end up with huge, bloated, files that perform poorly. I'm very biased toward actually knowing what is going on. If I need to edit something, I want to be able to go into the code and make a change, not add an additional chunk of code to work around what was there. I don't use the timeline at all, and so nothing that I have will publish using CreateJS. Well, it will publish, but nothing happens because there is nothing on the timeline to translate.
    You can download a trial of Flash CS6 and try the Toolkit for yourself. Edge is still in free preview, you can get a copy at http://labs.adobe.com and try it to see how it works.
    Also, if you're not using the Greensock Animation Platform with Flash, have a look at that. It has recently been extended to provide Javascript analogues for most of the Libraries. http://www.greensock.com/

  • Some questions about the zen visio

    Hi everyone ! Im from spain and I have just bought the player one week ago. I have just two questions. The first is if it is possible to connect the player to the computer and the wall socket at the same time (because its really slow charging by usb) and if it does not damge the player. The second question is about the rating system, I find it really interesting but I miss I can do something with it ! I mean there should be another one inside DJ mode to play songs with 5 stars 4 stars 3 stars, 4 or more stars, etc... That would be really fantastic !! And also is it possible to manage the ratings with teh creative media source organizer? I suppose that no because I didn?t find the option... Ok that's all thank you for your help, and what a great player !!
    Pedro

    You can connect to a home stereo using a stereo miniplug (your headphone connector) to RCA adapter. these are available at any electronics store. you plug the 2 rca plugs into an auxiliary input on your receicver. to play in your car, you can use an fm transmitter. check out my post on accessories, it talks about one i didnt like and the one i replaced it with...
    http://forums.creative.com/creativel...essage.id=2079
    there is nothing special about ipods, they cant do anything that a creative player cant. in fact, some would argue that creative's do more! but connectivity to any type of stereo system is uni'versal

  • Some questions about the new Galaxy SIII

    Ok, I am looking into the new SIII and there are a few details that I can not seem to find the answers to and considering I work at a Verizon Retailer I would like to know as much as possible on this particular phone. Especially since I am thinking about purchasing it myself.
    1. How are the speakers? Are they loud enough to hear over a group of people talking and still get good quality sound?
    2. How easy is the screen to crack and if it cracks does the entire screen "spiderweb" like the iPhone immediately does or will it do what my Breakout did and crack in one weak spot but still work fine and make it so the rest isn't as susceptible to cracking the next time its dropped.
    3. How "music oriented" is this device? I am playing Pandora almost 90% of my day and I want a good phone for music in particular.
    4. Random and I'm not sure if anyone can answer this, what is the quality of the voice recording software? How accurate/ sensitive is it? I like to record my own songs and if I could record some of my ideas onto my phone it would be so much more convenient.
    5. Video and camera are supposed to be amazing? Is that true?
    6. How is the memory/ storage? One of the biggest problems i have with cellphones is my storage is constantly full. What are the odds of me filling this phone?
    I'm sure there will be other questions that I will have but for right now this is all I can think of. Thank you so much for your time.
                                                                                                   Katie

    What kind of phone do you have now? That knowledge would help when answering, but my input:
    1. Speaker is about the same as any smartphone. You won't get "full sound" without external speaker(s). Bluetooth headphones or earplugs are the way to go.
    2. There is at least one thread about displays breaking. I believe most of those people were carrying it in their pants pockets. I carry mine in a holster on my belt. I posted a link to a video from a site that "torture tests" phones. The SG3 was dropped several times and did not break. Could it? Sure.
    3. I'd say it's as set up for music as other phones.
    4. Haven't used voice recording apps.
    5. Camera and video are excellent.
    6. Buy the 32GB version. If you need more memory than that, buy extra memory.
    Sorry I can't offer more.

  • Some questions about the U2 edition

    After a long time, I have decided that I will buy the Ipod U2 edition. I really need some information about this model
    Apart from the look, is there any different between the U2 version and the normal one ?
    Will I have all U2 songs if I purchase it ?
    Im currently living in Vietnam, is there any ways I can buy an Ipod ?
    thx in advance!

    1. No.
    2. You can get a 30-minute U2 video from the iTunes store with a coupon provided with the purchase of an iPod U2; this video is not available in Vietnam, as there isn't an iTunes store for your country. Aside from this coupon and the different appearance of an iPod U2, there aren't any benefits to choosing this specific model.
    (16647)

  • Two questions about the query and lsmw .

    Hi Experts ,
    Could you tell me how to download the query to local driver ? is it possible to do that ?
    I hear somebody introduce lsmw this t-code . it can transfer the data from non-sap/r3 system ? has somebody can fully expain this t-code ?
    Many thanks !!!
    Best Regards,
    Carlos Z

    Hi,
          LSMW – Step by Step Guide: Legacy System Migration Workbench is an R/3 Based tool for data transfer from legacy to R/3 for one time or periodic transfer.
    Basic technique is Import data from Spreadsheet / Sequential file, convert from source format to target format and import into R/3 database. LSMW not part of standard R/3, if we need this product email [email protected]
    Advantages of LSMW:
        • Most of the functions are within R/3, hence platform independence.
       • Quality and data consistency due to standard import techniques.
       • Data mapping and conversion rules are reusable across projects.
       • A variety of technical possibilities of data conversion.
       • Generation of the conversion program on the basis of defined rules
       • Interface for data in spreadsheet format.
       • Creation of data migration objects on the basis of recorded transactions.
       • Charge-free for SAP customers and partners.
    Working With LSMW:
    Use TCODE LSMW
    Objects of LSMW:
      •Project   – ID with max of 10 char to Name the data transfer project.
      • Subproject   – Used as further structuring attribute.
      • Object   – ID with max of 10 Characters, to name the Business object .
      • Project can have multiple sub projects and subprojects can have multiple objects.
      • Project documentation displays any documentation maintained for individual pop ups and processing steps
    User Guide: Clicking on Enter leads to interactive user guide which displays the Project name, sub project name and object to be created.
    Object type and import techniques:
      • Standard Batch / Direct input.
      • Batch Input Recording
          o If no standard programs available
          o To reduce number of target fields.
          o Only for fixed screen sequence.
        • BAPI
        • IDOC
          o Settings and preparations needed for each project
    Preparations for IDOC inbound processing:
        • Choose settings -> IDOC inbound processing in LSMW
        • Set up File port for file transfer, create port using WE21.
        • Additionally set up RFC port for submitting data packages directly to function module IDoc_Inbound_Asynchronous, without creating a file during data conversion.
        • Setup partner type (SAP recommended ‘US’) using WE44.
        • Maintain partner number using WE20.
        • Activate IDOC inbound processing.
        • Verify workflow customizing.
    Steps in creating LSMW Project:
        • Maintain attributes – choose the import method.
        • Maintain source structure/s with or without hierarchical relations. (Header, Detail)
        • Maintain source fields for the source structures. Possible field types – C,N,X, date, amount and packed filed with decimal places.
        • Fields can be maintained individually or in table form or copy from other sources using upload from a text file
        • Maintain relationship between source and target structures.
        • Maintain Field mapping and conversion rules
        • For each Target field the following information is displayed:
          o Field description
          o Assigned source fields (if any)
          o Rule type (fixed value, translation etc.)
          o Coding.
          o Some fields are preset by the system & are marked with Default setting.
        • Maintain Fixed values, translations, user defined routines – Here reusable rules can be processed like assigning fixed values, translation definition etc.
        • Specify Files
          o Legacy data location on PC / application server
          o File for read data ( extension .lsm.read)
          o File for converted data (extension .lsm.conv)
        • Assign Files – to defined source structures
        • Read data – Can process all the data or part of data by specifying from / to transaction numbers.
        • Display read data – To verify the input data being read
        • Convert Data – Data conversion happens here, if data conversion program is not up to date, it gets regenerated automatically.
        • Display converted data – To verify the converted data
    Import Data – Based on the object type selected
        • Standard Batch input or Recording
          o Generate Batch input session
          o Run Batch input session
        • Standard Direct input session
          o Direct input program or direct input transaction is called
    BAPI / IDOC Technique:
        • IDOC creation
          o Information packages from the converted data are stored on R/3 Database.
          o system assigns a number to every IDOC.
          o The file of converted data is deleted.
        • IDOC processing
          o IDOCS created are posted to the corresponding application program.
          o Application program checks data and posts in the application database.
    Finally Transport LSMW Projects:
        • R/3 Transport system
          o Extras ->Create change request
          o Change request can be exported/imported using CTS
        • Export Project
          o Select / Deselect part / entire project & export to another R/3 system
        • Import Project
          o Exported mapping / rules can be imported through PC file
          o Existing Project data gets overwritten
          o Prevent overwriting by using
        ‘Import under different name
        • Presetting for Inbound IDOC processing not transportable.
    Regards

  • Some question about the Mac

    Can I run the" Windows "and the "lion "on one max and how much I should pay for it?
    I'm not a US citizen,but I entend to  by a computer in USA,so could you give me a
    hand,about the computers and the system prize in US include the tax.
    appreciate.
                                                                                                           from a buyer of China

    Welcome to the Apple Support Communities
    Your MacBook Pro comes with OS X Mountain Lion installed, but you can install Windows using different ways (note that you have to buy Windows separately). To install Windows, you can use Boot Camp > http://www.apple.com/support/bootcamp Using Boot Camp, you will get the maximum performance on Windows

  • Some question about the sdo_geor.subset?

    Hellow everyone,
    I use the sdo_geor.subset clip some part of the image,the code like below. I can get different part of clip image, but find it show in the same place, it means that their start point coordinate is same, why?
    -------------------------------------------------------------example code ---------------------------------------------------------------------------------------
    FOR j IN 1..blockcount LOOP
    FOR k IN 1..blockcount LOOP
    i := i + 1;
    insert into sde.city_export values (i,imgname, sdo_geor.init('city_export_rdt', i));
    select image into gr3 from sde.city_export where image_id = i for update;
    IF j < blockcount AND k < blockcount THEN
    sdo_geor.subset(gr2,0,sdo_number_array(XRow * (j-1),yColumn*(k-1),XRow * j,yColumn*k),null,null,gr3);
    ELSIF j < blockcount AND k = blockcount THEN
    sdo_geor.subset(gr2,0,sdo_number_array(XRow * (j-1),yColumn*(j-1),XRow * j, yLength),null,null,gr3);
    ELSIF k < blockcount AND j = blockcount THEN
    sdo_geor.subset(gr2,0,sdo_number_array(XRow * (j-1),yColumn*(k-1),xLength,yColumn*k),null,null,gr3);
    ELSIF k=blockcount AND j=blockcount THEN
    sdo_geor.subset(gr2,0,sdo_number_array(XRow * (j-1),yColumn*(k-1), xLength, yLength),null,null,gr3);
    END IF;
    update sde.city_export set image=gr3 where image_id=i;
    commit;
    END LOOP;
    END LOOP;
    Best Regards,
    Lin

    you can see this code:
    declare
    type curtype is ref cursor;
    my_cursor curtype;
    stmt varchar2(10000);
    imgname varchar2(200);
    gr2 sdo_georaster;
    gr3 sdo_georaster;
    gm sdo_geometry;
    gs sdo_geometry;
    i integer := 0;
    j integer := 0;
    k integer := 0;
    xLength integer := 0;
    yLength integer := 0;
    XRow integer := 0;
    yColumn integer := 0;
    sdo_varray SDO_NUMBER_ARRAY; --image size
    cellDepth integer := 0; --cell depth
    bands integer := 0; --raster band
    sqrtRst double PRECISION := 0.0;
    blockcount integer := 0; --crop block number
    begin
    stmt := 'SELECT t.filename, t.image from city_images t where t.image_id = 1';
    delete from sde.city_export;
    open my_cursor for stmt;
    loop
    fetch my_cursor into imgname, gr2;
    exit when my_cursor%NOTFOUND;
    i := i + 1;
    --computer block
    cellDepth := sdo_geor.getCellDepth(gr2);
    sdo_varray := sdo_geor.getSpatialDimSizes(gr2);
    bands := sdo_geor.getBandDimSize(gr2);
    FOR rec IN (SELECT column_value val FROM TABLE(sdo_varray) ORDER BY column_value) LOOP
    IF xLength = 0 THEN
    xLength := rec.val;
    ELSE
    yLength := rec.val;
    END IF;
    END LOOP;
    sqrtRst := SQRT((xLength * yLength * bands * cellDepth) / (8 * 200 * 1024 * 1024));
    blockcount := sqrtRst;
    if((sqrtRst - blockcount) > 0) OR blockcount = 0 THEN
    blockcount := blockcount + 1;
    END IF;
    XRow := xLength / blockcount;
    YColumn := yLength / blockcount;
    --crop image
    FOR j IN 1..blockcount LOOP
    FOR k IN 1..blockcount LOOP
    i := i + 1;
    insert into sde.city_export values (i,imgname, sdo_geor.init('city_export_rdt', i));
    select image into gr3 from sde.city_export where image_id = i for update;
    IF j < blockcount AND k < blockcount THEN
    sdo_geor.subset(gr2,0,sdo_number_array(XRow * (j-1),yColumn*(k-1),XRow * j,yColumn*k)),null,null,gr3);
    ELSIF j < blockcount AND k = blockcount THEN
    sdo_geor.subset(gr2,0,sdo_number_array(XRow * (j-1),yColumn*(k-1),XRow * j, yLength)),null,null,gr3);
    ELSIF k < blockcount AND j = blockcount THEN
    sdo_geor.subset(gr2,0,sdo_number_array(XRow * (j-1),yColumn*(k-1),xLength,yColumn*k)),null,null,gr3);
    ELSIF k=blockcount AND j=blockcount THEN
    sdo_geor.subset(gr2,0,sdo_number_array(XRow * (j-1),yColumn*(k-1), xLength, yLength)),null,null,gr3);
    END IF;
    update sde.city_export set image=gr3 where image_id=i;
    commit;
    END LOOP;
    END LOOP;
    END LOOP;
    close my_cursor;
    end;

  • Question about the Query Optimizer

    For an Excercise during my database lecture the following table
    CREATE TABLE TASKS
        "ID" NUMBER NOT NULL ENABLE,
        "START_DATE" DATE,
        "END_DATE" DATE,
        "DESCRIPTION" VARCHAR2(50 BYTE)
    ) ;with about 1.5 Million Entries were given. In addition there was the following Query:
    SELECT START_DATE, COUNT(START_DATE) FROM TASKS
    GROUP BY START_DATE
    ORDER BY START_DATE;And the Index:
    create index blub on Tasks (start_date asc);The main excercise was to speed up queries with indexes. Because all data is accessed the optimizer ignores the index and just did a full table scan.
    Here the QEP:
    | Id  | Operation          | Name  | Rows  | Bytes | Cost (%CPU)| Time     |                                                                                                                                                                                                                                
    |   0 | SELECT STATEMENT   |       |  9343 | 74744 |  3423   (6)| 00:00:42 |                                                                                                                                                                                                                                
    |   1 |  SORT GROUP BY     |       |  9343 | 74744 |  3423   (6)| 00:00:42 |                                                                                                                                                                                                                                
    |   2 |   TABLE ACCESS FULL| TASKS |  1981K|    15M|  3276   (2)| 00:00:40 |                                                                                                                                                                                                                                
    ----------------------------------------------------------------------------Then we tried to force him to do the index with this query:
    ALTER SESSION SET OPTIMIZER_MODE = FIRST_ROWS_1;
    SELECT /* + INDEX (TASKS BLUB) */ START_DATE, COUNT(START_DATE) FROM TASKS
    GROUP BY START_DATE
    ORDER BY START_DATE;but again it ignored the index. The optimizer guide states clearly, that each time you access all data from a table it has to do a full scan.
    So we tricked him in doing a fast index scan with this query:
    create or replace function bla
    return date deterministic is
      ret date;
    begin
      select MIN(start_date) into ret from Tasks;
      return ret;
    end bla;
    ALTER SESSION SET OPTIMIZER_MODE = FIRST_ROWS_1;
    SELECT /* + INDEX (TASKS BLUB) */ START_DATE, COUNT(START_DATE) FROM TASKS
    where start_date >= bla
    GROUP BY START_DATE
    ORDER BY START_DATE; now we got the following QEP:
    | Id  | Operation            | Name | Rows  | Bytes | Cost (%CPU)| Time     |                                                                                                                                                                                                                               
    |   0 | SELECT STATEMENT     |      |     1 |     8 |     3   (0)| 00:00:01 |                                                                                                                                                                                                                               
    |   1 |  SORT GROUP BY NOSORT|      |     1 |     8 |     3   (0)| 00:00:01 |                                                                                                                                                                                                                               
    |*  2 |   INDEX RANGE SCAN   | BLUB |     1 |     8 |     3   (0)| 00:00:01 |                                                                                                                                                                                                                               
    ----------------------------------------------------------------------------- So it do use the index.
    Now to my two questions:
    1. Why should it always do a full scan (because the optimizer documentation answer is a little bit unsatisfying)?
    2. After looking at the difference between the costs (FS: 3276 IR: 3) and the time the system needs (FS: 9,6 sec IR: 4,45) why does the optimizer refuse the clearly better plan?
    Thanks in advance,
    Kai Gödde
    Edited by: Kai Gödde on May 30, 2011 6:54 PM
    Edited by: Kai Gödde on May 30, 2011 6:56 PM

    John Spencer mentioned already the most important point (the role of NULL values) but here are some minor additions:
    * with the additional NOT NULL condition Oracle will do an INDEX FAST FULL SCAN (a multiblock scan of the index segment, similar to a FULL TABLE SCAN)
    * with the additional NOT NULL condition you don't need a hint and Oracle will choose the IFFS access
    * if the index was a bitmap index you would not need a NOT NULL condition because Oracle stores NULL-values in bitmap indexes (but you should not define bitmap indexes in an OLTP system because they bring massive locking issues)
    * if the index would contain a second value the additional NOT NULL condition would also be needless
    CREATE TABLE TASKS
        "ID" NUMBER NOT NULL ENABLE,
        "START_DATE" DATE,
        "END_DATE" DATE,
        "DESCRIPTION" VARCHAR2(50 BYTE)
    insert into tasks
    select rownum
         , case when mod(rownum, 5) = 0 then null else sysdate - round(rownum/100) end
         , case when mod(rownum, 4) = 0 then null else sysdate - round(rownum/50) end
         , lpad('*', 50 , '*')
      from dual
    connect by level <= 1500000;
    exec dbms_stats.gather_table_stats(user, 'TASKS')
    -- the IFFS access without a hint:
    create index blub on Tasks (start_date);
    SELECT START_DATE
         , COUNT(START_DATE)
      FROM TASKS
    WHERE START_DATE IS NOT NULL
    GROUP BY START_DATE
    ORDER BY START_DATE;
    | Id  | Operation             | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT      |      | 15001 |   102K|  1871  (16)| 00:00:10 |
    |   1 |  SORT GROUP BY        |      | 15001 |   102K|  1871  (16)| 00:00:10 |
    |*  2 |   INDEX FAST FULL SCAN| BLUB |  1200K|  8203K|  1631   (3)| 00:00:09 |
    Statistiken
              0  recursive calls
              0  db block gets
           3198  consistent gets
              0  physical reads
              0  redo size
         378627  bytes sent via SQL*Net to client
          11520  bytes received via SQL*Net from client
           1002  SQL*Net roundtrips to/from client
              1  sorts (memory)
              0  sorts (disk)
          15001  rows processed
    -- the bitmap index
    create bitmap index blub on tasks(START_DATE);
    SELECT START_DATE
         , COUNT(START_DATE)
      FROM TASKS
    GROUP BY START_DATE
    ORDER BY START_DATE
    | Id  | Operation                    | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT             |      | 15001 |   102K|   132   (1)| 00:00:01 |
    |   1 |  SORT GROUP BY NOSORT        |      | 15001 |   102K|   132   (1)| 00:00:01 |
    |   2 |   BITMAP CONVERSION TO ROWIDS|      |  1500K|    10M|   132   (1)| 00:00:01 |
    |   3 |    BITMAP INDEX FULL SCAN    | BLUB |       |       |            |          |
    Statistiken
              1  recursive calls
              0  db block gets
           1126  consistent gets
              0  physical reads
              0  redo size
         378682  bytes sent via SQL*Net to client
          11520  bytes received via SQL*Net from client
           1002  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
          15002  rows processed
    -- the composite index
    create index blub on tasks(START_DATE, 0);
    SELECT START_DATE
         , COUNT(START_DATE)
      FROM TASKS
    GROUP BY START_DATE
    ORDER BY START_DATE;
    | Id  | Operation             | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT      |      | 15001 |   102K|  2400  (15)| 00:00:12 |
    |   1 |  SORT GROUP BY        |      | 15001 |   102K|  2400  (15)| 00:00:12 |
    |   2 |   INDEX FAST FULL SCAN| BLUB |  1500K|    10M|  2095   (3)| 00:00:11 |
    Statistiken
              0  recursive calls
              0  db block gets
           4120  consistent gets
              0  physical reads
              0  redo size
         378682  bytes sent via SQL*Net to client
          11520  bytes received via SQL*Net from client
           1002  SQL*Net roundtrips to/from client
              1  sorts (memory)
              0  sorts (disk)
          15002  rows processedRegards
    Martin Preiss

  • Where 2 go for help with some questions about a logo design?

    I'm an absolute novice Illustrator user (CS4). Im doing a web site for a mate and he's given me a logo that I have made a vector drawing of. It was black and white, and I made it coloured but I have discovered that colour gets difficult when you go for grayscale! You all knew that, didn't you?
    I'm not putting the logo up here because I don't want to ask a question that's too far off the purpose of the board. So, if I can't show it here can anyone suggest another forum where people do that kind of stuff and are kind to novices please?
    Many thanks
    Martin
    Well, having a look around I think I might not be going to far off by asking so...
    http://www.imagesandwords.org.uk/test/illylogo.html
    Anything really, but bear in mind It's very like the original except it had no style, no color and less er.. precision

    >How can I make the logo better for colour and B&W?
    As I understand it, you are troubled -- among many things -- by the lack of differentiation among the spheres when you convert to grayscale. Is that correct?
    If so, there are some things to consider. For example, the original uses only two attributes -- color and size -- to differentiate the spheres. Otherwise, you have the same shapes and the same gradient fills (other than base color).
    When you remove color from the equation, you're left with only one differentiating attribute: size. Not surprisingly, you find yourself facing a dull uniformity -- the monotonicity produces monotonousness. Now, the challenge is to add back some differentiating features.
    Not a whole lot of choices here. You can develop different gradient fills for a subtle effect, but you have to be careful: If the "lighting" changes dramatically among spheres, you'll end up with an unnatural look.
    You might consider forgetting about gradient fills altogether and go with solid or texture fills. Sometimes, simpler is better... especially with a logo.

  • Some questions about the z30

    Hello all, 
    I'm thinking about buying the Portege Z30-AST3NX1and I hope someone here with the same or similar model can answer a couple of questions. (the first one is the most important for me)
    1. I read very negative reviews about its speakers, and indeed I have a very ban memory from the speakers I has on on a Toshiba netbook some years ago. My question is - how bad is it ? can you watch a movie or tv show when the laptop is on your lap ? or is it too weak for that ? 
    2. When you insert an sd card doe's it stick out or can you leave it there comfortably and use it to expand the storage ?
    3. Speaking about storage from your experience on a windows 8 system after installing office and other everyday software, how much space is left ?
    Thanks 

    you might want to consider the R30 model..  you can get a faster CPU (up to I7-4700MQ 6M cache) and the speakers are bigger..

Maybe you are looking for