Dear Friends,
I would Like to know the query.Which will have the condition is , Two dates Those Date START_DT And END_DT ,I want to
Fetch the data according to the two dates and Current date. The Current date between the two dates .
How to select Data in group of datas..I require query in Oracle Based..
Thanks in advance ,
by
Karthik.k


Iftikar HussainRank #423 · 5.9K reputationPosted Aug 13, 2013, 3:26 AM EDT
Try like this
Regards,
Iftikar
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Aug 13, 2013, 3:12 AM EDT
select * from tablename
WHERE trunc(ORDER_DATE) BETWEEN to_date('03-01-2008','MM-DD-YYYY') AND TO_DATE('03-11-2008','MM-DD-YYYY')
Karthik KRank #1,981 · 738 reputationPosted Aug 15, 2013, 12:55 AM EDT
Karthik KRank #1,981 · 738 reputationPosted Aug 15, 2013, 9:58 PM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 15, 2013, 10:01 PM EDT
Karthik KRank #1,981 · 738 reputationPosted Aug 15, 2013, 10:40 PM EDT
i Have changed that Coding Like above
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 15, 2013, 10:45 PM EDT
Regards,
Iftikar
Karthik KRank #1,981 · 738 reputationPosted Aug 15, 2013, 11:08 PM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 15, 2013, 11:11 PM EDT
IF EXISTS(SELECT 1 FROM YourTable
BEGIN
INSERT INTO your other table
END
Regards,
Iftikar
Karthik KRank #1,981 · 738 reputationPosted Aug 16, 2013, 12:02 AM EDT
SELECT * FROM YourTable
Anyway i am using the above code ...i Unable to use Your Procedure..because i want get some field in values from one table so i cant use that one and then i have to insert it to one table ..
Thanks in advance .
-Karthik