Error in query with COUNT expression and Group By Clause

Hi
I have this query that when run gives me the following error:
SQL command not properly ended:
The code is as below:
SELECT
          st_enrollment.student_id ,
          ce_family_member.last_name ,
          st_enrollment.grade_level ,
          ce_family_member.DATE_OF_BIRTH ,
          ce_family_member.GENDER,
          at_hourly_attendance_records.ABSENCE_REASON_CODE,
          at_hourly_attendance_records.CALENDAR_DATE,
          COUNT(st_enrollment.student_id) AS days_absent
          FROM
                  at_hourly_attendance_records,
                  ce_family_member,
                  st_enrollment
          WHERE
          st_enrollment.student_id = at_hourly_attendance_records.student_id
         AND ce_family_member.student_id = st_enrollment.student_id
            AND st_enrollment.school_id = 705
            AND st_enrollment.school_year = 2006
            AND st_enrollment.district_number = 1000
            AND at_hourly_attendance_records.ATTENDANCE_STATUS = 'A'
            AND at_hourly_attendance_records.CALENDAR_DATE < '16-MAR-06'
          GROUP BY st_enrollment.student_id,
                   ce_family_member.last_name
                     st_enrollment.grade_level ,
                     ce_family_member.DATE_OF_BIRTH ,
                     ce_family_member.GENDER,
                     at_hourly_attendance_records.ABSENCE_REASON_CODE,
                     at_hourly_attendance_records.CALENDAR_DATE;
       All suggestions are gratefully acknowledgment, Thanks in advance

Thanks a lot. In fact I discovered it myself and I am immensely grateful to you for pointing the error..

