Outputting Results in a single row from a Table

Afternoon folks,
I have a scenario in hand and I was hoping to get some pointers. I could write a PL/SQL program and all would be fine. I was hoping if there was a way to do it in SQL and not have to create a whole new sub-program for this. I already have a PL/SQL program that populates a table. I want to use that data now and output it in a certain manner.
Any help is greatly appreciated and this is not something I need to solve by tonight. :)
Script to create table and insert records into it:
drop table FLIGHT_ROUTES;
  CREATE TABLE FLIGHT_ROUTES
   (FLIGHT_NO           VARCHAR2(7),
    ROUTE_ID            NUMBER,
    DAY_OF_OPERATION    NUMBER,
    ORIGIN              VARCHAR2(3),
    DESTINATION         VARCHAR2(3),
    STOPVER             VARCHAR2(3),
    ROUTE_TYPE          VARCHAR2(1)
REM INSERTING into FLIGHT_ROUTES
Insert into FLIGHT_ROUTES (FLIGHT_NO,ROUTE_ID,DAY_OF_OPERATION,ORIGIN,DESTINATION,STOPVER,ROUTE_TYPE) values ('UX-1001',1,1,'SFO','LAX',null,'D');
Insert into FLIGHT_ROUTES (FLIGHT_NO,ROUTE_ID,DAY_OF_OPERATION,ORIGIN,DESTINATION,STOPVER,ROUTE_TYPE) values ('UX-1001',1,2,'SFO','LAX',null,'R');  -- Record 2
Insert into FLIGHT_ROUTES (FLIGHT_NO,ROUTE_ID,DAY_OF_OPERATION,ORIGIN,DESTINATION,STOPVER,ROUTE_TYPE) values ('UX-2001',2,1,'SFO','JFK',null,'D');
Insert into FLIGHT_ROUTES (FLIGHT_NO,ROUTE_ID,DAY_OF_OPERATION,ORIGIN,DESTINATION,STOPVER,ROUTE_TYPE) values ('UX-2001',2,2,'SFO','JFK','ORD','D');
Insert into FLIGHT_ROUTES (FLIGHT_NO,ROUTE_ID,DAY_OF_OPERATION,ORIGIN,DESTINATION,STOPVER,ROUTE_TYPE) values ('UX-2001',2,3,'SFO','JFK','DEN','R');  -- Record 5
Insert into FLIGHT_ROUTES (FLIGHT_NO,ROUTE_ID,DAY_OF_OPERATION,ORIGIN,DESTINATION,STOPVER,ROUTE_TYPE) values ('UX-3001',3,1,'LAX','JFK','YYZ','D');
Insert into FLIGHT_ROUTES (FLIGHT_NO,ROUTE_ID,DAY_OF_OPERATION,ORIGIN,DESTINATION,STOPVER,ROUTE_TYPE) values ('UX-3001',3,2,'LAX','JFK','YYC','D');
Insert into FLIGHT_ROUTES (FLIGHT_NO,ROUTE_ID,DAY_OF_OPERATION,ORIGIN,DESTINATION,STOPVER,ROUTE_TYPE) values ('UX-3001',3,3,'LAX','JFK','YUL','D');What I would like to do is output the results by Flight Number, Origin1, Destination1, Origin2, Destination 2 and Origin 3, Destination 3. The maxium number combinations per Flight is 3. The other condition is that the listing should only show the Origin and Destinations and Stopover if it's a Day time Flight. If its a Red Eye, then don't show that option. So, Record 2 would be completely omitted here as it's a Red Eye flight and Record 5 would be omitted for Origin/Destination/Stopover 3 for flight UX-2001.
Flight_No       Origin1     Destination1    Stopover 1      Origin2          Destination2      Stopver2      Origin3    Destination3     Stopover3
============================================================================================================================================================
UX-1001         SFO         LAX
UX-2001         SFO         JFK                             SFO              JFK               ORD
UX-3001         LAX         JFK             YYZ             LAX              JFK               YYC           LAX        JFK              YULEdited by: Roxyrollers on Sep 9, 2011 3:59 PM
Edited by: Roxyrollers on Sep 9, 2011 3:59 PM
Edited by: Roxyrollers on Sep 9, 2011 4:00 PM

Hi,
Assuming that day_of_operation is what determines whether a row is 1, 2 or 3:
WITH     got_r_num     AS
     SELECT     f.*
     ,     ROW_NUMBER () OVER ( PARTITION BY  flight_no
                               ORDER BY          day_of_operation
                       ) AS r_num
     FROM    flight_routes        f
     WHERE     route_type     != 'R'
SELECT       flight_no                              || ',' ||
       MAX (CASE WHEN r_num = 1 THEN origin      END)     || ',' ||     -- Origin 1
       MAX (CASE WHEN r_num = 1 THEN destination END)     || ',' ||     -- Destination 1
       MAX (CASE WHEN r_num = 1 THEN stopver     END)     || ',' ||     -- Stopover 1
       MAX (CASE WHEN r_num = 2 THEN origin      END)     || ',' ||     -- Origin 2
       MAX (CASE WHEN r_num = 2 THEN destination END)     || ',' ||     -- Destination 2
       MAX (CASE WHEN r_num = 2 THEN stopver     END)     || ',' ||     -- Stopover 2
       MAX (CASE WHEN r_num = 3 THEN origin      END)     || ',' ||     -- Origin 3
       MAX (CASE WHEN r_num = 3 THEN destination END)     || ',' ||     -- Destination 3
       MAX (CASE WHEN r_num = 3 THEN stopver     END)  AS csv_text            -- Stopover 3
FROM       got_r_num
GROUP BY  flight_no
ORDER BY  flight_no
;Output:
CSV_TEXT
UX-1001,SFO,LAX,,,,,,,
UX-2001,SFO,JFK,,SFO,JFK,ORD,,,
UX-3001,LAX,JFK,YYZ,LAX,JFK,YYC,LAX,JFK,YULThis does not assume that origin1 is always on the same row with day_of_operation=1. Origin1 will be from the row with the lowest day_of_operation, not counting red-eyes. Likewise, origin2 will be from the row with the 2nd lowest day_of_operation, whether that value is 2 or not.
If your data is such that the row with day_of_operation=n will necessarily be the nth lowest one, not counting red-eyes, then you don't need the sub-query got_r_num; just use your real table (with the condition WHERE route_type != 'R'), and use day_of_operation where I used r_num. (This is what Solomon's solution, which I just saw, does.)
Edited by: Frank Kulash on Sep 9, 2011 4:47 PM
Edited by: Frank Kulash on Sep 9, 2011 4:53 PM

