SQL INSERT trouble- please help

I'm having an trouble,to INSERT a record to my db.(MySQL)
This is the condition.
There is a form to validate the NicNo,which is input by the user.If it it exist, then the system displays an error msg. If it is not,display a new form to enter the candidate details.Then the user can save them to the db.These are working well.But,when I go to the mySQL console and check,the record is nicely saved except 2 fields.(civilStatus and eduQua).
Did you know why? I check my prepared statement,I think it's OK.
Here are the codes:
The form which is used by the user to input NicNo.
<%@ page session="false" %>
<%@ page import="java.sql.*,java.util.*,javax.servlet.http.*" %>
<form method="POST" action="EntInterProcess.jsp">
    <center>
        <div align="center">
    <center>
   <TABLE borderColor=burlywood cellSpacing=0 cellPadding=1
            width="256" borderColorLight=moccasin border=1>
      <tr>
        <td noWrap style="background-color: #DEB887" width="80"><B>NIC No</b></td>
        <td width="106">
        <input type="text" name="nicno" size="14" style="border:1px solid #0000FF;
color: #FF0000; font-weight: bold"></td>
        <td width="56"><input type="submit" value="Select" name="B1"></td>
      </tr>
     </table>
       </center>
  </div>
</form>The file called "EntInterProcess.jsp"
<%@ page import="core.CandidateMgr" %>
<jsp:useBean id="CandidateMgr" class="core.CandidateMgr" scope="session"/>
<jsp:setProperty name="CandidateMgr" property="*"/>
<%
String nextPage ="MainForm.jsp";
if(CandidateMgr.verifyNicNo()){
     nextPage="InterviewForm.jsp";
     }else{
     nextPage="ExitError.jsp";
%><jsp:forward page="<%=nextPage%>"/>I didn't copy here the page called "InterviewForm.jsp",because it has many fields.If you want please tell me.So I copy here the CandidateMgr.java file, which is the javaBean.
package core;
import java.io.*;
import java.sql.*;
import java.util.*;
import javax.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class CandidateMgr
   private String nicno;
   private String name
   private String address;
   private String civilStatus;
   private String tele;
   private String eduQua;
     // Constructor
     public CandidateMgr()
   * Returns the nicno.
   public String getNicno()
      return nicno;
   * Sets the nicno.
   public void setNicno(String nicno)
      this.nicno = nicno;
   * Returns the name.
   public String getName()
      return name;
   * Sets the name.
   public void setName(String name)
      this.name = name;
   * Returns the address.
   public String getAddress()
      return address;
   * Sets the address.
   public void setAddress(String address)
      this.address = address;
   * Returns the civilStatus.
   public String getCivil()
      return civilStatus;
   * Sets the civilStatus.
   public void setCivil(String civilStatus)
      this.civilStatus= civilStatus;
   * Returns the tele.
   public String getTele()
      return tele;
   * Sets the tele.
   public void setTele(String tele)
      this.tele= tele;
   * Returns the eduQua.
   public String getEdu()
      return eduQua;
   * Sets the eduQua.
   public void setEdu(String eduQua)
      this.eduQua= eduQua;
     public boolean verifyNicNo(){
          boolean nic_no_select_ok = false;
          String nic="xxxx";
          try{
               String DRIVER = "com.mysql.jdbc.Driver";
               java.sql.Connection conn;
               String URL = "jdbc:mysql://localhost:3306/superfine";
                //Open the database
               Class.forName(DRIVER).newInstance();
               Connection con=null;
               PreparedStatement pstmt1 = null;
               con = DriverManager.getConnection(URL);
               String sql="SELECT * FROM Candidate where nicNo= ?";          
               pstmt1 = con.prepareStatement(sql);
               pstmt1.setString(1,nicno);
               ResultSet rs1 = pstmt1.executeQuery();
                            while(rs1.next()){
                    nic=rs1.getString("nicNo");
               if(nic=="xxxx")
                    nic_no_select_ok = true;
               } else{
                    nic_no_select_ok = false;     
               rs1.close();
                       pstmt1.close();
               con.close();
            catch(ClassNotFoundException e1){
               System.err.println(e1.getMessage());
            catch(SQLException e2){
                       System.err.println(e2.getMessage());
           catch (java.lang.InstantiationException e3) {
                System.err.println(e3.getMessage());
          catch (java.lang.IllegalAccessException e4) {
                System.err.println(e4.getMessage());
          catch (java.lang.NullPointerException e5){
               System.err.println(e5.getMessage());
          return nic_no_select_ok;
     public boolean addInter(){
          boolean add_inter_ok = false;
          try{
               String DRIVER = "com.mysql.jdbc.Driver";
               java.sql.Connection conn;
               String URL = "jdbc:mysql://localhost:3306/superfine";
                //Open the database
               Class.forName(DRIVER).newInstance();
               Connection con=null;
               PreparedStatement pstmt3=null;
               con = DriverManager.getConnection(URL);
               String sqle ="INSERT INTO Candidate VALUES(?,?,?,?,?,?)";
               pstmt3 = con.prepareStatement(sqle);
               //assign value for ???
               pstmt3.setString(1, nicno);
               pstmt3.setString(2, name);
               pstmt3.setString(3, address);
               pstmt3.setString(4, civilStatus);
               pstmt3.setString(5, tele);
               pstmt3.setString(6, eduQua);
               if(pstmt3.executeUpdate()==1) add_inter_ok=true;
               pstmt3.close();
                       con.close();
            catch(ClassNotFoundException e1){
               System.err.println(e1.getMessage());
            catch(SQLException e2){
                       System.err.println(e2.getMessage());
           catch (java.lang.InstantiationException e3) {
                System.err.println(e3.getMessage());
          catch (java.lang.IllegalAccessException e4) {
                System.err.println(e4.getMessage());
          return add_inter_ok;
}These are the codes which I use to do this task.I don't know what happend to that 2 fields(they save in the db as NULL).Is there a nice method to do this database declaration? I try to declare that part as
a seperate class,but I don't know how to code that by using java and call it to other sections for reuse.
Anyone can answer these questions,please tell me how to do this,because it's urgent.
Thanks.

Hi Casabianca,
Your code looks okay. I have just a couple of questions:
(1) Are you 100% certain that those columns are of type VARCHAR/String in your MySQL database?
(2) You only have a default ctor for your core.CandidateMgr class, and it has no implementation at all. That means that the six private member Strings are all set to null.
Your addInter() method inserts the current values of the private data members into MySQL. If it so happened that those two fields, civilStatus and eduQua, were never initialized using calls to their respective setters, then their values would still be null because you never set them to sensible values inside the constructor.
I'd do two things:
(1) Add code to your default constructor to set all the strings to the empty string.
(2) Write a second constructor that allows a user to initialize all six strings when the object is created. That way you can have a fully-initialized instance of CandidateMgr without having to call the setters. Have your default ctor simply call this second ctor:
public CandidateMgr()
    this("", "", "", "", "", "");
public CandidateMgr(final String nicno, final String name, final String address, final String civilStatus, final String tele, final String eduQua)
  this.nicno = nicno;  
  this.name  = name;
  this.address = address;  
  this.civilStatus = civilStatus;  
  this.tele = tele;  
  this.eduQua = eduQua;
}Always write a constructor so the object is ready for use right away.
See if that fixes your problem. The JDBC code looks okay.

Similar Messages

  • SQL Insert Error - Please help. RESOLVED

    I have a page with several VOs and search options. One of the search options is a list of Emp IDs which (when one is selected and user clicks 'search') results in an editable table of profiles for that Emp Id.
    I have in the Footer of the results table an input field and a button 'add' bound to a method that takes two params and inserts a 'new' profile for the searched Emp Id and the value entered in the input field.
    When I enter a value and click 'add' I get the following:
    JBO-29000: Unexpected exception caught: oracle.jbo.DMLConstraintException, msg=JBO-26048: Constraint "BADGE_ACCESS_EMP_FK" violated during post operation:"Insert" using SQL Statement "BEGIN INSERT INTO BADGE_ACCESS(EMPLOYEE_ID,BADGE,ROW_ID) VALUES (?,?,?) RETURNING ROW_ID INTO ?; END;".
    JBO-26048: Constraint "BADGE_ACCESS_EMP_FK" violated during post operation:"Insert" using SQL Statement "BEGIN INSERT INTO BADGE_ACCESS(EMPLOYEE_ID,BADGE,ROW_ID) VALUES (?,?,?) RETURNING ROW_ID INTO ?; END;".
    ORA-02291: integrity constraint (HR.BADGE_ACCESS_EMP_FK) violated - parent key not found ORA-06512: at line 1
    My Emp table is simple - just an ID, First and Last names with ID as PK. My profile table (called Badge_Access) has the EmpId as FK and it's own PK set by a DBSequence. The other column in Badge_Access is for the input value (number).
    I do not know how to debug in JDeveloper such that I can see the values that are being passed to the method. My 'add' button method is:
    public void createBadgeAccess(Number empId, Number badge) {
    BadgeAccessImpl ba = (BadgeAccessImpl)getDBTransaction().createEntityInstance(BadgeAccessImpl.getDefinitionObject(), null);
    ba.setEmployeeId(empId);
    ba.setBadge(badge);
    getDBTransaction().commit();
    I have the 'value' of the empId param = ${bindings.AccessByEmployeeEmployeeId.inputValue}
    This is the selectOneChoice field the user uses to search...
    and the 'value' of the badge param = ${bindings.Badge.inputValue}
    This is the input field the user fills in before clicking 'add'...
    The values I think I am passing are empId=106 and badge=102 - both are valid & the 'parent key' 106 is valid...
    any help will be greatly appreciated!!! Thanks
    Ginni
    Message was edited by:
    ginnim
    I found a Tip that described what was happening.

    Wrap some try/catch around the statements instead of trying to decipher the Java junk. Could be a problem in the PS, could be a number of things. At least figure where in the application the error takes place.

  • I purchase Lightroom 6 upgrade and during installation the product won't download using the serial number provided. It then asks for serial number of previous installation (lightroom5) but does not recognise it once inserted. Please help!

    i purchase Lightroom 6 upgrade and during installation the product won't download using the serial number provided. It then asks for serial number of previous installation (lightroom5) but does not recognise it once inserted. Please help!

    Yes, I have a TLP license, so which kind of upgrade should I buy?
    I'm an Italian user and I would prefer to contact support by web chat but I can't find it in the website, please can you help me? Thank you, I'm desperate!

  • TS1702 On my Page Tool Bar I don't get the icons for info and insert. Please help

    When I open my Pages Program I don't get the icons for 'info' and 'insert'. Please help

    I'm having the exact same issue.  Any help is appreciated!
    Thanks!

  • Public Synonyms for Nested Tables - Insertion Problem  - Please Help!!!!!

    Hi,
    we are facing a problem during implementation. Our DB set up
    is , we will be having two schema named OWNR and COPY.
    In the schema, OWNR we have to create all the tables,
    types,procedures, packages and obj.....This schema will have
    both DDL and DML privileges.
    In the schema, COPY we are not supposed to create any tables,
    objects. We have to create public synonyms for all the tables,
    types, procedures... in OWNR and grant ALL privilege to the
    schema COPY.The schema, COPY will have only DML privileges.
    The problem is we have some nested tables in our application.
    When I try to insert into the synonym which is created for the
    nested table, it is not allowing me to insert..The whole
    implementation is stucked..Please help.The scripts are given
    below.......
    We have a type name SITA_ADDRESS_TY which is used by the nested
    table SITA_ADDRESSES_NT.Script used for creating the Type,Nested
    table,Table, Public Synonym and granting all privilege to these
    types and tables are
    CREATE OR REPLACE TYPE SITA_ADDRESS_TY AS OBJECT (
    SITA_ADDRESS VARCHAR2(10),
    REMARKS VARCHAR2(100)) ;
    PROMPT SITA_ADDRESSS_NT...
    CREATE OR REPLACE TYPE SITA_ADDRESSES_NT AS TABLE OF
    SITA_ADDRESS_TY ;
    Using this nested table we have created the table,
    UMS_SITA_ADDRESS
    CREATE TABLE UMS_SITA_ADDRESS (
    COMPANY_CODE VARCHAR2 (6) NOT NULL,
    AIRLINE_CODE VARCHAR2 (6) NOT NULL,
    DESTINATION VARCHAR2 (6) NOT NULL,
    SITA_ADDRESS SITA_ADDRESSES_NT)
    TABLESPACE EKUMDAT
    PCTFREE 5
    PCTUSED 40
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    NEXT 64K
    PCTINCREASE 0
    MINEXTENTS 1
    MAXEXTENTS 505
    FREELISTS 1 FREELIST GROUPS 1 )
    NOCACHE
    NESTED TABLE SITA_ADDRESS STORE AS UMSNT_SITA_ADDRESS ;
    PROMPT SYNONYM SITA_ADDRESS_TY...
    CREATE PUBLIC SYNONYM SITA_ADDRESS_TY FOR SITA_ADDRESS_TY
    PROMPT SYNONYM SITA_ADDRESSES_NT...
    CREATE PUBLIC SYNONYM SITA_ADDRESSES_NT FOR SITA_ADDRESSES_NT
    PROMPT UMS_SITA_ADDRESS...
    CREATE PUBLIC SYNONYM UMS_SITA_ADDRESS FOR UMS_SITA_ADDRESS
    Granting Privileges
    PROMPT SITA_ADDRESS_TY...
    GRANT EXECUTE ON SITA_ADDRESS_TY TO COPY
    PROMPT SITA_ADDRESSS_NT...
    GRANT EXECUTE ON SITA_ADDRESSES_NT TO COPY
    PROMPT UMS_SITA_ADDRESS...
    GRANT ALL ON UMS_SITA_ADDRESS TO COPY
    When I connect to copy and desc UMS_SITA_ADDRESS, the structure
    is
    SQL> desc ums_sita_address
    Name Null? Type
    COMPANY_CODE NOT NULL VARCHAR2(6)
    AIRLINE_CODE NOT NULL VARCHAR2(6)
    DESTINATION NOT NULL VARCHAR2(6)
    SITA_ADDRESS
    OWNR.SITA_ADDRESSES_NT
    Why is it so??. Even though I have a synonym for
    SITA_ADDRESSES_NT, it is not referencing the synonym but instead
    refer the OWNR.SITA_ADDRESSES_NT
    Because of this when I try to insert into ums_sita_address(in
    schema COPY), it is giving the following error,
    SQL> insert into ums_sita_address values
    ('EK','EK','DXB',SITA_ADDRESSES_NT());
    insert into ums_sita_address values
    ('EK','EK','DXB',SITA_ADDRESSES_NT())
    ERROR at line 1:
    ORA-00932: inconsistent datatypes
    But when the same connect to OWNR and try to insert with the
    same stmt, it is inserting...
    Our middle tier can connect only to COPY schema alone..Is there
    anything to be done in the DBA side to achieve this??.
    Please help from your valuabe experience...Or can you ask your
    collegues if they have got a soln to this probs..We are stucked
    with this...
    Thanks
    Priya

    Hi
    I am not sure but maybe you need to use this command:
    SQL> insert into ums_sita_address values
    ('EK','EK','DXB',SITA_ADDRESSES_TY());
    SITA_ADDRESSES_TY() instead SITA_ADDRESSES_NT
    Regards

  • I am Learning Sql + ...Please help me with my queries ..Thanx in Advance

    1. what is the meaning of 'MGR" in EMP table ?
    2.DISPLAY EMPNO,ENAME,SAL,ANNUAL SAL, ROUND TO NEAREST 100, EXPERIANCE WITH 3 DECIMAL PLACES,
    DNAME,LOCATION OF EMPLOYEE IN THE SORDED ORDER OF LOCATION?
    PLEASE HELP WITH ABOVE TWO ...
    HAVE A GREAT DAY...
    RAVI

    856530 wrote:
    Hi Aman thanks for your kind reply, i will make sure no more upper case anymore...
    display empno,ename,sal,annual sal, round to nearest 100, experiance with 3 decimal places,
    dname,location of employee in the sorded order of location?
    In the above query only i need to know how to round to nearest 100 rest of the query i was aware of it.
    thanks
    RaviAll the functions (including ROUND) are documented in the fine SQL Reference manual. See
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions135.htm#i78633

  • Another problem with my SQL ...please help

    hi to u all
    here is my SQL
    String SQL = "UPDATE TABLENAME SET FIRSTFIELD= '"+VALUE1+"', "+
                                 "Secondfiled= '"+value2+"', "+
                                 "185thfieled= '"+value185+"',"+
                                "WHERE MAINREF= '"+MAINREF_VALUE+"'";i have about 185 filed in my form where i am using this update statement
    now everything complied perfect but when i run the program and try to update
    i am getting the following error
    [Microsoft][ODBC Microsoft Acceess Driver] Too many fileds defined please help me
    Regards Gugi

    hi to u all
    here is my SQL
    String SQL = "UPDATE TABLENAME SET
    FIRSTFIELD= '"+VALUE1+"', "+
    "Secondfiled=
    "Secondfiled= '"+value2+"', "+
    "185thfieled=
    "185thfieled=
    led[/i]= '"+value185+"',"+
    "WHERE MAINREF=
    "WHERE MAINREF=
    [/i]= '"+MAINREF_VALUE+"'";i have about 185 filed in my form where i am using
    this update statement
    now everything complied perfect but when i run the
    program and try to update
    i am getting the following error
    [Microsoft][ODBC Microsoft Acceess Driver] Too many
    fileds defined please help me
    Regards GugiThis is not valid SQL. I have no idea what you're doing. Worse, I don't think you do, either.
    %

  • BlackBerry Curve 8500/8520, Appworld trouble, please help.

    Right so I downloaded Appworld and I just got my Blackberry on Sunday last (the 11th of September) and I am having some trouble logging into Appworld using my BB ID it comes up with "An error has occurred. Please try again later" I have been trying solidly for two days now and tbh I am getting rather tired of it, I have checked and made painstakingly sure that my email address and password are right but they just wont work, please help, any and all help will be appreciated!
    Pierrot

    This might sound silly but this is what to do!! The same thing happened to me! Go to ur time and date settings and make sure they at set to automatic and not manual and that's it believe it or not. Let me know if it works also once u've done it take ur battery out and put it in again to reboot it

  • How can I stop Crystal reports from locking tables in our SQL db?  PLEASE HELP!!!

    Post Author: kevans
    CA Forum: Data Connectivity and SQL
    I really need help with this and so far I've had no luck finding a solution on Crystal's knowledge base, forums our even outside of this site.
    I recently upgraded from crw8 to crw10 and of course after converting reports and placing them into production I now discovered that crw10 will place locks (blocking) on the SQL tables it is using.
    Is there a setting in crystal so I can turn this off?  Someone said I can use a statement like ... "with (nolock)"  but I can't seem to figure out the correct syntax to use, I'm not even sure if this works since I can't find info on it.  I desperately need help!!!
    Example - if this is my select statement how would I add the "nolock" to it?
    (DateTimeToDate (PDMTimeToDateTime ({call_req.open_date})) >= {?Starting Date}) AND   (DateTimeToDate (PDMTimeToDateTime ({call_req.open_date})) <= {?End Date}) AND    (if {?Select_Group} <> "ALL" then {ca_contact.last_name} = {?Select_Group}         else if {?Select_Group} = "ALL" then true) AND            {call_req.type} = {?Type}

    Post Author: sharonmtowler
    CA Forum: Data Connectivity and SQL
    no lock is used in the sql stored procedure. i believe you can look at your sql statement in the report and place the nolock(prior to the table name)
    the only problem with this is you may get dirty data. most sql developers dont recommend it especially with real time data.

  • IPod Nano troubles, please help

    I'll try to explain this problem to the best of my ability, this has been an ongoing problem since my sister got her iPod Nano:
    Me and my sister both got iPods for Christmas, her a Nano and myself a Video, now this isn't about me, my iPod works with my computer (thankfully), but my sister's Nano does not work with her computer. The only reason she has music is because she hooked it up to mine and got my music (a process so annoying to me it's hard to explain, and no, before it is suggested I am not going to add her music to my computer, add it to my library, hook up her Nano, give her her music, and then undo that whole process afterwards. Also I am going off to college next year and won't be able to do that all the time).
    Anyway, so the problem appears to be that Windows does not recognize her Nano. I follow the instructions exactly like I did to use my iPod, I install the newest software (iPod updater and iTunes) and then put music into iTunes and then plug in her Nano, and I get a very strange noise. If you can imagine the two noises commonly heard, two beeps, one low and one high when you plug in a piece of hardware, and one high and one low when you unplug it, think of this noise as three, very quick low beeps. I do not know what this noise means, but it appears to mean "we know you plugged something in, but we don't know what the heck to do." iTunes at this point does not automatically update the iPod, and when I go into iPod Updater, the message is "plug in an iPod to begin" (although one is plugged in).
    Originally I thought the problem was with her USB drives, although they are USB 2.0 as recommended. I called an Apple service representative (actually a few, only one giving me anything close to a reason for the problem), and upon checking the Device Manager the representative told me that "VIA" USB controllers are not compatible with the Nano. I did not find this likely, but I accepted it as the reason and she has since gone without an updated music selection in her Nano.
    Recently my sister purchased a PCI USB card to put into her computer, which I installed (with difficulty, hard to find the drivers). We again tried to use the Nano with no luck. These new USB controllers are "NEC PCI to USB Open Host Controllers" also 2.0, according to the packaging.
    I have since reinstalled iTunes and iPod Updater to their most recent versions and reinstalled the USB ports twice, with no better results. Currently I am at the Device Manager and it shows it "recognizes" the iPod, under "Other Devices" (which has a yellow question mark as the icon) and the iPod tab itself also has a yellow question mark as the icon, but this yellow question mark has a smaller yellow circle with an exclamation point ("!") inside it. I attempted to use the "Add New Hardware" wizard to "install" the iPod, but at the point where it looks for drivers it says it can't find any.
    Please help, I would be greatly appreciative of any information concerning:
    -My sister's USB ports and if they are the problem
    -What the "three beeps" noise means when I plug in the Nano
    -Where I can find "drivers" (if they exist) for the Nano so the computer recognizes it
    -Any other ideas/suggestions that could be of help
    Thanks in advance! I hope someone else out there can answer my problem!

    hiya!
    -Where I can find "drivers" (if they exist) for the Nano so the computer recognizes it
    hmmm. okay, perhaps we should try giving the techniques in this MarkJones post a try:
    http://discussions.apple.com/thread.jspa?messageID=1940779&#1940779
    with regard to the USB card compatibility issue, this document might be helpful:
    iPod: Recommended FireWire and USB Cards
    love, b

  • Scroll Bar Troubles, Please Help.

    When In A WebPage, I Have No Scroll Bars, And The Up And Down Arrows Will Not Scroll The Page Either. The Only Way I Can Scroll Is By Dragging The Screen Up And Down By Highlighting And It's Rather Bugging Now. I'm New To Macs By Two Weeks So Please Please Help.
    ThankYou.

    What browser are you using? Do you get this condition on all web pages you access?

  • Major Ipod Trouble, Please Help

    Lately I've been going through a lot of frustration with my ipod. I just recently bought an imac intel core duo and through data DVDs and ipod access, managed to get all of my music, which had previously been scattered between two PCs and an ipod, in one place. In order to get it onto my ipod I had to restore the ipod and then synch it with my new computer's itunes, which was successful. Everything was going smoothly until recently it started freezing inexplicably. There doesn't seem to be any rhyme or reason other than that it seems to freeze a few seconds into a song and that it's just about always happened in my car when it's plugged into my FM modulator. Every time it's happened, the music disappears when I restart it, and doesn't reappear until I've restarted it several more times. I thought perhaps that restoring the ipod didn't fully update the software and created problems after it had been synched. But just recently when I plugged it into my computer, itunes said that it couldn't be read and that I should restore it to it's factory settings, which I had just recently done, and then when I ran ipod updater on it without itunes, it said that my ipod was up to date. I would just restore it or buy a new one but I just did restore it and this ipod is only a few months old and was sent to me as a replacement when my old ipod broke. Any insight would be appreciated

    im sorry i cant seem to start a new topic PLEASE HEEEEEEEEEEEEEEEEEELLLLLLLLLLPPPPPPPPPPPPP
    all of a sudden about half an hr ago my computer froze & went all spastic. i retsarted & now ALL MY SONGS ARE GONE FROM MY IPOD!!! I HAD 10 000+ SONGS HOW DO I GET THEM BACK!?!?!??
    please tell me theres a way. when i check the ipod itself it says 0 songs 0 videos but strangely my 87 photos are still on there. also when i reconnect it to the computer it says to restore its factory settings but when i go to update/restoe it says i have 10GB left (its a 60Gb video ipod) so i think the songs are still stored there but i cant access them or something please help me!!

  • Itunes Troubles, Please Help!

    I am leaving for vacation in a few days and i go to update my ipod to get some more tv shows and movies on it. When i open itunes this message appears:
    "iTunes has encountered a problem and needs to close. We are sorry for the inconvenience."
    i tried quicktime, because i know quicktime is downloaded through itunes, this message appears:
    "QuickTime failed to initialize. Error # -2095."
    I have tried everything i can think of, reinstalling itunes, uninstalling it and then installing it again, and trying to move all of my ipod files to another computer, but i would much rather stay on the same computer using the same library. Please help me, i am leaving for vacation on July 20, so i would really appriciate it if you would answer this before then if possible. If this isnt possible help later is better than nothing.
    Thanks,
    Connor

    I have tried everything i can think of, reinstalling
    itunes, uninstalling it and then installing it again,
    and trying to move all of my ipod files to another
    Did you try uninstalling and re-installing Quicktime? Or just iTunes? Use the standalone installer for Quicktime. Get it here: http://www.apple.com/quicktime/download/win.html

  • Sql  Query . Please help its urgent.

    Suppose in table EMP there are 2 columns (Roll_no and Name)
    Roll NO Name
    00001 A
    00002 B
    00010 X
    My requirement is to trunc preceding Zero's. For ex : for Roll no: 00001 the output should be 1 and for 00002 --> 2 .
    Please help its very urgent.

    try this
          select
                  to_number(roll_no) roll_no,
                  name
          from
                  emp;
         Regards
    Singh

  • SQL QUERY, URGENT PLEASE HELP .....

    Hi,
    There is a table which stores the sales record, weekly basis.
    For example
    WEEK______ ITEMNO______SALES______QTY
    200201_____10001______10,000______50
    200202_____10001______18,000______55
    200230_____10001______55,000_____330
    Now the report should display the week nos and a Cumulative average.
    like
    ITEM NO - 10001
    WEEKNO____WK-AVG____13WK-AVG____26WK-AVG____52WK-AVG
    200201
    200202
    200203
    200230
    The WK-AVG is calculated for that perticular (weeks sales /weeks qty) but for 13WK-AVG,26-AVG and 52WK-AVG , The calculationis the (cumulative of last 13 week sales /cumulative of last 13 wk qty)
    for example at week 200230 the 13WK-AVG should be
    (cumulative sales from week 200218 to 200230 / cumulative qty from week 200218 to 200230 )
    the same hold good for 26WK-AVG AND 52WK-AVG. Please suggest me how to do it . This is very urgent . Please help me .
    Thanks
    Feroz

    Feroz,
    One way is to use subselects. E.g.,
    SELECT WK_AVG, 13WK_AVG, 26WK_AVG, 56WK_AVG FROM
    (SELECT (SALES/QTY) AS WK_AVG FROM TABLE WHERE ITEMNO=x AND WEEK = ...),
    (SELECT (SUM(SALES)/SUM(QTY)) AS 13WK_AVG WHERE ITEMNO=X AND WEEK > Y AND WEEK <= Z),
    hope this helps.
    regards,
    Stewart

Maybe you are looking for