User-1578974752 posted
Hi
Actually
select
distinct
user_name
from usermaster
where
SUPPLIER_CODE=seg1
and CHECK_DATE between '01-JAN-2021' and '31-JAN-2021'
above query is working fine , but I want as below
If select a month and year of CHECK_DATE in the drop downlist the value must show in the grid view.
when I tried as below in oracle, it is not working.
to_char(CHECK_DATE, 'MONTH') ='JAN'
to_char(CHECK_DATE, 'YEAR') ='2021'
ie
select
distinct
user_name
from usermaster
where
SUPPLIER_CODE=seg1
and
to_char(CHECK_DATE, 'MONTH') ='JAN'
and to_char(CHECK_DATE, 'YEAR') ='2021'
what change should I do ,to make it work. Thanks