Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. deucesp97

    Date Conversion

    I am using QMF to convert a character type into a date type. Is this possible, if so how? I have tried a few things but the recent is SELECT DATE(ROUTE_DT) FROM INVOICE; The error message I am receiving is the datetime value is invalid.
  2. deucesp97

    Date Conversion

    I am using QMF to convert a character type into a date type. Is this possible, if so how? I ahve tried a few things but the recent is SELECT DATE(ROUTE_DT) FROM INVOICE; The error message I am receiving is the datetime value is invalid.
  3. deucesp97

    Current Date

    THANKS so much for all of your help, I am going to try the DECIMAL datatype. I really appreciate it.
  4. deucesp97

    Current Date

    Is NUMBER a valid DB2 datatype? I am not sure?
  5. deucesp97

    Current Date

    I have the column currently set as a character datatype and I am receiving the error, new value has wrong data type. I don't understand why character would be the wrong data type, should I try integer?
  6. deucesp97

    Current Date

    Is there a similar way to do a datediff function in DB2?
  7. deucesp97

    DATE Function

    Is there a way to perform a date diff function in DB2? If so how?
  8. deucesp97

    Current Date

    My question is that when I update that column does it need to be of a date type, I currently have the column as a character type and I am receiving and error: New value has wrong data type. I am using a DB2 database.
  9. deucesp97

    DATE Function

    I am trying to get the date difference between a date in a DB2 column and today's date and updating it to a column. The column type that I am updating it to is character. I am getting an error, new value has wrong data type when trying this SQL statment. UPDATE W17G.INVOICE SET...
  10. deucesp97

    Current Date

    Does anyone know how I can perform function in SQL that will subtract the current date from a date in a specific column. What I really want to do is a date difference function and then update the difference to a column. Any suggestions?
  11. deucesp97

    Update statement

    I figured it out late last night after a number of hours but what you want to do is a subquery within the UPDATE statement. UPDATE W17G.INVOICE SET REV_ROLE = 'CS' WHERE ROUTE_LST =...
  12. deucesp97

    Update statement

    Are you not able to use a reference to another table when executing an update procedure. I am trying to update a column but I am getting errors in my SQL statement. I am using a DB2 database. My example: UPDATE W17G.INVOICE SET REV_ROLE = 'CS'...
  13. deucesp97

    UPDATE a column using the value in another table

    I am trying to use the UPDATE statement to update a table that currently has data. There is a column "QUEUE_DT" that I need to update using the data currently in the table. I would like to do something like this: UPDATE INVOICE SET QUEUE_DT = SCE5200.APROVQUECREATEDT FROM SCE5200...

Part and Inventory Search

Back
Top