Similar Messages

  • Error in query with COUNT expression

    Hi
    I have a query that returns an error as follows:
    "Column Ambiguously defined"
    the code is as follows:
    SELECT
              ce_family_member.student_id ,
              ce_family_member.last_name ,
              st_enrollment.grade_level ,
              ce_family_member.DATE_OF_BIRTH ,
              ce_family_member.GENDER,
              at_hourly_attendance_records.ABSENCE_REASON_CODE,
              at_hourly_attendance_records.CALENDAR_DATE,
              COUNT(at_hourly_attendance_records.student_id) AS days_absent
              FROM
                      at_hourly_attendance_records,
                      ce_family_member,
                      st_enrollment
              WHERE
              st_enrollment.student_id = at_hourly_attendance_records.student_id
             AND ce_family_member.student_id = st_enrollment.student_id
                AND st_enrollment.school_id = 705
                AND st_enrollment.school_year = 2006
                AND st_enrollment.district_number = 1000
                AND at_hourly_attendance_records.ATTENDANCE_STATUS = 'A'
                AND at_hourly_attendance_records.CALENDAR_DATE < '16-MAR-06'
              GROUP BY student_id; All help is highly appreciated. Thanks very much in advance

    Hi
    I followed your suggestion. But I still get an error as follows:
    Not a Group By Expression. And it points to the second line (ce_family_member)
    SELECT
              st_enrollment.student_id ,
              ce_family_member.last_name ,
              st_enrollment.grade_level ,
              ce_family_member.DATE_OF_BIRTH ,
              ce_family_member.GENDER,
              at_hourly_attendance_records.ABSENCE_REASON_CODE,
              at_hourly_attendance_records.CALENDAR_DATE,
              COUNT(st_enrollment.student_id) AS days_absent
              FROM
                      at_hourly_attendance_records,
                      ce_family_member,
                      st_enrollment
              WHERE
              st_enrollment.student_id = at_hourly_attendance_records.student_id
             AND ce_family_member.student_id = st_enrollment.student_id
                AND st_enrollment.school_id = 705
                AND st_enrollment.school_year = 2006
                AND st_enrollment.district_number = 1000
                AND at_hourly_attendance_records.ATTENDANCE_STATUS = 'A'
                AND at_hourly_attendance_records.CALENDAR_DATE < '16-MAR-06'
              GROUP BY st_enrollment.student_id; Thanks a lot for your kind suggestions

  • Rewrite the query with out joins and group by

    Hi,
    This was an interview question.
    Table Names: bookshelf_checkout
    bookshelf
    And the join condition between these two tables is title
    We need to rewrite below query without using join condition and group by clause ?
    SELECT b.title,max(bc.returned_date - bc.checkout_date) "Most Days Out"
               FROM bookshelf_checkout bc,bookshelf b
               WHERE bc.title(+)=b.title
               GROUP BY b.title;When I was in college, I read that most of the SELECT statements can be replaced by basic SQL operations (SET OPERATORS). Now I am trying to rewrite the query with SET operators but not able to get the exact result.
    Kindly help me on this.
    Thanks,
    Suri

    Something like this?
      1  WITH books AS (
      2  SELECT 'title 1' title FROM dual UNION ALL
      3  SELECT 'title 2' FROM dual UNION ALL
      4  SELECT 'title 3' FROM dual ),
      5  bookshelf AS (
      6  SELECT 'title 1' title, DATE '2012-05-01' checkout_date, DATE '2012-05-15' returned_date FROM dual UNION ALL
      7  SELECT 'title 1' title, DATE '2012-05-16' checkout_date, DATE '2012-05-20' returned_date FROM dual UNION ALL
      8  SELECT 'title 2' title, DATE '2012-04-01' checkout_date, DATE '2012-05-15' returned_date FROM dual )
      9  SELECT bs.title, MAX(bs.returned_date - bs.checkout_date) OVER (PARTITION BY title) FROM bookshelf bs
    10  UNION
    11  (SELECT b.title, NULL FROM books b
    12  MINUS
    13* SELECT bs.title, NULL FROM bookshelf bs)
    SQL> /
    TITLE   MAX(BS.RETURNED_DATE-BS.CHECKOUT_DATE)OVER(PARTITIONBYTITLE)
    title 1                                                           14
    title 2                                                           44
    title 3Lukasz

  • How do I create a folder or report from a query with a union and parameters

    I have created folders with unions but I am having difficulty coverting a query with a union and parameters.
    The following works great in SQL*Developer without parameters, but I want to change to use parameters for the year and quarter and use it in Discoverer:
    SELECT TO_CHAR(NVL(AV.TAX_ID,999999999),'000000000') FEID,
      AV.FIRM_NAME VENDOR_NAME,
      AV.BIDCLASS CONTRACT_CODES,
      AV.AWAMT AWARD_AMOUNT,
      AV.SOL_MODE FORMAL_INFORMAL,
      AV.CERT BUSINESS_ENTITY,
      AV.ETHNICITY ETHNICTY,
      AV.PO_NUMBER_FORMAT CONTRACT,
      SUM(VP.INVOICE_AMOUNT) AMOUNT_PAID_$
    FROM CONFIRM.VSTATE_PAID_AWARD_VENDORS AV,
      CONFIRM.VSTATE_VENDOR_PAYMENTS VP
    WHERE ( ( AV.PO_NUMBER = VP.PO_NUMBER
    AND AV.VENDOR_ID       = VP.VENDOR_ID ) )
    AND (TO_CHAR(VP.PAYMENT_DATE,'Q') = '4')
    AND ( TO_CHAR(VP.PAYMENT_DATE,'YYYY') = '2009' )
    GROUP BY TO_CHAR(NVL(AV.TAX_ID,999999999),'000000000'),
      AV.FIRM_NAME,
      AV.BIDCLASS,
      AV.AWAMT,
      AV.SOL_MODE,
      AV.CERT,
      AV.ETHNICITY,
      AV.PO_NUMBER_FORMAT
      union
    SELECT TO_CHAR(NVL(AV2.TAX_ID,999999999),'000000000') FEID,
      AV2.FIRM_NAME VENDOR_NAME,
      AV2.BIDCLASS CONTRACT_CODES,
      AV2.AWAMT AWARD_AMOUNT,
      AV2.SOL_MODE FORMAL_INFORMAL,
      AV2.CERT BUSINESS_ENTITY,
      AV2.ETHNICITY ETHNICTY,
      AV2.PO_NUMBER_FORMAT CONTRACT,
      0 AMOUNT_PAID_$
    FROM CONFIRM.VSTATE_PAID_AWARD_VENDORS AV2
    WHERE
    not exists (SELECT 'X'
                  FROM CONFIRM.VSTATE_VENDOR_PAYMENTS VP2
                 WHERE av2.po_number = vp2.po_number
                       AND (TO_CHAR(VP2.PAYMENT_DATE,'Q') = '4')
                       AND ( TO_CHAR(VP2.PAYMENT_DATE,'YYYY') = '2009' ))
    AND (TO_CHAR(AV2.AWDATE,'Q') = '4')
    AND (to_CHAR(AV2.AWDATE,'YYYY') = '2009')
    GROUP BY TO_CHAR(NVL(AV2.TAX_ID,999999999),'000000000'),
      AV2.FIRM_NAME,
      AV2.BIDCLASS,
      AV2.AWAMT,
      AV2.SOL_MODE,
      AV2.CERT,
      AV2.ETHNICITY,
      AV2.PO_NUMBER_FORMAT Can someone provide a solution?
    Thank you,
    Robert

    Hi,
    You can take the parameters to the select so that you will be able to create conditions over them.
    Try to use this SQL instead of your and in the discoverer workbook create the conditions and parameters:
    SELECT TO_CHAR(NVL(AV.TAX_ID,999999999),'000000000') FEID,
    AV.FIRM_NAME VENDOR_NAME,
    AV.BIDCLASS CONTRACT_CODES,
    AV.AWAMT AWARD_AMOUNT,
    AV.SOL_MODE FORMAL_INFORMAL,
    AV.CERT BUSINESS_ENTITY,
    AV.ETHNICITY ETHNICTY,
    AV.PO_NUMBER_FORMAT CONTRACT,
    TO_CHAR(VP.PAYMENT_DATE,'YYYY') P_YEAR,
    TO_CHAR(VP.PAYMENT_DATE,'Q') P_QTR
    SUM(VP.INVOICE_AMOUNT) AMOUNT_PAID_$
    FROM CONFIRM.VSTATE_PAID_AWARD_VENDORS AV,
    CONFIRM.VSTATE_VENDOR_PAYMENTS VP
    WHERE ( ( AV.PO_NUMBER = VP.PO_NUMBER
    AND AV.VENDOR_ID = VP.VENDOR_ID ) )
    --AND (TO_CHAR(VP.PAYMENT_DATE,'Q') = '4')*
    --AND ( TO_CHAR(VP.PAYMENT_DATE,'YYYY') = '2009' )*
    GROUP BY TO_CHAR(NVL(AV.TAX_ID,999999999),'000000000'),
    AV.FIRM_NAME,
    AV.BIDCLASS,
    AV.AWAMT,
    AV.SOL_MODE,
    AV.CERT,
    AV.ETHNICITY,
    AV.PO_NUMBER_FORMAT ,
    TO_CHAR(VP.PAYMENT_DATE,'YYYY') P_YEAR,
    TO_CHAR(VP.PAYMENT_DATE,'Q') P_QTR
    union
    SELECT TO_CHAR(NVL(AV2.TAX_ID,999999999),'000000000') FEID,
    AV2.FIRM_NAME VENDOR_NAME,
    AV2.BIDCLASS CONTRACT_CODES,
    AV2.AWAMT AWARD_AMOUNT,
    AV2.SOL_MODE FORMAL_INFORMAL,
    AV2.CERT BUSINESS_ENTITY,
    AV2.ETHNICITY ETHNICTY,
    AV2.PO_NUMBER_FORMAT CONTRACT,
    TO_CHAR(VP.PAYMENT_DATE,'YYYY') P_YEAR,
    TO_CHAR(VP.PAYMENT_DATE,'Q') P_QTR
    0 AMOUNT_PAID_$
    FROM CONFIRM.VSTATE_PAID_AWARD_VENDORS AV2
    WHERE
    not exists (SELECT 'X'
    FROM CONFIRM.VSTATE_VENDOR_PAYMENTS VP2
    WHERE av2.po_number = vp2.po_number
    AND (TO_CHAR(VP2.PAYMENT_DATE,'Q') = TO_CHAR(VP.PAYMENT_DATE,'Q') )
    AND ( TO_CHAR(VP2.PAYMENT_DATE,'YYYY') = TO_CHAR(VP.PAYMENT_DATE,'YYYY') ))
    --AND (TO_CHAR(AV2.AWDATE,'Q') = '4')*
    --AND (to_CHAR(AV2.AWDATE,'YYYY') = '2009')*
    GROUP BY TO_CHAR(NVL(AV2.TAX_ID,999999999),'000000000'),
    AV2.FIRM_NAME,
    AV2.BIDCLASS,
    AV2.AWAMT,
    AV2.SOL_MODE,
    AV2.CERT,
    AV2.ETHNICITY,
    AV2.PO_NUMBER_FORMAT,
    TO_CHAR(VP.PAYMENT_DATE,'YYYY') P_YEAR,
    TO_CHAR(VP.PAYMENT_DATE,'Q') P_QTR
    Tamir

  • Absolute dynamic select query with dynamic join and where

    Has anyone ever tried creating an absolutely dynamic SELECT query with dynamic Join and Where conditions.
    I have a requirement of creating such a query in an Utility Class, and i have written the code. But its throwing my sysntax errors.
    Please let me know where am I going wrong OR is it really possible to create such a dynamic Query??
        SELECT (FIELDS) INTO TABLE IT_TABLES
          FROM ( (ME->TABLE1)  inner join ( me->table2 )
          on ( on_condition ) )
          WHERE (me->where_fields).
    Ags.

    It worked for me in a following way:
    select * into corresponding fields of table <result_table>
            from (join_string)
            where (l_where).
    Where the contents of join_string were dynamically build using concatenation. So it will be something like
    concatenate ME->TABLE1 'as a INNER JOIN' me->table2 'as b ON (' into join_string separated by space.
    <...>
    add here matching/reference colums, something like
    concatenate 'a~' me->TABLE1_JOIN_COL into temp1.
    concatenate 'b~' me->TABLE2_JOIN_COL into temp2.
    concatenate join_string temp1 '=' temp2 into join_string separated by space.
    <...>
    concatenate join_string ')' into join_string separated by space.
    And then use similar approach for l_where variable.

  • I just purchased an extreme.  I have an express.  The sales guy recommended setting up a hot spot with the express and use the extreme as a base station.  What does he mean and how do I do this?  What are the advantages?

    I just purchased an extreme.  I have an express.  The sales guy recommended setting up a hot spot with the express and use the extreme as a base station.  What does he mean and how do I do this?  What are the advantages?  How do I set this up?????

    I think he means to set up the main extreme as the main router or "main base station", and then use the express to "extend" the network.
    You can look up the manual for your express here for more details:
    http://support.apple.com/manuals/
    Extend the range of your network by adding AirPort Express to your existing AirPortExtreme or AirPort Express wireless network (this is called a Wireless DistributionSystem, or WDS). "
    Extending the Range of an Existing AirPort Extreme or
    AirPort Express Network
    You can extend the range of an existing AirPort Extreme or AirPort Express wirelessnetwork by setting it up in a WDS. Wireless computers can connect to the network andshare the Internet connection, share files, and play network games. If you connect yourAirPort Express to your home stereo, computers on your wireless network can useAirTunes to play music on the stereo from iTunes. If you connect a USB printer to yourAirPort Express, all of the computers on the network can print to it.
    n Open the AirPort Setup Assistant on a Macintosh, or the AirPort Express Assistant on acomputer using Windows XP. Follow the onscreen instructions to extend the range ofyour AirPort Extreme or AirPort Express network.
    Note: Extending the range of a network using WDS may reduce overall networkperformance.

  • Assistance with Regular Expression and Tcl

    Assistance with Regular Expression and Tcl
    Hello Everyone,
      I recently began learning Tcl to develop scripts for automating network switch deployments. 
    In my script, I want to name the device with a location and the last three octets of the base mac address.
    I can get the Base MAC address by : 
    show version | include Base
     Base ethernet MAC Address       : 00:00:00:DB:CE:00
    And I can get the last three octets of the MAC address using the following regular expression. 
    ([0-9a-f]{2}[:-]){2}([0-9a-f]{2}$)
    But I have not been able to figure out how to call the regular expression in the tcl script.
    I have checked several resources but have not been able to figure it out.  Suggestions?
    Ultimately, I want to set the last three octets to a variable (something like below) and then call the variable when I name the switch.
    set mac [exec "sh version | i Base"] (include the regular expression)
    ios_config "hostname location$mac"
    Thanks for any assistance in advance.
    Chris

    This worked for me.
    Switch_1(tcl)#set result [exec show ver | inc Base]   
    Base ethernet MAC Address       : 00:1B:D4:F8:B1:80
    Switch_1(tcl)#regexp {([0-9A-F:]{8}\r)} $result -> mac
    1
    Switch_1(tcl)#puts $mac                               
    F8:B1:80
    Switch_1(tcl)#ios_config "hostname location$mac"      
    %Warning! Hostname should contain at least one alphabet or '-' or '_' character
    locationF8:B1:80(tcl)#

  • Query with MARA MVKE and MAST

    Hi
      Im trying to create a query with MARA, MVKE and MAST tables. If corresponding records exist in all the 3 tables, I get output. Otherwise, I get the result as 'No data selected'. I tried using left outer join with MAST , tried using MARC also between MARA and MAST but its of no use. Please suggest how I can both get the sales data and BOM details in the output.
    Thanks
    Aparna

    Hi Aparna,
    Goto  SE16 Check in table,
    1.KDST -
    Sales order to BOM link
    2.STKO -
    BOM - header
    3.STPO -
    BOM - item
    And also you create a query and check the out put.

  • How can i delete contacts completely so that they don´t mix up with new addresses and groups?

    how can i delete contacts completely so that they don´t mix up with new addresses and groups?
    Alle geänderten Adressen oder Gruppen erscheinen immer wieder bei der Adresseingabe von mails.
    Chaos!

  • Trying to embed a video file in HTML5: ERROR=No video with supported format and MIME type found?

    Hello all!
    I am desparate for a solution. I am testing my site on Firefox and Explorer and still no sign of a functional video yet.
    Firefox: I get the error: No video with supported format and MIME type found.
    Explorer: I just get a distorted layout.
    Here is the code I am working on:
    <table id="Table_01" width="480" height="801" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td colspan="6">
                <img src="images/Video_01.jpg" width="480" height="114" alt=""></td>
        </tr>
        <tr>
            <td rowspan="3">
                <img src="images/Video_02.jpg" width="52" height="486" alt=""></td>
            <td colspan="4">
               <video controls width="376" height="221">
                 <source src="C:\Users\aalmeida\Videos\AEMC PEL 103 6 Channel, Power & Energy Logger - with Display (Part 1).mp4" type="Video/Mp4"/>
                 <source src="C:\Users\aalmeida\Videos\AEMC PEL 103 6 Channel, Power & Energy Logger - with Display (Part 1).webm" type="Video/WebM"/>
                 <source src="C:\Users\aalmeida\Videos\AEMC PEL 103 6 Channel, Power & Energy Logger - with Display (Part 1).oggtheora.ogv" type="Video/Ogg"/>
                 </video>
    Please tell me that there is something missing in the code. I have spent a lot of time uninstalling-updating Firefox plugins, added MIME types in the Internet Information Manager (I'm on Windows 7)
    and  seriuously hit a dead end with this!
    Any advice would be muchly appreciated!!!
    Thanks
    ~LA

    As Jon said, you must declare the page as HTML5.
    And your server may not be set up to deliver video as a binary file if it is an .OGG file. I have not seen this problem with .MP4 or .M4V in the past, but every server is a little different.
    To add a MIME type, you need to change your .htaccess file on an Apache server thusly:
    AddType audio/ogg .oga
    AddType video/ogg .ogv
    AddType application/ogg .ogg
    AddHandler application-ogg .ogg .ogv .oga
    Additionally, MIME types can usually be changed on a server's Control Panel. One can also ask one's hosting provider to do this as well.
    Firefox makes it necessary to use OGG files. Webkit-based browsers will deal with .M4V or .MP4 and I understand Internet Exploder will work with the latter two as well.

  • I have East/West Symphony.  Will it work with Logic express and do I have to have that little red usb drive in the computer to authorize it?

    I have East/West Symphony. 
    Will it work with Logic express and do I have to have that little red usb drive in the computer to authorize it?
    Also, would it work with Garageband??

    Thanks-that's the same driver I'm using now.
    The M-audio techs were unable to tell me if Quattro would work with LE8, so I've been wasting my time and money trying to make it work.
    They also gave me conflicting opinions as to whether or not "tip" polarity was an issue when using an after-market adapter. One said definitely yes, one or two others said definitely no.
    Their phone tech line has a 20 to 40 minute wait when I call. The online support system is confusing, which even they admit. I don't think my next interface will be from M-audio.
    Thanks very much for the response, it helps me get beyond this phase.
    Is the Quattro of any use for anybody else (i.e., can I sell it or give it away)?

  • Need help in optimizing the query with joins and group by clause

    I am having problem in executing the query below.. it is taking lot of time. To simplify, I have added the two tables FILE_STATUS = stores the file load details and COMM table that is actual business commission table showing records successfully processed and which records were transmitted to other system. Records with status = T is trasnmitted to other system and traansactions with P is pending.
    CREATE TABLE FILE_STATUS
    (FILE_ID VARCHAR2(14),
    FILE_NAME VARCHAR2(20),
    CARR_CD VARCHAR2(5),
    TOT_REC NUMBER,
    TOT_SUCC NUMBER);
    CREATE TABLE COMM
    (SRC_FILE_ID VARCHAR2(14),
    REC_ID NUMBER,
    STATUS CHAR(1));
    INSERT INTO FILE_STATUS VALUES ('12345678', 'CM_LIBM.TXT', 'LIBM', 5, 4);
    INSERT INTO FILE_STATUS VALUES ('12345679', 'CM_HIPNT.TXT', 'HIPNT', 4, 0);
    INSERT INTO COMM VALUES ('12345678', 1, 'T');
    INSERT INTO COMM VALUES ('12345678', 3, 'T');
    INSERT INTO COMM VALUES ('12345678', 4, 'P');
    INSERT INTO COMM VALUES ('12345678', 5, 'P');
    COMMIT;Here is the query that I wrote to give me the details of the file that has been loaded into the system. It reads the file status and commission table to show file name, total records loaded, total records successfully loaded to the commission table and number of records that has been finally transmitted (status=T) to other systems.
    SELECT
        FS.CARR_CD
        ,FS.FILE_NAME
        ,FS.FILE_ID
        ,FS.TOT_REC
        ,FS.TOT_SUCC
        ,NVL(C.TOT_TRANS, 0) TOT_TRANS
    FROM FILE_STATUS FS
    LEFT JOIN
        SELECT SRC_FILE_ID, COUNT(*) TOT_TRANS
        FROM COMM
        WHERE STATUS = 'T'
        GROUP BY SRC_FILE_ID
    ) C ON C.SRC_FILE_ID = FS.FILE_ID
    WHERE FILE_ID = '12345678';In production this query has more joins and is taking lot of time to process.. the main culprit for me is the join on COMM table to get the count of number of transactions transmitted. Please can you give me tips to optimize this query to get results faster? Do I need to remove group and use partition or something else. Please help!

    I get 2 rows if I use my query with your new criteria. Did you commit the record if you are using a second connection to query? Did you remove the criteria for file_id?
    select carr_cd, file_name, file_id, tot_rec, tot_succ, tot_trans
      from (select fs.carr_cd,
                   fs.file_name,
                   fs.file_id,
                   fs.tot_rec,
                   fs.tot_succ,
                   count(case
                            when c.status = 'T' then
                             1
                            else
                             null
                          end) over(partition by c.src_file_id) tot_trans,
                   row_number() over(partition by c.src_file_id order by null) rn
              from file_status fs
              left join comm c
                on c.src_file_id = fs.file_id
             where carr_cd = 'LIBM')
    where rn = 1;
    CARR_CD FILE_NAME            FILE_ID           TOT_REC   TOT_SUCC  TOT_TRANS
    LIBM    CM_LIBM.TXT          12345678                5          4          2
    LIBM    CM_LIBM.TXT          12345677               10          0          0Using RANK can potentially produce multiple rows to be returned though your data may prevent this. ROW_NUMBER will always prevent duplicates. The ordering of the analytical function is irrelevant in your query if you use ROW_NUMBER. You can remove the outermost query and inspect the data returned by the inner query;
    select fs.carr_cd,
           fs.file_name,
           fs.file_id,
           fs.tot_rec,
           fs.tot_succ,
           count(case
                    when c.status = 'T' then
                     1
                    else
                     null
                  end) over(partition by c.src_file_id) tot_trans,
           row_number() over(partition by c.src_file_id order by null) rn
    from file_status fs
    left join comm c
    on c.src_file_id = fs.file_id
    where carr_cd = 'LIBM';
    CARR_CD FILE_NAME            FILE_ID           TOT_REC   TOT_SUCC  TOT_TRANS         RN
    LIBM    CM_LIBM.TXT          12345678                5          4          2          1
    LIBM    CM_LIBM.TXT          12345678                5          4          2          2
    LIBM    CM_LIBM.TXT          12345678                5          4          2          3
    LIBM    CM_LIBM.TXT          12345678                5          4          2          4
    LIBM    CM_LIBM.TXT          12345677               10          0          0          1

  • Airplay error with airport express and apple tv

    I receive this message "An unknown error (-15006) occurred while connecting to the AirPlay device" when trying to play audio from iTunes on Macbook Pro to my airport express and/or apple tv. Both airport express and apple tv work fine with my iphone and ipad as well as streaming video from itunes library to apple tv from the Macbook. I have tried the previously posted solutions, but nothing has worked yet.

    http://www.cultofmac.com/178460/the-real-reason-why-macs-before-2011-cant-use-ai rplay-mirroring-in-mountain-lion-feature/

  • Error in filter with SQL Expression

    HI Experts,
    I have a sql query which works fine, but have to_date funtion() in the where clause as below :
    and oe.ORDERED_DATE BETWEEN to_date('09-APR-2009 23:59:59','DD-MON-YYYY HH24:MI:SS')
    AND to_date('10-APR-2009 23:59:59','DD-MON-YYYY HH24:MI:SS')
    and (ol.ORDERED_ITEM LIKE 'abckdo%' OR ol.ORDERED_ITEM LIKE 'xysalnb%')
    I am trying to create an OBIEE report with filter where the values of the filter are select as SQL Expression. and gave value to first variable as "to_date('09-APR-2009 23:59:59','DD-MON-YYYY HH24:MI:SS')" and the second variable as " to_date('10-APR-2009 23:59:59','DD-MON-YYYY HH24:MI:SS')"
    But the report is giving me an error. If I remove the date condition, then the report works fine. Can anyone give some inputs in resolving the problem. The mentioning of the HH24:MI:SS is very import to get the right resultset.
    Thanks in Advance.
    svr

    Hi SVR,
    I've had similar difficulties in the past with OBIEE and using the TO_DATE in the logical SQL expressions. I'm not sure if OBIEE recognizes TO_DATE or if it only recognizes TO_DATE is certain situations.
    However, I believe OBIEE recognizes the CAST( AS DATE) in all situations. Here's what I would recommend doing.
    1) Go into the connection pool associated with the report your creating and click on the second tab, "Connection Scripts"
    2) In the "Execute on Connect" area, click the "New" button and paste the following code: alter session set NLS_DATE_FORMAT='DD-MON-YYYY HH24:MI:SS' ** this step changes the default DD-MON-YYYY format of Oracle, to the format you will be giving the data in.
    3) Save the RPD and bounce the services if you made this change off-line.
    4) Instead of using TO_DATE() on your formulas, use CAST('09-APR-2009 23:59:59' AS DATE). Since we changed the default DATE mask to be the format that you're passing in, you should no longer see any issues.
    Hope that helps!
    -Joe

  • Error using Filter with SQL Expression

    Hey all -
    New to Oracle BI, and getting a problem with Filters that use SQL Expressions.
    The column I'm filtering on is a 4 digit year, expressed as a VARCHAR2(4 byte) in the physical database. My SQL Expression in the filter is:
    Column: CAL YEAR 4 DIGIT
    Operator: Is equal to/in
    SQL Expression: TO_CHAR(ADD_MONTHS(SYSDATE, -24), 'YYYY'))
    when I click on the "Results" Tab I get the following error message:
    Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <(>: Syntax error [nQSError: 26012] . (HY000)
    I've isolated the issue to the expression above. If I put in a literal value and supply a four digit year like below it works:
    Column: CAL YEAR 4 DIGIT
    Operator: Is equal to/in
    SQL Expression: *2008*
    Any ideas on what's causing my problem?
    Thanks!
    Mac

    macearl wrote:
    SQL View does not display unless data is returned by the query. Is that normal?
    Also, none of these options shows the literal result of the expression we built, i.e.:
    expression: CAST(YEAR(TIMESTAMPADD(SQL_TSI_MONTH, -24, CURRENT_DATE)) as CHAR)
    result: *2008*
    Having the ability to test expressions and see their results would be very helpful in debugging. If anyone knows how to do that please share!
    Thanks!
    MacOk, Probably shoud have figured this out before, but in response to my own question, the way to view the result of an expression is to add the expression as a column and include it in the Table Presentation.
    - Mac (he can be taught)

Maybe you are looking for

  • 64-bit SUN java for Windows 64-bit x64?

    Hi Anyone who knows if SUN has released a 64-bit version of SUN JDK 1.4.x to be used on a Windows x64 installation? I haven't been able to find it, but SAP's PAM tells that SAP NW04s is supported for SUN JDK 1.4.2 x64 Windows! Best regards Tom

  • FTPS receiver side - Connection problem:connection timed out: connect

    Hi experts, I must connect to an external server to send files with FTPS. I have created receiver CC with connection security: FTPS for control and data connection Command order: TLS, USER, PASS, PBSZ, PROT Connect mode: per file transfer port : 990

  • Does CF8 Report Builder work with CF7?

    Title says it all. I have CF7 and I recently uninstalled CF7 Report Builder. I saw CF8 Report Builder on the adobe downloads page and wondered if it works with CF7 (minus the new features of CF8).

  • Accounting Entry Error

    Dear Gurus, What would be the accounting Entry for the other adjustments in J1IH for the normal JV postings when i am entering BED, HCESS, ECESS. System intially gives accounting entry RG23A HECESS-  DR RG23A BED-  DR CENVAT OFFSET ACCOUNt CR But Whe

  • Instantiation of a class from a file name

    Basically here's how it goes: I have a FilenameFilter looking into a folder for files ending on .java (java code). It stores them in a file array. I want to turn that file into a class so I can get some info from it.                 Class c= (Class)l