Quote:
|
Originally Posted by jsharon1248
You didn't provide arguments for the MONTH and YEAR functions. In addition, MONTH and YEAR return integers. DB2 won't allow you to concatenate integers without using functions to convert them to character type data. I'm not sure I understand the intent here anyway. It looks like you're trying to format a month begin date, but your BETWEEN ranges spans years.
|
Hi jsharon1248,
let me explain my situation . I have a table which store the month and date of an entity . Now i want to find out the entities between two dates . I know
between can be done only in date ,so i am formating the value into date saying date(MONTH || '-' || '01'|| '-' || YEAR) ,here year and month will be provided by user.
And moreover i have to execute this query using Hibernate Criteria .
I hope u understood the intent .Pls help me out ..
Jomin