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. hnkadmn

    Load problem for Char column

    Hi I am not able to load the data from dataset for a column data type defined as Char and the data having - (hypen) in the data like abc-def. Please help me to load the data into the table. thanks in advance Hari
  2. hnkadmn

    Load problem for data type decimal

    Hi I have table with a_bc_de column decimal(15,2). The data has to be loaded using Load utility. The data is in text format for this decimal column say 12324343.23, but the load card for this column will be like A_BC_DE POSITION( 37: 44 ) DECIMAL PACKED...
  3. hnkadmn

    Integer limit 32767 problem

    Hi Is the data type is SMALLINT or INTEGER. The smallint allows only upto 32767. check the table definition. Hari
  4. hnkadmn

    Integer limit 32767 problem

    Hi We are able to store upto 999,999. didn't faced any problems. May I have your insert statement. try integer(col) in insert statement. Hari
  5. hnkadmn

    need help on CASE usage in Where clause

    Hi Blom Thanks for your suggestion. I tried executing the SQL, it gave same result as having multiple OR's. But it took more CPU time. Hari
  6. hnkadmn

    Date conversion during table load from file

    Hi Is it possible to convert date in DD-MM-YYYY to DB2 format YYYY-MM-DD during the load from flat file. I receive the date from other Database in format DD-MM-YYYY. Please advise on the method to convert to DB2 format during load. Hari
  7. hnkadmn

    Update problem

    I am not sure of it, but think it is V7.0. Is it possible to find version details using an SQL, if so pls advise. thanks for your time. Hari
  8. hnkadmn

    need help on CASE usage in Where clause

    here I am giving only where clause. existing where clause is having so many or conditions, can I replace with Case. Please suggest. Where ( a = 1 and b=2) or (a=3 and b=4) or (a=4 and b=8) Can replace with Where Case When ( a = 1 and b=2) then " here what should we do" When (a=3...
  9. hnkadmn

    Update problem

    Thank you very much. Actually data type of A.T is timestamp and data type of B.T is time, so I want to update the HH.MM.TT in A.T with the Time value in B.T. You advised that function cannot work in update. thank you for ur suggestion. hari
  10. hnkadmn

    Update problem

    Hi I have a problem in update, getting SQLcode -104 UPDATE D1.T_A A SET TIME(A.T) = (SELECT B.T FROM D1.T_H B WHERE A.ID = B.ID AND A.TMST = B.TMST) A.T col is timestamp and it have current timestamp value. B.T col is TIME, I want to update the time value in A.T Timestamp with...
  11. hnkadmn

    Hi All, Can you pls tell me how to

    Hi If you have Platinum tool, then go to Rc/query and give the table name you get the length. Hari TCS
  12. hnkadmn

    Padding Existing Records

    Hi JK Try this SELECT (WHEN LENGTH(RTRIM(xxxxx)) =3 THEN CHAR(000) CONCAT CHAR(xxxxx) ELSE xxxxx END ) AS yyyy Hari TCS
  13. hnkadmn

    Selecting most recent of dupe transactions

    You can use the parameter FETCH FIRST 1 ROW ONLY and remove the group by and order by. This will work only in DB2..If it is another, search for similar statement.

Part and Inventory Search

Back
Top