Whats wrong with the query

Hi
I have a view which is obtained by using multiple unions, sub queries which made the query complex. The view works good and gives correct data when i select all the records from the view. But the problem is when I use where clause and filter then it is giving me an error message which is shown below. In other words "select * from view" works good but "select * from view where dateran >to_date('3/3/2011','mm/dd/yyyy') ".
Now I dont understand is why the query is not working when I use the where clause. Can any one tell what could be the reason?
ERROR MESSAGE
+"ORA-01427: single-row subquery returns more than one row+
+01427. 00000 - "single-row subquery returns more than one row"+
Thanks,

CREATE OR replace FORCE VIEW "SECO"."D_REWORK_REPORT_V"
("MATERIALID", "CUSTOMER", "ORDER#", "PRODUCT", "STEELGRADEID", "GAUGE", "WIDTH"
, "DEFECTCODE", "DEFECTCOMMENT", "RESPONSIBLEUNIT", "SEVERITY", "COMMENTS",
"ENTRYCOIL", "ENTRYWEIGHT", "DATERAN", "SHIFTDATERAN")
AS
  SELECT
  /*+ USE_HASH */ mf.me_id                                        materialid,
                  tp.customername,
                  v.au_nr                                         order#,
                  taup.productid                                  product,
                  taup.sc_steelgradeid                            steelgrade,
                  taup.coilorderthickness                         thick,
                  taup.coilorderwidth                             width,
                  mf.fehlertyp                                    defectcode,
                  ft.displaytext                                  defectcomment,
                  mf.fehlerverursacher
                  unitresponsible,
                  mf.auspraegung                                  priority,
                  mf.bemerkung                                    comments,
                  (SELECT matbezeichnung
                   FROM   matereignis c
                   WHERE  c.me_id = v.me_id
                          AND bemerkung = 'process scrap'
                          AND subtyp = 'Produktion'
                          AND dtstorno IS NULL
                          AND matbezeichnung = (SELECT a.matbezeichnung
                                                FROM   d_matevents_v a
                                                WHERE  me_id = v.me_id
                                                       AND dtstorno IS NULL
                                                       AND a.ereignisid =
                                                           ereignisiderfassung))
                                                                  entrytcoil,
                  (SELECT aftergew
                   FROM   d_matevents_v c
                   WHERE  c.me_id = v.me_id
                          AND c.ereignisid = ereignisiderfassung) entryweight,
                  (SELECT erstelldatum
                   FROM   matereignis c
                   WHERE  c.me_id = v.me_id
                          AND bemerkung = 'process scrap'
                          AND subtyp = 'Produktion'
                          AND dtstorno IS NULL
                          AND matbezeichnung = (SELECT a.matbezeichnung
                                                FROM   d_matevents_v a
                                                WHERE  me_id = v.me_id
                                                       AND dtstorno IS NULL
                                                       AND a.ereignisid =
                                                           ereignisiderfassung))
                                                                  dateran,
                  (SELECT CASE
                            WHEN To_number(To_char(erstelldatum, 'HH24')) < 7
                          THEN
                            erstelldatum - 1
                            ELSE erstelldatum
                          END
                   FROM   matereignis c
                   WHERE  c.me_id = v.me_id
                          AND bemerkung = 'process scrap'
                          AND subtyp = 'Produktion'
                          AND dtstorno IS NULL
                          AND matbezeichnung = (SELECT a.matbezeichnung
                                                FROM   d_matevents_v a
                                                WHERE  me_id = v.me_id
                                                       AND dtstorno IS NULL
                                                       AND a.ereignisid =
                                                           ereignisiderfassung))
                                                                  shiftdateran
  FROM   matfehler mf,
         matfehler_prj mfp,
         tap_prj tp,
         taup_prj taup,
         vlfehlerverursacher_v fv,
         vlfehlertyp_v ft,
         vlfehlerauspraegung_v fa,
         d_matevents_v v
  WHERE  mf.me_id = v.me_id
         AND v.au_nr = tp.au_nr(+)
         AND tp.au_nr = taup.au_nr(+)
         AND mf.fehlerverursacher = fv.fehlerverursacher(+)
         AND mf.fehlerverursacher <> 'TAC'
         AND mf.fehlertyp = ft.fehlertyp(+)
         AND mf.auspraegung = fa.auspraegung(+)
         AND mf.me_id = mfp.me_id
         AND mf.lfd_nr = mfp.lfd_nr
         AND v.fa_nr LIKE '%-%'
         AND v.bemerkung = 'kmpL3TMArb.processTTM_REPORT_TO_L3'
         AND v.dtstorno IS NULL
         AND Trunc (mf.erstelldatum) BETWEEN
             To_date ('01/01/'
                      || ( To_char (SYSDATE,
                           'YYYY') - 1
                 'MM/DD/YYYY') AND Trunc (SYSDATE)
         AND v.ereignisid = (SELECT MIN (ereignisid)
                             FROM   matereignis a
                             WHERE  a.fa_nr LIKE '%-%'
                                    AND Nvl (a.bemerkung, 'A') =
                                        'kmpL3TMArb.processTTM_REPORT_TO_L3'
                                    AND a.dtstorno IS NULL
                                    AND a.me_id = v.me_id
                                    AND 2 = (SELECT COUNT (DISTINCT
                                                    matbezeichnung
                                             FROM   matereignis b
                                             WHERE  b.fa_nr LIKE '%-%'
                                                    AND b.me_id = a.me_id
                                                    AND b.dtstorno IS NULL)
                             GROUP  BY a.me_id)
         AND ereignisiderfassung = (SELECT MAX (a.ereignisid)
                                    FROM   matereignis a
                                    WHERE  a.me_id = v.me_id
                                           AND a.ereignisid < v.ereignisid
                                           AND a.dtstorno IS NULL
                                           AND ( a.ausloeser = 'DIALOG'
                                                  OR a.ausloeser =
                                                     'MaterialQM_MPanel' )
                                           AND ( a.bemerkung != 'Unblocking'
                                                  OR Substr (a.bemerkung, 1, 9)
                                                     =
                                                     'kmpSIVPES'
  UNION
  SELECT
  /*+ USE_HASH */ mf.me_id
                  materialid,
                  tp.customername,
                  v.au_nr
                  order#,
                  taup.productid
                  product,
                  taup.sc_steelgradeid
                  steelgrade,
                  taup.coilorderthickness
                  thick,
                  taup.coilorderwidth
                  width,
                  mf.fehlertyp
                  defectcode,
                  ft.displaytext
                  defectcomment,
                  mf.fehlerverursacher
                  unitresponsible,
                  mf.auspraegung
                  priority,
                  mf.bemerkung
                  comments,
                  matbezeichnung
                  entrytcoil,
                  aftergew
                  entryweight,
                  (SELECT erstelldatum
                   FROM   matereignis c
                   WHERE  c.me_id = v.me_id
                          AND bemerkung = 'process scrap'
                          AND subtyp = 'Produktion'
                          AND dtstorno IS NULL
                          AND matbezeichnung = (SELECT a.matbezeichnung
                                                FROM   d_matevents_v a
                                                WHERE  me_id = v.me_id
                                                       AND dtstorno IS NULL
                                                       AND a.ereignisid =
                                                           v.ereignisid))
                  dateran,
                  (SELECT CASE
                            WHEN To_number(To_char(erstelldatum, 'HH24')) < 7
                          THEN
                            erstelldatum - 1
                            ELSE erstelldatum
                          END
                   FROM   matereignis c
                   WHERE  c.me_id = v.me_id
                          AND bemerkung = 'process scrap'
                          AND subtyp = 'Produktion'
                          AND dtstorno IS NULL
                          AND matbezeichnung = (SELECT a.matbezeichnung
                                                FROM   d_matevents_v a
                                                WHERE  me_id = v.me_id
                                                       AND dtstorno IS NULL
                                                       AND a.ereignisid =
                                                           v.ereignisid))
                  shiftdateran
  FROM   matfehler mf,
         matfehler_prj mfp,
         tap_prj tp,
         taup_prj taup,
         vlfehlerverursacher_v fv,
         vlfehlertyp_v ft,
         vlfehlerauspraegung_v fa,
         d_matevents_v v
  WHERE  mf.me_id = v.me_id
         AND v.au_nr = tp.au_nr(+)
         AND tp.au_nr = taup.au_nr(+)
         AND mf.fehlerverursacher = fv.fehlerverursacher(+)
         AND mf.fehlertyp = ft.fehlertyp(+)
         AND mf.auspraegung = fa.auspraegung(+)
         AND mf.me_id = mfp.me_id
         AND mf.lfd_nr = mfp.lfd_nr
         AND v.fa_nr LIKE '%-%'
         AND Trunc (mf.erstelldatum) BETWEEN
             To_date ('01/01/'
                      || ( To_char (SYSDATE,
                           'YYYY') - 1
                 'MM/DD/YYYY') AND Trunc (SYSDATE)
         -- If a coil gets a rework more than 2 times, get the first record
         AND v.ereignisid = (SELECT MIN (ereignisid)
                             FROM   matereignis a
                             WHERE  a.fa_nr LIKE '%-%'
                                    AND a.dtstorno IS NULL
                                    AND a.me_id = v.me_id
                                    AND 2 < (SELECT COUNT (DISTINCT
                                                    matbezeichnung
                                             FROM   matereignis b
                                             WHERE  b.fa_nr LIKE '%-%'
                                                    AND b.me_id = a.me_id
                                                    AND b.dtstorno IS NULL)
                             GROUP  BY a.me_id)
         AND ereignisiderfassung = (SELECT MAX (a.ereignisid)
                                    FROM   d_matevents_v a
                                    WHERE  a.me_id = v.me_id
                                           AND a.ereignisid <
                                               (SELECT b.ereignisid
                                                FROM   matereignis b
                                                WHERE  b.fa_nr LIKE '%-%'
                                                       AND
                                               b.metyp = 'Anbinden'
                                                       AND b.matbezeichnung =
                                                           v.matbezeichnung
                                                       AND b.me_id = v.me_id))
  UNION
  SELECT
  /*+ USE_HASH */ mf.me_id
                  materialid,
                  tp.customername,
                  v.au_nr
                  order#,
                  taup.productid
                  product,
                  taup.sc_steelgradeid
                  steelgrade,
                  taup.coilorderthickness
                  thick,
                  taup.coilorderwidth
                  width,
                  mf.fehlertyp
                  defectcode,
                  ft.displaytext
                  defectcomment,
                  mf.fehlerverursacher
                  unitresponsible,
                  mf.auspraegung
                  priority,
                  mf.bemerkung
                  comments,
                  matbezeichnung
                  entrytcoil,
                  aftergew
                  entryweight,
                  (SELECT erstelldatum
                   FROM   matereignis c
                   WHERE  c.me_id = v.me_id
                          AND bemerkung = 'process scrap'
                          AND subtyp = 'Produktion'
                          AND dtstorno IS NULL
                          AND matbezeichnung = (SELECT a.matbezeichnung
                                                FROM   d_matevents_v a
                                                WHERE  me_id = v.me_id
                                                       AND dtstorno IS NULL
                                                       AND a.ereignisid =
                                                           v.ereignisid)) AS
                  dateran,
                  (SELECT CASE
                            WHEN To_number(To_char(erstelldatum, 'HH24')) < 7
                          THEN
                            erstelldatum - 1
                            ELSE erstelldatum
                          END
                   FROM   matereignis c
                   WHERE  c.me_id = v.me_id
                          AND bemerkung = 'process scrap'
                          AND subtyp = 'Produktion'
                          AND dtstorno IS NULL
                          AND matbezeichnung = (SELECT a.matbezeichnung
                                                FROM   d_matevents_v a
                                                WHERE  me_id = v.me_id
                                                       AND dtstorno IS NULL
                                                       AND a.ereignisid =
                                                           v.ereignisid)) AS
                  shiftdateran
  FROM   matfehler mf,
         matfehler_prj mfp,
         tap_prj tp,
         taup_prj taup,
         vlfehlerverursacher_v fv,
         vlfehlertyp_v ft,
         vlfehlerauspraegung_v fa,
         d_matevents_v v
  WHERE  mf.me_id = v.me_id
         AND v.au_nr = tp.au_nr(+)
         AND tp.au_nr = taup.au_nr(+)
         AND mf.fehlerverursacher = fv.fehlerverursacher(+)
         AND mf.fehlertyp = ft.fehlertyp(+)
         AND mf.auspraegung = fa.auspraegung(+)
         AND mf.me_id = mfp.me_id
         AND mf.lfd_nr = mfp.lfd_nr
         AND v.fa_nr LIKE '%-%'
         AND Trunc (mf.erstelldatum) BETWEEN
             To_date ('01/01/'
                      || ( To_char (SYSDATE,
                           'YYYY') - 1
                 'MM/DD/YYYY') AND Trunc (SYSDATE)
         -- If a coil gets a rework more than 2 times, get the second record
         AND v.ereignisid = (SELECT ereignisid
                             FROM   matereignis a
                             WHERE  a.fa_nr LIKE '%-%'
                                    AND a.me_id = v.me_id
                                    AND a.dtstorno IS NULL
                                    AND ROWNUM = 1
                                    AND a.ereignisid > (SELECT MIN (ereignisid)
                                                        FROM   matereignis b
                                                        WHERE
                                        b.fa_nr LIKE '%-%'
                                        AND b.dtstorno IS
                                            NULL
                                        AND
                                                       b.me_id = a.me_id
                                                               AND 2 <
                                                       (SELECT COUNT (DISTINCT
                                                               matbezeichnung)
                                                        FROM   matereignis c
                                                        WHERE
                                        c.fa_nr LIKE '%-%'
                                        AND
                                                       c.me_id = b.me_id
                                                               AND c.dtstorno IS
                                                                   NULL)
                                                        GROUP  BY a.me_id))
         AND ereignisiderfassung = (SELECT MAX (a.ereignisid)
                                    FROM   d_matevents_v a
                                    WHERE  a.me_id = v.me_id
                                           AND a.ereignisid <
                                               (SELECT MIN (b.ereignisid)
                                                FROM   matereignis b
                                                WHERE  b.fa_nr LIKE '%-%'
                                                       AND
                                               b.metyp = 'Anbinden'
                                                       AND b.matbezeichnung =
                                                           v.matbezeichnung
                                                       AND b.me_id = v.me_id)); 

Similar Messages

  • Whats wrong with the sql query-- giving no rows selected

    i have a table audit_data with 4 columns , eff_m & end_m are declared as timestamp and the time stamp data is different for all the records
    Please advice as soon as possible as this is a production problem
    ORG_GRP_I grn_n ED_EFF_m (timestamp) ED_END_M OFV
    1 999 01-Jan-06 1 03-Aug-06 0 0
    1 999 28-Jul-06 0 04-Aug-06 1 0
    1 999 04-Aug-06 1 04-Aug-06 1 0
    1 999 04-Aug-06 0 6.08
    This query is giving no rows returned,even though there is data in database
    SELECT NVL(OFV,0)
    FROM audit_data ag
    WHERE ag.ORG_GRP_I = 1
    AND ag.GRN_N = 999
    AND (ag.ED_EFF_M,NVL(ag.ED_END_M,SYSDATE)) IN (SELECT MAX(ED_EFF_M),MAX(NVL(ED_END_M,SYSDATE))
    FROM audit_data ag2
    WHERE ag2.ORG_GRP_I= ag.org_grp_i
    AND ag2.grn_n=ag.grn_n
    AND To_Date(To_Char(ag2.ED_EFF_M,'MM/DD/YYYY'),'MM/DD/YYYY') <= TO_DATE(TO_CHAR('08/04/06','MM/DD/YYYY'),'MM/DD/YYYY')
    AND To_Date(To_Char(NVL(ag2.ED_END_M,SYSDATE),'MM/DD/YYYY'),'MM/DD/YYYY') >= TO_DATE(TO_CHAR('08/04/06','MM/DD/YYYY'),'MM/DD/YYYY'));
    This query is giving value 6.08, when made type conversions.
    what wrong with the above query.please advice
    SELECT NVL(OFV,0)
    FROM audit_data ag
    WHERE ag.ORG_GRP_I = 1
    AND ag.GRN_n = 999
    AND (to_date(to_char(ag.ED_EFF_M,'mm/dd/yyyy'),'mm/dd/yyyy'),NVL(to_date(to_char(ag.ED_END_M,'mm/dd/yyyy'),'mm/dd/yyyy'),SYSDATE)) IN
    (SELECT MAX(to_date(to_char(ED_EFF_M,'mm/dd/yyyy'),'mm/dd/yyyy')),MAX(NVL(ED_END_M,SYSDATE))
    FROM audit_data ag2
    WHERE ag2.ORG_GRP_I= ag.org_grp_i
    AND ag2.grn_n=ag.grn_n
    AND To_Date(To_Char(ag2.ED_EFF_M,'MM/DD/YYYY'),'MM/DD/YYYY') <= TO_date('08/04/2006','MM/DD/YYYY')
    AND To_Date(To_Char(NVL(ag2.ED_END_M,SYSDATE),'MM/DD/YYYY'),'MM/DD/YYYY') >= TO_DATE('08/04/2006','MM/DD/YYYY'));

    In the second query you convert a string to a date correctly using TO_DATE(string,date format)
    In the first query you try to make a char of something that already is a char, e.g. TO_CHAR('08/04/06','MM/DD/YYYY').
    The TO_CHAR functions expects either a number or a date as its first parameter. That's why it's giving you a ORA-01722.

  • Whats wrong with this query.can anyone help me......

    select CASE WHEN TO_NUMBER(SUBSTR(TO_CHAR(START_TIME_TIMESTAMP,'DDMMYYYY HH24:MM:SS'),13,2))>0 AND TO_NUMBER(SUBSTR(TO_CHAR(START_TIME_TIMESTAMP,'YYYYMMDD HH24:MM:SS'),13,2)) <14
    THEN TO_DATE(CONCAT(SUBSTR(TO_CHAR(START_TIME_TIMESTAMP,'YYYYMMDD HH24:MM:SS'),13,2)||'00',SUBSTR(TO_CHAR(START_TIME_TIMESTAMP,'YYYYMMDD HH24:MI:SS'),16)||'00'),'DD-MM-YYYY HH24:MI:SS') end
    from table;
    i have written this query.whats wrong with this query..........
    the error is "literal does not match format string"
    Reegards soumen

    Why does your date_format loose, ununify and not fix ?
    And what is your exact requirement?
    >>
    CASE WHEN
    TO_NUMBER(SUBSTR(TO_CHAR(START_TIME_TIMESTAMP,'DDMMYYYY HH24:MM:SS'),13,2))>0
    AND TO_NUMBER(SUBSTR(TO_CHAR(START_TIME_TIMESTAMP,'YYYYMMDD HH24:MM:SS'),13,2)) <14
    <<
    This is
    CASE WHEN TO_CHAR(START_TIME_TIMESTAMP,'MM') between '01' and '13'
    >>
    THEN TO_DATE(CONCAT(SUBSTR(TO_CHAR(START_TIME_TIMESTAMP,'YYYYMMDD HH24:MM:SS'),13,2)
    ||'00',
    SUBSTR(TO_CHAR(START_TIME_TIMESTAMP,'YYYYMMDD HH24:MI:SS'),16)||'00'),
    'DD-MM-YYYY HH24:MI:SS')
    <<
    This is
    TO_DATE(
    TO_CHAR(START_TIME_TIMESTAMP,'MM"00"SS"00"),
    'DD-MM-YYYY HH24:MI:SS')
    Obviously, format is not matching !
    SQL> select to_char(sysdate,'MM"00"SS"00') from dual;
    TO_CHAR(
    06004900
    SQL> select to_date('06004900','DD-MM-YYYY HH24:MI:SS') from dual;
    select to_date('06004900','DD-MM-YYYY HH24:MI:SS') from dual
    ERROR at line 1:
    ORA-01861: literal does not match format string

  • Whats wrong with the servers i cant download update 5.1 firmware

    whats wrong with the servers i cant download update 5.1 firmware ive been trying for 2 days it says i dont have permission to access the requested source

    What says you don't have permission to access the requested source? That is not an error that should come up at all either from iTunes or when attempting an over the air upgrade. At least not an error that has anything to do with the servers.
    It could be a permissions problem on your computer or an issue being caused by your firewall or antivirus software.

  • Whats wrong with the code?????

    Hi All
    Pls can anyone help me, what is wrong with the below code, when ever i tried giving 10 digit number to chk out whether it is prime or not it is giving an NumberFormatException to me, pls can anyone help me...
    class PrimeNo{
    public static void main(String args[])
    int a = Integer.parseInt(args[0]);
    int count=0;
    for(int i=2;i<a;i++){
    if(a%i==0)
    System.out.println(a+" is not a Prime Number");
    count = 1;
    break;
    if(count==0)
    System.out.println(a+" is a Prime Number");
    Thnx and rgrds
    Badri

    Just curious, since this has already been answered, but to simplify code, would it be possible to set it so that if the value is not a prime number, just do the value like so:
    if (//code determines it is prime)
    System.out.println ("prime number");
    else
    prime = !prime;
    if(!prime)
    System.out.println ("not a prime number");not really code there, more pseudocode, but you get my drift. Would this make sense to do?

  • Whats wrong with the Network?

    What is wrong with the network? for about two days now i havent had 3g or 4g on my phone (droid razr maxx) just out of the blue it goes off my phone and hasnt come back. Does anyone know what happend?

        Yorktown301, that's very strange, but I'm here to figure this out! Are you still having problems connecting to 3G or 4G? Let's first verify that no settings on the phone were changed. Go to Settings, More, Mobile networks, Network Mode. Ensure LTE/CDMA is selected. Go back to Settings, Data usage and make sure Mobile Data is on. If still no change, remove both your battery and SIM card for about 30 seconds. If you're still having problems, let me know what zip code you're located in.
    MarquiaF_VZW
    Follow us on Twitter @VZWSupport

  • What wrong with the buttery ?

    hallow
    my question about the buttery i don't know what wrong with it . the buttery get finish after one and half hour using .
    please help me
    my Email
    [email protected]
    my mobile
    +966554302679

    Hi kamranh,
    I'd try starting Firefox in [[Safe Mode]]. If you don't have the issue while all of your add-ons, extensions, and themes are disabled, you can try adding them back in one by one until you find the culprit. You should look at the [https://support.mozilla.org/en-US/kb/Troubleshooting-extensions-themes Extensions and Themes troubleshooting guide ] and the [[Troubleshooting plugins]] article as well.
    From the looks of it though, your issue may be because you've been hit with some [https://support.mozilla.org/en-US/kb/Is%20my%20Firefox%20problem%20a%20result%20of%20malware?s=malware&r=0&e=sph&as=s#w_how-do-i-get-rid-of-malware Malware].
    If isn't malware or a plugin issue, you should take a look at the Knowledge Base article [[Search bar]]. Your default search might have been changed by a particular site. Sites like MSN, Yahoo, etc have been know to ask to become your homepage and change your search engine.
    If the address bar search has been changed as well, you might want to take a look at [[Location bar search]].
    If that doesn't work you should look at the article [[Preferences are not saved]].
    Hopefully this helps!

  • Whats wrong with the compilation?

    Dear all,
    I have a jsp file and when I check the codes, I dun see anything wrong with it.
    It gave me an error of below:
    C:\jakarta-tomcat-3.3.1a\work\DEFAULT\ROOT\AdvanceSearchResult_1.java:7577: Method popBody() not found in class javax.servlet.jsp.PageContext.
    out = pageContext.popBody();
    ^
    28 errors, 1 warning
         at org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:898)
         at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:733)
         at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java:506)
         at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:968)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:875)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
         at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
         at java.lang.Thread.run(Thread.java:534)
    I don't really get what this error means and how to debug.
    Please kindly advise me.
    Thanks in advance,
    Keng Yiam

    By servlet.jar I mean the jar file that contains the javax.* classes - particularly in your case javax.servlet.jsp.PageContext.
    It should be sitting in one of your [TOMCAT_HOME]/lib directories - lib/common I think. According to the jakarta website says that this version of Tomcat SHOULD support this call. What I was thinking is maybe you had an older version floating around your system somewhere, which could confuse Tomcat. Make sure that there aren't any sitting around in web-inf/lib or [JAVA_HOME]lib/ext etc etc
    The pushbody/popbody call will be generated by the translation of the JSP into a servlet (ie it is automatically generated code)Is it open to you to upgrade? I would recommend at least version 3.3.2, and version 4 if possble.
    Good luck,
    evnafets

  • Whats wrong with the light sensor

    Hello HP,
    I am really excited using my HP Pavilion X2. Ya i just got it from online store since 2 weeks ago. I  am happy with this one. Really. But arround 4 days ago i found a something wrong with my HP regarding the light sensor which is located in the near of camera. When i turned off the light still on, its mean it does not completely shut down yet. So the only way is press the on/off button in 5 seconds, them it will turn off completely.  I wonder what is going on with my Pav X2. Would you help me to identify and. then solve this problem? Just in case, i've already asked to the local HP service representative and they suggest me to recovery but it takes arround 7 days lefted in the service center. I decide to bringing back and try to learn how I can recover this pc tablet. Really it makes me worried. Your answer and explanation is really help me.
    Thank you so much
    Regards
    Naelil

    You arn't making any sense.. the light sensor does not light up, nore would it have anything to do with turning the laptop off.  When activated, the light sensor lets windows try and set the brightness of the screen automaticly. I allways disagree with it so im allways turning it off. 

  • Whats wrong with the last update?

    Since the last update, im not able to read a video on the net, could be youtube, daylimotion or  streaming, no ONE! So, I ve unistalled  flash player, re install it twice! and it still didnt work? whats wrong again? (and no it s not a problem from firefox,it's all updated, nor from an add-on( same) nor my own computer, its from flash player (when i ve unistalled it, i can read  some videos...)
    and no i havent real player...
    Any clue?
    (Btw; why oblige the user of flash to add the "not so good" Mac afée's scan"? )

    What OS?

  • Whats wrong with my query

    Hi All
    I have the following query, the pupose is to get the count of BIN_DATA_ID's for the first 2 days (48 hours). I have a start date and end date, but i need to get only 48hours or 2days worth of data from a week or more worth of data.
    SELECT   bin_data_id, CEIL (end_intv_time / 100) AS end_intv_time, direction,
             traffic_sample_id,
             start_date,  end_date,end_date_1, ROW_NUMBER,days,
             COUNT (bin_data_id) OVER (PARTITION BY traffic_sample_id) AS COUNT
             from
    SELECT   ROW_NUMBER () OVER (PARTITION BY t1.traffic_sample_id ORDER BY t1.bin_data_id)
                                                                    AS ROW_NUMBER,
             t1.traffic_sample_id,
             SUM (t1.bin_1_data + bin_2_data + bin_3_data) AS SUM,
             SUM (  t1.bin_10_data
                  + t1.bin_11_data
                  + t1.bin_12_data
                  + t1.bin_13_data
                  + t1.bin_14_data
                  + t1.bin_15_data
                  + t1.bin_4_data
                  + t1.bin_5_data
                  + t1.bin_6_data
                  + t1.bin_7_data
                  + t1.bin_8_data
                  + t1.bin_9_data
                 ) AS sum_1,
             t1.bin_data_id, t1.direction, t1.end_intv_time,
             TO_DATE (t3.start_date, 'mmddyy') AS start_date, TO_DATE (t3.end_date, 'mmddyy') AS end_date,
             (TO_DATE (t3.start_date, 'mmddyy') + 2) AS end_date_1,
               (TO_DATE (t3.start_date, 'mmddyy') + 2)
             - TO_DATE (t3.start_date, 'mmddyy') AS days
        FROM bin_data t1, location_details t2, traffic_sample t3
       WHERE t1.traffic_sample_id = t2.traffic_sample_id(+)
             AND t1.traffic_sample_id = t3.traffic_sample_id(+)
    GROUP BY t1.traffic_sample_id,
             t1.bin_data_id,
             t1.direction,
             t1.end_intv_time,
             t3.start_date,t3.END_DATE
             where row_number!='1'
             and days=2
             and traffic_sample_id=832I tried the above query but unscuccessfully. The data is per each hour per day so the COUNT i had in the query must give me 48 instead its giving me weeks worth count 120 (only weekdays), how do i get count for just the 48hrs or 2 days. Please need help.
    Thanks

    output:
    TRAFFIC_SAMPLE_ID     BIN_DATA_ID     END_INTV_TIME     START_DATE     END_DATE                             END_DATE_1     ROW_NUMBER     DAYS     DAYS_1     COUNT
    832                         31264                         11          8/26/2009                      8/31/2009                             8/28/2009            2                      5     2     120
    832                         31265                         12          8/26/2009                  8/31/2009                             8/28/2009            3                      5     2     120
    832                         31266                         13          8/26/2009         8/31/2009                             8/28/2009            4                      5     2     120
    832                         31267                         14          8/26/2009                      8/31/2009                             8/28/2009            5                      5     2     120
    832                         31268                         15          8/26/2009                      8/31/2009                             8/28/2009            6                      5     2     120
    832                         31269                         16          8/26/2009                      8/31/2009                             8/28/2009            7                      5     2     120
    832                         31270                         17          8/26/2009                      8/31/2009                  8/28/2009            8                      5     2     120
    832                         31271                         18          8/26/2009                      8/31/2009                             8/28/2009            9                      5     2     120
    832                         31272                         19          8/26/2009                      8/31/2009                             8/28/2009           10                      5     2     120
    832                         31273                         20          8/26/2009                      8/31/2009                             8/28/2009           11                      5     2     120
    832                         31274                         21          8/26/2009                      8/31/2009                             8/28/2009           12                      5     2     120
    832                         31275                         22          8/26/2009                      8/31/2009               8/28/2009           13                      5     2     120

  • Whats wrong with the Nokia update servers?

    Ive been trying to update my 5800 with the latest software version using the updtaer built in on the phone. Im using my home wireless connection to do so, it happens that it either stops downloading on the middle or says server doesnt respond. any idea how to do this? Cause this thing is starting to pi** me off. Courrent version is  11.0.008
    Ive tried more than 1 wireless connection and its the same problem. Either says there are no updates, server not responding or stops in the middle of the download
    thanks
    EDIT: also i cant open any page using wireless. Can it be imcompatibility with the router?
    Message Edited by tubago on 06-Jun-2009 03:33 PM
    Message Edited by tubago on 06-Jun-2009 03:34 PM
    Courrently using: 5800, N80, 6680, 6131and SE K850i
    Owns, besides the ones using: 3310, 7250, NGage, 3660, 6600, 6510, 8310, 8910i, 6822, 8850

    Problem solved. It was a problem on the router i found the solution here
    http://whyiseverytitletaken.blogspot.com/2008/11/nokia-n85-wifi-no-gateway-reply.html
    Courrently using: 5800, N80, 6680, 6131and SE K850i
    Owns, besides the ones using: 3310, 7250, NGage, 3660, 6600, 6510, 8310, 8910i, 6822, 8850

  • Whats Wrong with this query

    SAMPLE DATA
        CT_NO   RENT_NO DUE_DATE    DUE_AMT
         2233         1 11-SEP-06     11800
         2233         2 11-OCT-06     11800
         2233         3 11-NOV-06     11800
         2233         4 11-DEC-06     11800
         2233         5 11-JAN-07     11800
         2233         6 11-FEB-07     50000
         2233         7 11-MAR-07     11800
         2233         8 11-APR-07     11800
         2233         9 11-MAY-07     11800
         2233        10 11-JUN-07     11800
         2233        11 11-JUL-07     11800
         2233        12 11-AUG-07     50000
         2233        13 11-SEP-07     11800
         2233        14 11-OCT-07     11800
         2233        15 11-NOV-07     11800
         2233        16 11-DEC-07     11800
         2233        17 11-JAN-08     11800
         2233        18 11-FEB-08     50000
         2233        19 11-MAR-08     11800
         2233        20 11-APR-08     11800
         2233        21 11-MAY-08     11800
         2233        22 11-JUN-08     11800
         2233        23 11-JUL-08     11800
         2233        24 11-AUG-08     50000
         2233        25 11-SEP-08     11800
         2233        26 11-OCT-08     11800
         2233        27 11-NOV-08     11800
         2233        28 11-DEC-08     11800
         2233        29 11-JAN-09     11800
         2233        30 11-FEB-09     50000
         2233        31 11-MAR-09     11800
         2233        32 11-APR-09     11800
         2233        33 11-MAY-09     11800
         2233        34 11-JUN-09     11800
         2233        35 11-JUL-09     11800
         2233        36 11-AUG-09     50000
         2233        37 11-SEP-09     11800
         2233        38 11-OCT-09     11800
         2233        39 11-NOV-09     11800
         2233        40 11-DEC-09     11800
         2233        41 11-JAN-10     11800
         2233        42 11-FEB-10     50000
         2233        43 11-MAR-10     11800
         2233        44 11-APR-10     11800
         2233        45 11-MAY-10     11800
         2233        46 11-JUN-10     11800
         2233        47 11-JUL-10     11800
         2233        48 11-AUG-10     50000
    My QUERY
    select
    count(distinct(case when b.due_date <='15-feb-2010' then b.rent_no else 0  end))ovd_due,
    SUM(case when rcv_dt is null or RCV_DT>'15-feb-2010'
                     THEN due_amt
    else 0
                END) Rent_Bal
    from le_dues b
    where ct_no=2233
    my result from the query
      OVD_DUE  RENT_BAL
           43    159000here we can see tha OVE_DUE should be 42 but my query is returning 43....WHY
    please correct my query.

    Hi,
    It looks like 43 is the correct answer. The distinct values you are counting are all the integers from 0 through 42 inclusive.
    Don't compare DATEs to strings. For example
    when b.due_date <='15-feb-2010' is asking for trouble. Use TO_DATE or a DATE literal:
    when b.due_date <= DATE '2010-02-15' instead.
    If you don't want to count 0, don''t include 0 in the list of things to be counted.
    COUNT ( DISTINCT CASE
                   WHEN  b.due_date <= TO_DATE ( '15-feb-2010'
                                  , 'DD-Mon-YYYY'
                   AND   b.rent_no != 0     -- If needed (probably not; unclear from example)
                   THEN  b.rent_no
               END
          )     AS ovd_due,

  • Whats wrong with the given query?

    i have written a query to check for the dependency of indexed columns .
    but its not retuning any data.I have checked individually for columns and they are used.Then why i am not getting any data from the below given query.
    select type,NAME,LINE,TEXT from all_source where upper(text) like
    ('''%'||'SELECT column_name FROM all_ind_columns where table_name in
    (''WSF_PERSON'',
    ''WSF_CODESET_TYPECODE'',
    ''GTT_STUDENT_REC_UR'',
    ''UPLOAD_ROSTER_LOG'',
    ''WSF_CLASSOFFERING'',
    ''PHCORE_CLASS_WORKGROUP'',
    ''WSF_STUDENTENROLLMENTEVENT'',
    ''WSF_SCHOOLYEAR'',
    ''WSF_CLASSSTUDENT'',
    ''WSF_GRADELEVEL_MASTER'',
    ''NCS4S_ACCOUNT_INFO'',
    ''WSF_EDUCATION_ORGUNIT'',
    ''WSF_PERSONROLE'',
    ''WSF_STUDENT'')'||'%''')

    Hi,
    My guess is you're hitting a 'too_many_quotes '...
    Try this:
    with cols as ( select column_name
                   from   all_ind_columns
                   where  table_name in  ('WSF_PERSON',
                                          'WSF_CODESET_TYPECODE',
                                          'GTT_STUDENT_REC_UR',
                                          'UPLOAD_ROSTER_LOG',
                                          'WSF_CLASSOFFERING',
                                          'PHCORE_CLASS_WORKGROUP',
                                          'WSF_STUDENTENROLLMENTEVENT',
                                          'WSF_SCHOOLYEAR',
                                          'WSF_CLASSSTUDENT',
                                          'WSF_GRADELEVEL_MASTER',
                                          'NCS4S_ACCOUNT_INFO',
                                          'WSF_EDUCATION_ORGUNIT',
                                          'WSF_PERSONROLE',
                                          'WSF_STUDENT')
    select type
    ,      name
    ,      line
    ,      text
    from   all_source
    ,      cols
    where  upper(text) like '%'||column_name||'%';(You might also want to add a restriction on the OWNER and/or use select distinct...)

  • Whats wrong with the sql query insert .... plz tell me

    {
    String sql = "INSERT INTO candidate VALUES (";
    sql += candidate.getEnrollmentNumber() + ",";
    sql += candidate.getDateOfEnrollment() + ",";
    sql += candidate.getName() + ",";
    sql += candidate.getContactNumber() + ",";
    sql += candidate.getGender() + ",";
    sql += candidate.getMailingAddress() + ",";
    sql += candidate.getEmailId() +",";
    sql += candidate.getClassOfVehicle() + ",";
    sql += candidate.getTypeOfVehicle() + ",";
    sql += candidate.getDateOfBirth() + ",";
    sql += candidate.getBatchTime() +")";
    System.out.println("sql: " +sql);
    //executeQuery(sql);
    executeUpdate(sql);
    }catch(SQLException e){
    e.printStackTrace();
    Giving me error as " com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL syntax;

    If you are inserting a string into your sql, you need to put it in single quotes (but not numbers).
    Example:
    sql += " ' "+candidate.getFirstName() " ', "
    Additionally, if firstName contains a single quote, it needs to be escaped by converting it to two single quotes.
    Note you don't have to do any of this if you use preparedStatements.
    Note: remove both spaces in " ' " so you get "'" in the above example, otherwise you are inserting spaces into your value.
    I use " ' " so you can more easily see what I did..

Maybe you are looking for