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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by supernovae

  1. supernovae

    retrieve the last day of the month

    HI Marc Im retrieving data from SAP R/3, wc is using IBM DB2 as their database. We r using an extracting tool to retrieve the tables from SAP into another application developement tool using SQL .( I hope im making sense here :-)) Being relatively new to DB2, im not sure of the extensive...
  2. supernovae

    retrieve the last day of the month

    Thanks for all the replies.. im not using v7 , but from the example codes given , i ve got a rough idea on how to proceed . my final code looks like this : LTRIM(RTRIM(CHAR(YEAR(CURRENT DATE - 1 MONTH )))) || CASE WHEN MONTH(CURRENT DATE - 1 MONTH ) < 10 THEN '0'||...
  3. supernovae

    retrieve the last day of the month

    HI Thanks for all the reply To add , the date field that i am getting is of the following char format: YYYYMMDD May i know how to proceed?
  4. supernovae

    retrieve the last day of the month

    HI All.. May i know how to retrieve data from a table, based on a date field, the last the day of the month. Thanks ofr any replues
  5. supernovae

    DB2 date format yyyymmdd

    Thanks alot!
  6. supernovae

    Date Formatting

    btw, when u use the above statement , the result wuld be 2002421 , the '0' in '04' is truncated becoz of the char(), is there any way to retain the month as MM i.e '04' and not '4' . same applies for the char(day()) function.
  7. supernovae

    DB2 date format yyyymmdd

    Thanks for the reply . I have since tried concatenating the '0' with the rest of the statements but still it doesnt work ... where create date = char(year(current date) || '0' || char(month(current date)) || char(day(current date))) did i miss out anything ?
  8. supernovae

    DB2 date format yyyymmdd

    HI I have a query on the date format . I am retrieving data from a SAP DB2 based on selection date. In the tables , the dates in the table are displayed as yyyymmdd. When i use the statements select.... .... where create date = '20020821'(hardcoded) or where create date =...

Part and Inventory Search

Back
Top