Similar Messages

  • ADF: How to get the attributes' values of one single row from a table?

    Currently I have a table with 3 attributes, suppose A,B and C respectively. And I've added an selectionListener to this table. That means when I select one single row of this table, I wish to get the respective value of A, B and C for that particular row. How do I achieve this?
    suppose the method is like:
    public void selectionRow(SelectionEvent se) {            //se is the mouse selection event
    .......??? //what should I do to get the values of A\B\C for one single row?
    Edited by: user12635428 on Mar 23, 2010 1:40 AM

    Hi
    Assuming you are using Jdev 11g.
    Try with this
    public void selectionRow(SelectionEvent se) {
    String val = getManagedBeanValue("bindings.AttributeName.inputValue");
    public static Object getManagedBeanValue(String beanName) {
    StringBuffer buff = new StringBuffer("#{");
    buff.append(beanName);
    buff.append("}");
    return resolveExpression(buff.toString());
    public static Object resolveExpression(String expression) {
    FacesContext facesContext = getFacesContext();
    Application app = facesContext.getApplication();
    ExpressionFactory elFactory = app.getExpressionFactory();
    ELContext elContext = facesContext.getELContext();
    ValueExpression valueExp =
    elFactory.createValueExpression(elContext, expression,
    Object.class);
    return valueExp.getValue(elContext);
    Vikram

  • JAVA code for fetching a single row from a table in SAP

    Hi All
    Can anybody please tell me how to implement the "Select Single" query in JAVA while accessing SAP
    Our requirement is to fetch the Sales Document number(VBELN) by passing the Purchase Order Number(BSTKD) from any of the tables containing these two fields like VBKD.
    Thanks in Advance
    Sree Ramya

    Hi Vijay/Rich/Ravi
        I am already using this FM RFC_READ_TABLE.  In this FM, we have a parameter called <b>DATA</b> in <b>TABLES</b> list.  The length of the record of this table DATA is 512 charaters, whereas the length of the record of the table <b>VBKD</b>(the table which i am trying to fetch) is 586 characters.  As a result of which, an exception is being thrown stating that "The record does not fit into the table <b>DATA</b>".
    Plz clarify this.
    Thanks,
    Sree Ramya.

  • Retrieve a single row from Oracle function

    Hi!
    I have an Oracle function created as follow:
    CREATE OR REPLACE FUNCTION user_data(userId IN users.user_id%TYPE)
    RETURN users%ROWTYPE AS
    userData users%ROWTYPE;
    BEGIN
    SELECT * INTO userData
    FROM users
    WHERE user_id = userId;
    RETURN userData;
    END user_data;
    This function returns a single row from 'users' table.
    I tried to retrieve that single row by mean of:
    CallableStatement statement = connection
    prepareCall("{ call ? := get_data(?) }");
    statement.*registerOutParameter(1, OracleTypes.OTHER)*;
    statement.setInt(2, 103);
    statement.execute();
    ResultSet rs = (ResultSet) statement.getObject(1);*
    String value = rs.getString(2);
    System.out.println(value);
    But this code doesn't work.
    I tried other OracleTypes, also. (I don't know what OracleType I receive when the Oracle function return a ROWTYPE.)
    Can somebody tell me how to retrieve that single row?
    What is the type of out parameter (registerOutParameter()) when the Oracle function return a ROWTYPE?
    Notes: No cursor can be added. No database change is allowed.
    Thank you in advance.
    [Adrián E. Córdoba]
    Edited by: aecordoba on Mar 18, 2011 3:58 PM

    aecordoba wrote:
    I beg your pardon for my bad English. (It isn't my original language.)
    It's not a language problem. It's that you didn't provide any details about what went wrong.
    That just is my problem:
    I know the retrieved result is not a result set: It's a single row.Doesn't matter if it's a single row. You have a ResultSet object. You have to call ResultSet's next() method to get to the first row, even if it's the only row.
    1- Which is the Oracle type I receive in Java when the Oracle function returns a ROWTYPE?I don't know.
    2- How can I get each column value when I receive a single row in Java?The same way as when there are multiple rows: For each row, call ResultSet.next() to advance to the next row, then call the appropriate ResultSet.getXxx() methods to get each column's value. Again: If you have a ResultSet, you must call next() to get to the first row, even if there is only one row. "First row out of 1 total row" is no different than "first row out of 100 total rows."
    EDIT: Okay, I didn't notice before that you're using a CallableStatement with "out" parameters. I've never used one of those before, so I'm not familiar with the details. I really don't know if casting to a ResultSet is appropriate here. Do you actually have documentation that says you can do that, or are you just guessing and trying to find something that works.
    Edited by: jverd on Mar 18, 2011 11:26 AM

  • Adobe form from webdynpro : Getting a single row in the table

    Hello,
    I have a scenario in which I have to create a adobeform from webdynpro application.
    I have created the form and have the context designed in place.
    I am facing a problem in the table I have in my adobeform.
    I am adding rows to this table dynamically using a button using "addInstance"
    Now on the webdynpro side , when I try to read this table I get a single row from this table.
    This row is always the first row of that table.
    I checked the following things from blog   /people/juergen.hauser2/blog/2006/09/12/avoiding-common-mistakes-when-using-tables-on-sap-interactive-forms  , i.e. :
    Cardinality of the node.
    Tick on the option "Repeat Row for Each Data Item".
    But still no success.
    With deadlines to catch I had to post this question after trying a lot.Please help.

    Hello Otto,
    I had found this link before and used the same solution , but unfortunately is taking a long time.
    Now what I am doing is :
    1. I append 10 rows into the table then bind it to the node
    2. Then on the adobe form I have removed the check on "Add row for each line item" because of which it shows only 1 row 
         on the form.
         Now I add rows dynamically, but this puts a limit on the number of rows can be added to the table i.e. 10.
    But this again has added problems like while displaying the form or modifying I hav to handle it seperately and cannot use the same form as it is.( as I have removed the tick for "Add row for each line item" ).
    Thanks,
    Omkar Mirvankar

  • Display spool output i.e a single row in a single line

    hello All,
    I have report that outputs many columns  is single row , when run in the background.
    The problem that I am facing that the the single row of columns is wrapped into second line when certain limit of chararcters is reached. That is the single row of data is placed into two lines.
    While running the job in the background I choose the LOCL or LP01 printer with format X_65_255.
    Also note that I have other SAP systems but in that systems when I use the same procedure(printer and format also the same) for the same report the outputf for single row is not warpped into 2 lines but appears in the same line.
    Please provide your input. Points will be rewrded for helpful answers
    regards
    Sachin

    Note that this solution is for downloading wide formats only - not printing...
    Here is what I did:
    To create format Y_1024_1023 (New name!)
    1) Transaction SPAD
    2) Click "Full Administration" button
    3) Click on "Device Types" tab
    4) Click "Display" button next to "Format Types" field
    5) Place cursor on X_65_255
    6) Click in menu Format --> Create using template (F5)
    7) Change Number of rows to 1023 (if set to 65, you will have more pages and hence more headers)
    9) Change Number of Columns to 1023 (as wide as can be displayed in SP01)
    8)Give new name to format e.g. Y_1023_1023
    To create spool device YSPOOL:
    1) Transaction SPAD
    2) Click on "Device/Servers" tab (first tab!)
    3) Click 'Display" button next to Output Devices field
    4) Click "Create" button (Shift-F1)
    5) Give output device long name (e.g.YSPOOL) and short name (e.g.YSPO)
    6) Device attributes tab --> Device type = ASCIIPRI (Some generic ASCII printer) - I actually used a ZU_ASCII created in our system but ASCIIPRI should also work.
    7) Access method tab --> Host printer = some value (e.g. outfile2)
    8) Save
    Now assign Y_1024_1023 to Device type:
    1) Transaction SPAD
    2) Click on Device types tab
    3) Enter "ASCIIPRI" in "Device types" field and click display button
    4) Click on "Formats" button (F6)
    5) Click on "Create' button (Shift-F1)
    6) In popup, type Y_1023_1023 (or use drop-down to choose from)
    7) Save
    Per OSS Note 186603 --> Call SPAD and choose Settings -> Spool System -> Other. Select 'SP01: Number of Lines for List Display from Format'. You may have to clear cache via SPAD->Goto->Cache control -->Click "Reset Cache Settings".
    Now, when you schedule your background job, choose YSPOOL as your output device and choose the format as Y_1024_1023.  The spool generated from this job will be 1023 columns wide and 1024 lines long (less headers!).  Note that opening such a large spool (long & wide) will consume lots of app server memory so exit out as soon as download to presentation server is complete.

  • Retrieve a single row from Multirow ResultsetObject

    I would like to know how can i retrieve a single row from a multi row result object. I have a result object which retrieved multiple rows and i would like to retrieve only the top row or a specific row. Can any one of you suggest how this can be done. Thank you for all the help in advance.

    call next() on your result set, this goes to the first row and you can retrieve the data with getString(), getInt(), etc.

  • How To Access PAGE ITEM (single row) from HTML source

    Hi Guys,
    I have a page Item that return a string.
    I would like to show this string
    How To Access PAGE ITEM (single row) from HTML source?
    My desire final output is
    <marquee>:P1_PAGE_ITEM</marquee>
    Can please help me
    Thanks

    Hi,
    You can refer the page items in your page header as &itemname. For example, if I have page item P15_TEST, I will add the following in header:
    <marquee>
       &P15_TEST.
    </marquee>But make sure that you have a process before header to populate the value in your page item. Otherwise, there will be a null scrolling (which you can't see!) :)
    Regards,
    Zahid

  • I need to print one query result as a single row

    Hi,
    I need to print one query result as a single row ,which gives more than one value (of subinventories)and also i would like to print the quantity of that particular subinventory at particular place.Please suggest how can i do this in the report builder?

    Actually I need to print inventory report with subinventory break up.For that all subinventories of category code AB are taken as single row.Based on that subinventory value Quantity must be printed at that particular place.
    For ex
    Quantity
    Item no Description Subinventory Code AB_Abc AB_Def AB_ghi
    1 ***** 12 9
    2 ****** 8 5
    like that.I am waiting for the reply.Plz its some how urgent.
    Thank you,

  • Single row from this query without create a group by

    Can I have a single row from this query without create a group by on tipo (TIPO can have only 2 value (A,D)
    SELECT
    CASE TIPO
    WHEN 'D' THEN SUM(IMPORTO) ELSE 0 END DIMPORTO,
    CASE TIPO
    WHEN 'A' THEN SUM(IMPORTO) ELSE 0 END AIMPORTO
    FROM MGIORNALE
    WHERE K_CONTO = '100001' --CONTO
    AND DECODE(T_MOVIM,'MRAP',TO_DATE('31/12/'||to_char(a_competenza),'DD/MM/YYYY'),DATA_RG)
    -- BETWEEN DATAA AND DATAB
    BETWEEN '01/01/2006' AND '31/12/2006'
    --GROUP BY TIPO
    --AND TIPO = COL_conto
    Thanks in advance

    Is like this?
    sum (CASE TIPO
    WHEN 'D' THEN IMPORTO ELSE 0 END) DIMPORTO,

  • Single row from one-to-many

    I am having trouble with a query, I need a single row from a 1-to-many relationship that is prioritized by certain ID's.
    Department Table - dept_id,dept_name
    Employee Table - emp_id, emp_name
    D-E-Lookup Table - dept_id,emp_id
    Employee ID priority are 5,8,9,21,33,78
    I need each department name with the associated employee name.
    There should be only one row per department.
    If that department does not have empID 5, than 8, if not 8 then 9, if not 9 than 21, etc
    Any help would be greatly appreciated.

    How about this:
    WITH departments AS
        ( SELECT ROWNUM AS deptno, COLUMN_VALUE AS dname
          FROM   TABLE(sys.dbms_debug_vc2coll('Sales','IT','Research')) )
       , employees AS
        ( SELECT ROWNUM AS empno, COLUMN_VALUE AS ename
          FROM   TABLE(sys.dbms_debug_vc2coll('Bennett','Parkman','Nakamura')) )
       , department_assignments AS
         ( SELECT 1 AS deptno, 1 AS empno, 5 AS priority FROM dual UNION ALL
           SELECT 1 AS deptno, 2 AS empno, 8 AS priority FROM dual UNION ALL
           SELECT 1 AS deptno, 3 AS empno, 9 AS priority FROM dual UNION ALL
           SELECT 2 AS deptno, 2 AS empno, 8 AS priority FROM dual UNION ALL
           SELECT 2 AS deptno, 3 AS empno, 9 AS priority FROM dual UNION ALL
           SELECT 3 AS deptno, 1 AS empno, 9 AS priority FROM dual UNION ALL
           SELECT 3 AS deptno, 3 AS empno, 21 AS priority FROM dual )
    SELECT dname, ename, priority
    FROM   ( SELECT d.dname
                  , e.ename
                  , dp.priority
                  , DENSE_RANK() OVER (PARTITION BY d.deptno ORDER BY dp.priority) AS ranking
             FROM   departments d
                    LEFT JOIN department_assignments dp ON dp.deptno = d.deptno
                    LEFT JOIN employees e ON e.empno = dp.empno )
    WHERE ranking = 1;
    DNAME         ENAME             PRIORITY
    Sales         Bennett                  5
    IT            Parkman                  8
    Research      Bennett                  9
    3 rows selectedThe <tt>WITH</tt> clause is just to define test data inline rather than creating tables, in case that's not clear.

  • Can you retrieve a single row from a user specified SDO theme?

    I am currently trying to add a polygon to my map straight from the database. I have a table of towns blocks, which with the code below will add the the blocks.
    var id = "addBlocks";
    var theme = "data_source.TOWNS_BLOCKS";
    var themeBasedFOI = new MVThemeBasedFOI(id, theme);      
    mapview.addThemeBasedFOI(themeBasedFOI)
    I was wondering if there was a way to select a single block (a particular row from the table) using this method?
    Thanks,
    Higel

    My theme i this case is VIC_BLOCKS. I looked at the Templated Theme Based FOI Layer before, but from what i could tell you need the xml to define the <features>
    This is the javascript code.
    function temlatedThemeBasedFOI() {     
    var themebasedfoi = new MVThemeBasedFOI('id','data_source.VIC_BLOCKS');
    themebasedfoi.setQueryParameters('443');
    mapview.addThemeBasedFOI(themebasedfoi);
    Now i need the xml to define the query.
    <?xml version="1.0" standalone="yes"?>
    <styling_rules>
    <hidden_info>
         <field column="BLOCK_MEMBER" name="Name"/>
    </hidden_info>
    <rule>
    <features style="M.SMALL CIRCLE"> (BLOCK_MEMBER=:1) </features>
    </rule>
    </styling_rules>
    But what is to be done with this xml. I assume it is in a separate xml file. So where do i put it and how does it link to the javascript? Am i on the right track or have i totally misunderstood the situation?
    Thanks,
    Higel

  • Select a single row from a billion row table

    This is a fictitious scenario, how would you write a select statement on a table with a billion rows. It never returns anything,right? Somebody was suggesting a stored procedure.
    As an example : Assuming a Table with columns      Account(int), TransDate(DateTime), TransNum(int) and few other columns. I need a transaction that happened on 03-05-2014 8:15PM. Clustered index on Account. Non- clustered on TransDate.
    I was suggested to create a stored procedure, inside the SP you have 3 parameters: min_date, max_date, avg= min_date+max_date/2. You create a loop and feed the avg value to the max_date or min_date depending on where the row is. This is a suggestion
    that I am not clear my-self but wanted to see if you guys can help me develop this idea.
    Also please suggest how you would do it in your world. You guys could have much better ideas probably much simpler one's. Thanks in advance.
    svk

    I basically just need transaction for one particular datetime. Not any span. One of our senior developers suggested that a simple select statement takes for ever to return a single row from a billion rows and suggested a vague idea as above. 
    Either there is a suitable index on the column, and the SELECT will be fast.
    Or there is no index on the column, and in that case it will take quite some time to find the row. The only reason to loop is that you don't want to take out a table lock, but in that case you would do something like looping one account at a time. Looping
    over different time values will only mean that you will scan the table multiple times.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Selecting a single row from table control of standard transaction via repor

    Hi Experts,
    I have a requirement of selecting a single row from standard trasaction via ineractive report.
    For eg. for a given document number & item number, how can i select the specified item from transaction VA03.
    I am using call transaction to naviagate to the screen but unable to select the specified item.
    thanks in adavance for your Help.

    You mean selecting the item via BDC?
    Have you tried something like:
    perform bdc_field       using 'BDC_CURSOR'
                                  'VBAP-POSNR(01)'.
    perform bdc_field       using 'RV45A-VBAP_SELKZ(01)'
                                  'X'.
    or whatever your dynpro is to select the first row?

  • Deleting single row from Special Price for Business Partners

    Hi Experts,
    How would I go about about deleting a single row from Special Prices for Business Partners across all BPs when for most of my BPs this is the only special price they have.  I have tried using Copy Discounts function but once you are down to 0 rows the record has effectively gone from the table so there is nothing to copy. 
    Hopefully I won't have to go thorugh 5000 records and delete each one idividually.
    Thanks
    Jon

    Hi Jon,
    You may try a tool called B1TCH:
    /people/community.user/blog/2007/08/19/get-your-kicks-with-di-commander
    Thanks,
    Gordon

Maybe you are looking for

  • Apps are not staying in the group folders,I typed a Bios code thing online into my search bar and now all my apps are not staying in the right places

    Hello I'm having an issue with my iPhone I've typed a code of some sort into my search Barr to find hidden files , but now every one of my apps will not stay in their respective groups of folders...is there anyway to undo this code string ....

  • No data found Error

    Hi all , Following code throwing no data found error. It is working properly for IF x <> 0 condition but when count(*) is 0 then it's thrrowing error. earlier same code working properly as our client is using this application. code on when_button_pre

  • TFS2013 Custom Alert Email Issue

    Hi Folks, I need to create an alert for when a new work item is created on a team project.  I need the alert to work at the team level, however, instead of sending emails to the entire team I need them to go to just two members. When I try and create

  • Error in line break in a file adapter

    Hi, I have a problem with a file receiver adapter. In File Content Conversion I put 'nl' in the endSeparator parameter but when I see the "output.txt" file generated all data are put in same line separated by rectangular characters. I think this rect

  • 10.1 Update Did Not Fix Sending Email Issue!

    after waiting for like forever for AT&T to release 10.1.0.2019, i heard rumors that it would fix the issue i was having with emails not sending while connected to WIFI but will send when not on WIFI.  well i am still having the same problem with 10.1