Trouble with query on Reports

Hi,
I am having trouble with a query which results from a join of 4 tables, of which, one table is shortened by grouping it along one column.
for example
A join B join C join (D grouped by D.S)
In MS Access I had used a separate query to represent this and done a join with the remaining tables to generate my report.
Any one has any idea about how this can be done using just one query, or any way I can store the sub-result elsewhere like in Access.
Thanks!

Not usre this is a reports issue, but:
I think you are trying to select from tables and queries in one.
IN your SQL statement try
SELECT data,etc
FROM
A,
B,
C
, (select distinct S from D) Q_D
where
A join B join C join Q_D
Note that I don't think you can use sub queries like this in Access

Similar Messages

  • OC4J: Troubles with characters in Reports 9i and JSP

    We are having troubles with especial characters in OC4J. Those problems appear in JSP's and Reports.
    Some information about it:
    - the especial characters in spanish are replaced by strange characters (2 chars for every especial char).
    - this happens with strings from ApplicationResources.properties (we use Struts framework) and NOT with those chars read from database via JDBC.
    - the problem doesn't happen in JDeveloper. It happens when we deploy the application to iAS 9i R2. With reports, it happens both from RWBuilder and local OC4J + RWServlet
    - When we used iAS R1 core version this didn't happen. When we changed to iAS R2 full installation (to be able to use Reports Server) it began to happen.
    Any help about it ?
    Thanks

    Hi Pozo,
    Have you got the solution for the problem specified. Even I'm facing the same problem with Arabic characters.
    Pl. let me know if you've got the solution.
    Thanks,
    Vinod.

  • Help with Query and report assignment

    Hi,
    I am able to attach 2 transactions (e.g. MM03 and ME23) to my SAP Query through report assignment.  My question is how do I skip the selection screen that asks me if I want to Display Material or Display PO?
    What i want to happen is in my report, if I click on the material - MM03 is called and if I click on the PO, ME23 is called.
    Is this even possible through queries?
    Cheers.

    Thanks for replying.
    I did as suggested and added the following at the start of my code.
    AT LINE-SELECTION.
    GET CURSOR FIELD FILD_NAME VALUE F_VALUE.
    I set a breakpoint in AT LINE-SELECTION and when I executed my query, it wasn't passing through it. 
    When I removed the line AT LINE-SELECTION, it passes through GET CURSOR FIELD, but FILD_NAME is not populated.  It's blank.
    Below is my code at the moment:
    data: fild_name(30), F_VALUE(50).
    *AT LINE-SELECTION.
    GET CURSOR FIELD FILD_NAME VALUE F_VALUE.
    if fild_name = 'MAT'.
    PARAMETERS P_MATNR LIKE MARA-MATNR.  "DD ref. as in MM03
    SET PARAMETER ID 'MAT' FIELD P_MATNR. "ID for MARA-MATNR
    CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
    endif.
    Appreciate any help.

  • Having Trouble with Drill Down Report

    Hello,
    I am having issues with getting Carl's example to work. http://htmldb.oracle.com/pls/otn/f?p=11933:13
    This is my main query:
    SELECT
      AD_SPRIDEN_ID,
      AD_FIRST_NAME_PREF,
      AD_LAST_NAME_PREF,
      AD_SPOUSE_BANNER_ID,
      AD_SPS_PREF_FIRST_NAME,
      AD_SPS_PREF_LAST_NAME,
      AD_ATHL_MATCH_GIFTS_CFY,
      AD_CURES_MATCH_GIFTS_CFY,
      AD_UNRES_MATCH_GIFTS_CFY,
      AD_ENDOW_MATCH_GIFTS_CFY,
      AD_FACIL_MATCH_GIFTS_CFY,
      AD_SPS_ATHL_MATCH_GIFTS_CFY,
      AD_SPS_CURES_MATCH_GIFTS_CFY,
      AD_SPS_UNRES_MATCH_GIFTS_CFY,
      AD_SPS_ENDOW_MATCH_GIFTS_CFY,
      AD_SPS_FACIL_MATCH_GIFTS_CFY,
    FROM MATCHING_GIFTSI want to drill down on past fiscal year data:
    SELECT
      AD_SPRIDEN_ID,
      AD_FIRST_NAME_PREF,
      AD_LAST_NAME_PREF,
      AD_SPOUSE_BANNER_ID,
      AD_SPS_PREF_FIRST_NAME,
      AD_SPS_PREF_LAST_NAME,
      AD_ATHL_MATCH_GIFTS_CFY_1,
      AD_CURES_MATCH_GIFTS_CFY_1,
      AD_UNRES_MATCH_GIFTS_CFY_1,
      AD_ENDOW_MATCH_GIFTS_CFY_1,
      AD_FACIL_MATCH_GIFTS_CFY_1,
      AD_ATHL_MATCH_GIFTS_CFY_2,
      AD_CURES_MATCH_GIFTS_CFY_2,
      AD_UNRES_MATCH_GIFTS_CFY_2,
      AD_ENDOW_MATCH_GIFTS_CFY_2,
      AD_FACIL_MATCH_GIFTS_CFY_2,
      AD_ATHL_MATCH_GIFTS_CFY_3,
      AD_CURES_MATCH_GIFTS_CFY_3,
      AD_UNRES_MATCH_GIFTS_CFY_3,
      AD_ENDOW_MATCH_GIFTS_CFY_3,
      AD_FACIL_MATCH_GIFTS_CFY_3,
      AD_ATHL_MATCH_GIFTS_CFY_4,
      AD_CURES_MATCH_GIFTS_CFY_4,
      AD_UNRES_MATCH_GIFTS_CFY_4,
      AD_ENDOW_MATCH_GIFTS_CFY_4,
      AD_FACIL_MATCH_GIFTS_CFY_4,
      AD_SPS_ATHL_MATCH_GIFTS_CFY_1,
      AD_SPS_CURES_MATCH_GIFTS_CFY_1,
      AD_SPS_UNRES_MATCH_GIFTS_CFY_1,
      AD_SPS_ENDOW_MATCH_GIFTS_CFY_1,
      AD_SPS_FACIL_MATCH_GIFTS_CFY_1,
      AD_SPS_ATHL_MATCH_GIFTS_CFY_2,
      AD_SPS_CURES_MATCH_GIFTS_CFY_2,
      AD_SPS_UNRES_MATCH_GIFTS_CFY_2,
      AD_SPS_ENDOW_MATCH_GIFTS_CFY_2,
      AD_SPS_FACIL_MATCH_GIFTS_CFY_2,
      AD_SPS_ATHL_MATCH_GIFTS_CFY_3,
      AD_SPS_CURES_MATCH_GIFTS_CFY_3,
      AD_SPS_UNRES_MATCH_GIFTS_CFY_3,
      AD_SPS_ENDOW_MATCH_GIFTS_CFY_3,
      AD_SPS_FACIL_MATCH_GIFTS_CFY_3,
      AD_SPS_ATHL_MATCH_GIFTS_CFY_4,
      AD_SPS_CURES_MATCH_GIFTS_CFY_4,
      AD_SPS_UNRES_MATCH_GIFTS_CFY_4,
      AD_SPS_ENDOW_MATCH_GIFTS_CFY_4,
      AD_SPS_FACIL_MATCH_GIFTS_CFY_4
    FROM MATCHING_GIFTSExample if the user clicks on AD_ATHL_MATCH_GIFTS_CFY in the first query, I want the following fields to display (note that these are colums. I would want the actual value of the columns to display):
    AD_ATHL_MATCH_GIFTS_CFY_1
    AD_ATHL_MATCH_GIFTS_CFY_2
    AD_ATHL_MATCH_GIFTS_CFY_3
    AD_ATHL_MATCH_GIFTS_CFY_4
    or if the user selected AD_SPS_CURES_MATCH_GIFTS_CFY, I want the following to display:
    AD_SPS_CURES_MATCH_GIFTS_CFY_1
    AD_SPS_CURES_MATCH_GIFTS_CFY_2
    AD_SPS_CURES_MATCH_GIFTS_CFY_3
    AD_SPS_CURES_MATCH_GIFTS_CFY_4
    Any help is appreciated,
    Kelly

    Hi Kelly,
    OK - this is what I've done:
    1 - Created two application items through Shared Components:
    G_CITY_ID
    G_DEPTNO
    these will be used to pass CITY_ID and DEPTNO values from the page to application processes using Ajax
    2 - Created two application processes through Shared Components, with the following settings:
    Process Point: On Demand: Run this application process when requested by a page process
    Name: GET_DEPARTMENTS
    Type: PL/SQL Anonymous Block
    Process Text:
    BEGIN
    HTP.P('<table class="t17Standard" cellspacing="0" cellpadding="0" border="0" summary="">');
    HTP.P('<TR>');
    HTP.P('<TH class="t17ReportHeader">DEPTNO</TH>');
    HTP.P('<TH class="t17ReportHeader">DNAME</TH>');
    HTP.P('</TR>');
    FOR x IN (SELECT DEPTNO, DNAME FROM DEPT WHERE CITY_ID = :G_CITY_ID ORDER BY DNAME)
    LOOP
    HTP.P('<TR>');
    HTP.P('<TD class="t17data">' || x.DEPTNO || '</TD>');
    HTP.P('<TD class="t17data">' || x.DNAME || '</TD>');
    HTP.P('</TR>');
    END LOOP;
    HTP.P('</table>');
    END;This will return a list of departments for a selected CITY_ID value in the report
    Process Point: On Demand: Run this application process when requested by a page process
    Name: GET_EMPLOYEES
    Type: PL/SQL Anonymous Block
    Process Text:
    BEGIN
    HTP.P('<table class="t17Standard" cellspacing="0" cellpadding="0" border="0" summary="">');
    HTP.P('<TR>');
    HTP.P('<TH class="t17ReportHeader">EMPNO</TH>');
    HTP.P('<TH class="t17ReportHeader">ENAME</TH>');
    HTP.P('<TH class="t17ReportHeader">SAL</TH>');
    HTP.P('<TH class="t17ReportHeader">COMM</TH>');
    HTP.P('</TR>');
    FOR x IN (SELECT EMPNO, ENAME, TO_CHAR(NVL(SAL,0)) SAL, TO_CHAR(NVL(COMM,0)) COMM FROM EMP WHERE DEPTNO = :G_DEPTNO ORDER BY UPPER(ENAME))
    LOOP
    HTP.P('<TR>');
    HTP.P('<TD class="t17data">' || x.EMPNO || '</TD>');
    HTP.P('<TD class="t17data">' || x.ENAME || '</TD>');
    HTP.P('<TD class="t17data">' || x.SAL || '</TD>');
    HTP.P('<TD class="t17data">' || x.COMM || '</TD>');
    HTP.P('</TR>');
    END LOOP;
    HTP.P('</table>');
    END;This will return a list of employees for a selected DEPTNO value in the report
    3 - On the report page's HTML Header setting, I have entered:
    <script type="text/javascript">
    function getEmployees(deptno)
      var d = document.getElementById("DEPTNO_" + deptno);
      if (d.style.display == "none")
        var g = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=GET_EMPLOYEES',0);
        g.add('G_DEPTNO',deptno);
        var gRet = g.get();
        d.innerHTML = gRet;
        d.innerHTML += "";
        d.style.display = "block";
      else
        d.style.display = "none";
    function getDepartments(city)
      var d = document.getElementById("CITY_ID_" + city);
      if (d.style.display == "none")
        var g = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=GET_DEPARTMENTS',0);
        g.add('G_CITY_ID',city);
        var gRet = g.get();
        d.innerHTML = gRet;
        d.innerHTML += "";
        d.style.display = "block";
      else
        d.style.display = "none";
    </script>These are two javascript functions that will be called when an item is clicked in the report.
    Each runs an Ajax call to the appropriate application process, passes the selected DEPTNO or CITY_ID value into the application items, runs the process, retrieves the results and then inserts that into a DIV next to the item in the report and makes that visible. Clicking the link again just hides the DIV
    4 - In the report definition, on the DEPTNO column definition, I have set the following HTML Expression:
    <a href="#" onclick="getEmployees('#DEPTNO#');">#DEPTNO#</a><div id="DEPTNO_#DEPTNO#" style="display:none"></div>This creates the DEPTNO as a link and clicking the link runs the getEmployees javascript. Next to the link is a DIV tag with a unique ID (created using #DEPTNO# - which is replaced by the actual DEPTNO value on the row)
    5 - I have done a similar thing on the CITY_ID setting:
    <a href="#" onclick="getDepartments('#CITY_ID#');">#CITY_ID#</a><div id="CITY_ID_#CITY_ID#" style="display:none"></div>And, that should be it - the user clicks the "link", the javascript is called, the clicked value is passed into an application item, which, in turn, filters the required data. This data is formatted into a table and passed back to the page. The javascript then receives this and inserts it into the DIV next to the link and displays it.
    I think the CITY_ID column is one that I added to the standard DEPT table, so you may not have that one, but hopefully you get the idea from the above
    Also note that I have used the Theme 17 Standard report template - you will need to adjust the class names in the application processes if you are using a different theme/template
    I hope that all makes sense!
    Andy

  • Having trouble with query

    I am trying to query for a report to list aircraft by manufacturer, model name, aircraft number, destinations flown, miler per charter and the total revenue per charter, as well as total amount of revenue generated and total number of mile flown for each aircraft. This is what I have so far, I keep getting stumped when I try to sum I get error that certain lines is not single-group group function.
    -----DATA
    3 tables:
    Aircraft {PK} ac_number
    {FK} mod_code
    ac_ttaf
    ac_ttel
    ac_tter
    Model {PK} mod_code
    mod_manufacturer
    mod_name
    mod_seats
    mod_chg_mile
    Charter {PK} char_trip
    char_date
    {FK2} ac_number
    char_destination
    char_hours_flown
    char_hours_wait
    char_fuel_gallons
    char_oil_qts
    FK1} cus_code
    ---code written so far--
    --program Unit 5 Q4 Reprot of Aircraft By Renvue                         
    --author Barbara Forget                                                  
    --date February 24.2008                                                  
    --purpose to list aircraft by revenue, model, manufacturer and number    
    SELECT m.mod_manufacturer "MANUFACTURER",
    m.mod_name "A/C NAME",
    a.ac_number "A/C #",
    c.destination "AIRPORT",
    c.char_distance "TOTALMILEAGE"
    FROM hartmar.model m,
    hartmar.aircraft a,
    hartmar.charter c
    WHERE m.mod_code = a.mod_code (+)
    AND a.ac_number = c.ac_number (+)
    ORDER BY m.mod_name
    Can someone give me a little input as to how to accomplish this, I get the report as such
    MANUFACTURER A/C NAME A/C # AIR TOTALMILEAGE
    Piper Axtec 1484P BNA 352
    Piper Axtec 1484P STL 508
    Piper Axtec 1484P TYS 644
    Piper Axtec 1484P STL 472
    Piper Axtec 1484P STL 508
    Piper Axtec 1484P TYS 644
    Piper Axtec 1484P BNA 352
    Piper Axtec 1484P STL 472
    Piper Axtec 1484P STL 508
    Cessna Citation Mustang 1234C
    Cessna Citation Sovereign 2345C
    MANUFACTURER A/C NAME A/C # AIR TOTALMILEAGE
    Beechcraft KingAir 2289L GNV 1645
    Beechcraft KingAir 2289L ATL 1023
    Beechcraft KingAir 2289L GNV 1645
    Beechcraft KingAir 2289L GNV 1574
    Beechcraft KingAir 2289L ATL 936
    Beechcraft KingAir 2289L ATL 936
    Beechcraft KingAir 2289L GNV 1574
    Beechcraft KingAir 2289L ATL 1023
    Beechcraft KingAir 2289L GNV 1574
    Beechcraft KingAir 2289L GNV 1574
    Piper Navajo Chieftain 2278V GNV 1574
    MANUFACTURER A/C NAME A/C # AIR TOTALMILEAGE
    Piper Navajo Chieftain 4278Y TYS 644
    Piper Navajo Chieftain 2278V BNA 320
    Piper Navajo Chieftain 4278Y GNV 1574
    Piper Navajo Chieftain 4278Y GNV 1574
    Piper Navajo Chieftain 4278Y STL 472
    Piper Navajo Chieftain 2278V GNV 1574
    Piper Navajo Chieftain 2278V BNA 320
    Piper Navajo Chieftain 4278Y ATL 998
    Piper Navajo Chieftain 4278Y TYS 644
    Piper Navajo Chieftain 2278V MOB 884
    Piper Navajo Chieftain 4278Y TYS 646
    MANUFACTURER A/C NAME A/C # AIR TOTALMILEAGE
    Piper Navajo Chieftain 4278Y ATL 936
    Piper Navajo Chieftain 2278V MQY 312
    Piper Navajo Chieftain 2278V MQY 312
    Piper Navajo Chieftain 4278Y ATL 936
    Piper Navajo Chieftain 4278Y TYS 646
    Piper Navajo Chieftain 2278V MOB 884
    Piper Navajo Chieftain 4278Y ATL 998
    Piper Navajo Chieftain 4278Y STL 472
    Piper Navajo Chieftain 4278Y ATL 998
    Piper Navajo Chieftain 4278Y GNV 1574
    Piper Navajo Chieftain 2278V BNA 320
    MANUFACTURER A/C NAME A/C # AIR TOTALMILEAGE
    Piper Navajo Chieftain 4278Y TYS 644
    Piper Navajo Chieftain 4278Y ATL 936
    Piper Navajo Chieftain 4278Y TYS 646
    47 rows selected.
    but, I need each a/c to be listed once with charter number total miles flown and total revenue generated.
    Any suggestions?

    Here's what I could fathom:
    test@ORA10G>
    test@ORA10G> with model as (
      2    select 1 as mod_code, 'Cessna' as mod_manufacturer, 'Citation Mustang' as mod_name, 0.1 as mod_chg_mile from dual union all
      3    select 2,'Piper',     'Axtec',             0.2 from dual union all
      4    select 3,'Piper',     'Navajo Chieftain',  0.3 from dual union all
      5    select 4,'Beechcraft','KingAir',           0.1 from dual union all
      6    select 5,'Cessna',    'Citation Sovereign',0.5 from dual),
      7  aircraft as (
      8    select '1234C' as ac_number, 1 as mod_code from dual union all
      9    select '1484P', 2 from dual union all
    10    select '2278V', 3 from dual union all
    11    select '2289L', 4 from dual union all
    12    select '2345C', 5 from dual union all
    13    select '4278Y', 3 from dual),
    14  charter as (
    15    select 1 as char_trip, '1234C' as ac_number, null as destination, null as char_distance from dual union all
    16    select 2, '1484P', 'BNA', 10     from dual union all
    17    select 3, '1484P', 'STL', 10     from dual union all
    18    select 4, '1484P', 'STL', 20     from dual union all
    19    select 5, '1484P', 'TYS', 100    from dual union all
    20    select 6, '2278V', 'BNA', 20     from dual union all
    21    select 7, '2278V', 'GNV', 30     from dual union all
    22    select 8, '2278V', 'MOB', 40     from dual union all
    23    select 9, '2278V', 'MQY', 50     from dual union all
    24    select 10, '2289L', 'ATL', 10    from dual union all
    25    select 11, '2289L', 'ATL', 20    from dual union all
    26    select 12, '2289L', 'GNV', 15    from dual union all
    27    select 13, '2289L', 'GNV', 25    from dual union all
    28    select 14, '2345C',  null, null  from dual union all
    29 select 15, '4278Y', 'ATL', 10 from dual union all
    30 select 16, '4278Y', 'ATL', 25 from dual union all
    31    select 17, '4278Y', 'GNV', 35    from dual union all
    32    select 18, '4278Y', 'STL', 20    from dual union all
    33    select 19, '4278Y', 'TYS', 40    from dual union all
    34    select 20, '4278Y', 'TYS', 50    from dual)
    35  --
    36  SELECT
    37    m.mod_manufacturer as manufacturer,
    38    m.mod_name as ac_name,
    39    a.ac_number as ac_num,
    40    c.destination as airport,
    41    sum(c.char_distance) as total_mileage,
    42    to_char(sum(c.char_distance*m.mod_chg_mile*0.035),'$99,990.99') as trip_charge
    43  FROM
    44    model m,
    45    aircraft a,
    46    charter c
    47  WHERE m.mod_code = a.mod_code(+)
    48  AND a.ac_number = c.ac_number(+)
    49  GROUP BY m.mod_manufacturer,
    50           m.mod_name,
    51           a.ac_number,
    52           c.destination;
    MANUFACTUR AC_NAME            AC_NU AIR TOTAL_MILEAGE TRIP_CHARGE
    Piper      Axtec              1484P BNA            10       $0.07
    Piper      Navajo Chieftain   2278V BNA            20       $0.21
    Piper      Navajo Chieftain   2278V MQY            50       $0.53
    Piper      Navajo Chieftain   4278Y TYS            90       $0.95
    Piper      Navajo Chieftain   4278Y GNV            35       $0.37
    Cessna     Citation Mustang   1234C
    Piper      Navajo Chieftain   2278V MOB            40       $0.42
    Piper      Axtec              1484P STL            30       $0.21
    Piper      Axtec              1484P TYS           100       $0.70
    Piper      Navajo Chieftain   4278Y STL            20       $0.21
    Piper      Navajo Chieftain   2278V GNV            30       $0.32
    Beechcraft KingAir            2289L ATL            30       $0.11
    Cessna     Citation Sovereign 2345C
    Beechcraft KingAir            2289L GNV            40       $0.14
    Piper Navajo Chieftain 4278Y ATL 35 $0.37
    15 rows selected.
    test@ORA10G>
    test@ORA10G>Notes:
    (1) Lines 29 and 30 (in bold) show that '4278Y', which corresponds to mod_code = 3 i.e. "Piper Navajo Chieftain", flew to ATL twice traveling 10 and 20 miles respectively.
    (2) The last line of the resultset (in bold) shows the total miles for "Piper Navajo Chieftain" i.e. 35 miles.
    The trip charge, consequently, is 35 miles * 0.3 * 0.035 = 0.3675
    where 0.3 is the mod_chg_mile for "Piper Navajo Chieftain".
    (3) Note the change in the columns that constitute the GROUP BY clause. What it does is - for every combination of:
        (i)    m.mod_manufacturer
        (ii)   m.mod_name
        (iii)  a.ac_number
        (iv)   c.destinationit sums up the c.char_distance and multiplies it with the product of m.mod_chg_mile and 0.035.
    (4) Also note that you can use aggregate functions (sum, in this case) more than once in the SELECT <column_list> part of the query. You need to include the rest of the columns (the 4 above) in the GROUP BY clause.
    Hope that helps.
    cheers,
    pratz

  • Trouble With Query Between Dates:

    Hello Again,
    The query below is giving some trouble in that the line where 'CURRENT_DATE' is between 'START_DATE' and 'END_DATE.
    The query returns records close to those dates but some missing on the END_DATE. I was wondering if there is 'time at play here? How is only the date component used for the search?
    select * from (
    SELECT TO_CHAR (LEAVE.START_DATE, 'DD-MON-YY') AS Start_Date,
    TO_CHAR (LEAVE.END_DATE, 'DD-MON-YY') AS end_date,
    TO_CHAR (CURRENT_DATE, 'DD-MON-YY')AS CURRENT_DATE,
    LEAVE.NAME as NAME,
    LEAVE.ID as ID,
    LEAVE.DAYS as Days,
    LEAVE.SUPERVISOR as Supervisor,
    LEAVE.LEAVE_TYPE,
    FROM "LEAVE"
    WHERE CURRENT_DATE BETWEEN start_date AND end_date
    Kind Regards,
    Steve Welch

    Hi Steve,
    You should be aware that the Oracle datatype DATE also includes a time component.
    select to_char(current_date,'DD-MON-YYYY HH24:MI:SS') date_and_time from dual;
    DATE_AND_TIME       
    18-AUG-2011 13:29:49 Could it be that you are missing some records because they have a time which falls outside your condition?
    Regards
    Andre

  • Trouble with query and parse in nstrument i/o assistant

    I am setting up instrument i/o assistant to communicate with a simple serial instrument.  Labview is communicating effectively with my instrument (instrument responds to on/off commands sent by labview) but am not reading data from the instrument.
    Here is the problem:
    I send a command "=RV" followed by carraige return.
    The instrument should be sending back two lines of information:
    "=RV
    V=n.n-mm"
    where n and m are numbers, giving me a vacuum pressure.
    When I run "Query and Parse" I get back:
    "=RVc"
    But, the information I really need is in the second line, and is missing for some reason.  Is there some reason I am not reading the full string of information from the instrument, and how can I change it to get the data I need???
    Thanks to anyone who can help.

    In the Instrument I/O Assistant's query and parse step, set your termination character to none. Your instrument is sending a CR, LF, or both and with a termination character enabled, the read will terminate as soon as that character is read. Therefore, you only get the first line of data.

  • Dev 6.0: Problems with Query in Reports

    Hi !
    I can't create a query of such form
    select D.*, U.*, C.*
    from F007 D, FU02 U, F002 C
    where D.op_num = :Num_of_operation
    and U.id = D.a_client
    and C.id = D.p_client
    Only such
    select D.*, U.iden, U.rs, U....., C.iden, C.bic, C.....
    from F007 D, FU02 U, F002 C
    where D.op_num = :Num_of_operation
    and U.id = D.a_client
    and C.id = D.p_client
    Is this bug or feature ?
    null

    If your looking to pull every field, as you were in your example, Try just:
    SELECT *
    FROM ...
    null

  • Trouble with query

    hi all,
    I had DEPT and EMP tables.
    Each Department contains more than 2 Employees.
    now i need a query to retrieve EMPID in the first row of each Department
    thanks in advance
    rampa

    And have you coded anything yet for this homework assignment?
    HINT: search for 'pivot table' or 'crosstab query'

  • Query Engine report error with Crystal Report 9 And MS SQL SErver 2000

    Hi,
    Currently I m doing a report with Crystal Report 9 and MS SQL as back End.I used a stored procedure to fetch data from DB.The Stored procedure works properly with query analyzer . But when I take report through application
    "Table Not Found" Error is coming.Later I Found that In stored procedure for certain conditions only this error comes.But I cant resolve it.
    Can any One check any pblm with this query
    ELSE IF ISNULL(@intSourceID,0) = 10 Or ISNULL(@intSourceID,0) = 11 Or ISNULL(@intSourceID,0) = 12 Or ISNULL(@intSourceID,0) = 13 Or ISNULL(@intSourceID,0) = 14  
    BEGIN
    IF ISNULL(@intSchemeID,0) <> 0  
    BEGIN
    Select* From table
    END 
    ELSE IF ISNULL(@intSchemeID,0) = 0  
    BEGIN
    Select 
    END 
    END
    When I comment the above codes , report works fine....
    Can any one help me....plz....I m in such a critical situation...

    Hi,
    Currently I m doing a report with Crystal Report 9 and MS SQL as back End.I used a stored procedure to fetch data from DB.The Stored procedure works properly with query analyzer . But when I take report through application
    "Table Not Found" Error is coming.Later I Found that In stored procedure for certain conditions only this error comes.But I cant resolve it.
    Can any One check any pblm with this query
    ELSE IF ISNULL(@intSourceID,0) = 10 Or ISNULL(@intSourceID,0) = 11 Or ISNULL(@intSourceID,0) = 12 Or ISNULL(@intSourceID,0) = 13 Or ISNULL(@intSourceID,0) = 14  
    BEGIN
    IF ISNULL(@intSchemeID,0) <> 0  
    BEGIN
    Select* From table
    END 
    ELSE IF ISNULL(@intSchemeID,0) = 0  
    BEGIN
    Select 
    END 
    END
    When I comment the above codes , report works fine....
    Can any one help me....plz....I m in such a critical situation...
    Refer the above statement highlighted in BOLD. That statement is WRONG. Select what ???? Try any one of the below statement,
    select ''
    --or
    select 0
    --or
    select null
    Regards, RSingh

  • Trouble with site in flash should be visualized FULL  screen some people report to have seen very small

    REF.: trouble with site in flash that should be visualized in
    FULL screen as width/height parameters are set
    'width','100%','height','100%' - however some people report to have
    seen it very small as a “miniature”
    I simply cannot explain why some people report to see the
    flash site very small with Internet Explorer as I visualize it here
    in full screen.
    To be honest with Firefox 2 the same happens here , it does
    not open in full screen.
    I´ve pasted bellow the html source code employed ; The
    script is Adobe´s AC_RunActiveContent.js //v1.0
    Could someone please help me out ?
    Thank you
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title> </title>
    <META NAME="description" CONTENT="">
    <META NAME="keywords" CONTENT="">
    <meta http-equiv="Content-Type" content="text/html;">
    <script src="scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href
    ="giovannirocco_css/giovannirocco.css" />
    </head>
    <body>
    <div align="center">
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','wid th','100%','height','100%','src','flash/giovannirocco_0','quality','high','pluginspage','h ttp://www.macromedia.com/go/getflashplayer','movie','flash/giovannirocco_0'
    ); //end AC code
    </script>
    <noscript>
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
    width="100%" height="100%">
    <param name="movie" value="flash/giovannirocco_0.swf"
    />
    <param name="quality" value="high" />
    <embed src="flash/giovannirocco_0.swf" quality="high"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash" width="100%" height="100%">
    </embed>
    </object>
    </noscript>
    </div>
    </body>
    </html>

    Hey ! anyone to help me please ?

  • Sap Query Web Reporting - Issues with accents

    Hi,
    We was using Web Reporting for Sap Querys, throw this tool we can generate automatically web reports.
    When we go to generated web report, selection screen show us character &#56292; instead accent letters.
    In addition to this, generated web report shows two buttons with german text: "report ausf?" and "Werte zur?zen".
    Guaranteed Rewards points.

    Hi Peluka,
    are these web report generate by SAp Query ITS based. If yes this is the right forum to ask, if no I would sugest to ask in the BI forum.
    Best regards,
    Klaus

  • I have SSRS parametarized report in that one data set have repeated values with query parameter . but while am mapping that query parameter to report parameter i need to pass distinct values. How can i resolve this

    I have SSRS parametarized report in that one data set have repeated values with query parameter . but while am mapping that query
    parameter to report parameter i need to pass distinct values. How can i resolve this

    Hi nancharaiah,
    If I understand correctly, you want to pass distinct values to report parameter. In Reporting Service, there are only three methods for parameter's Available Values:
    None
    Specify values
    Get values from a query
    If we utilize the third option that get values from a dataset query, then the all available values are from the returns of the dataset. So if we want to pass distinct values from a dataset, we need to make the dataset returns distinct values. The following
    sample is for your reference:
    Select distinct field_name  from table_name
    If you have any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • SQL Query updateable report with row selector. Update process.

    I have a SQL Query updateable report with the row selector(s).
    How would I identify the row selector in an update process on the page.
    I would like to update certain columns to a value of a select box on the page.
    Using the basic:
    UPDATE table_name
    SET column1=value
    WHERE some_column=some_value
    I would need to do:
    UPDATE table_name
    SET column1= :P1_select
    WHERE [row selector] = ?
    Now sure how to identify the [row selector] and/or validate it is checked.
    Thanks,
    Bob

    I don't have the apex_application.g_f01(i) referenced in the page source...In the page source you wouldn't find anything by that name
    Identify the tabular form's checkbox column in the page(firebug/chrome developer panel makes this easy)
    It should be like
    &lt;input id=&quot;...&quot; value=&quot;&quot; type=&quot;checkbox&quot; name=&quot;fXX&quot; &gt;we are interested in the name attribute , get that number (between 01 and 50)
    Replace that number in the code, for instance if it was f05 , the code would use
    apex_application.g_f05
    --i'th checked record' primary keyWhen you loop through a checkbox array, it only contains the rows which are checked and it is common practice to returns the record's primary key as the value of the checkbox(available as the the i'th array index as apex_application.g_f05(i) , where i is sequence position of the checked row) so that you can identify the record.

  • Having trouble with Tiscali/TalkTalk site when accessed with 'FireFox', can't 'reply' to emails or report 'spam', other functions seem ok

    Having trouble with Tiscali/TalkTalk site when accessed with 'FireFox',
    can't 'reply' to emails or report 'spam', other functions seem ok
    == This happened ==
    Every time Firefox opened
    == On/Off few months now all time

    Try deleting cookies and cache:
    1. Tools| Clear recent history
    2. Time range to clear: Everything
    3. If it isn't already selected, select '''Cookies''' and '''Cache'''
    4. '''Clear now'''
    <u>Check cookie exceptions</u>
    1. Tools | Options | Privacy Panel
    2. Set '''Firefox will: Use custom settings for history''' Insure Accept cookies for sites and accept third-party cookies is selected
    3. Click '''Exceptions'''. If the misbehaving site is in that list, select it and click '''Remove site'''
    Also see [[Updating Firefox]]

Maybe you are looking for