I have records in sql database table whith contain Date, ID, Name, Amount as colums. So my question is:
Which quary can i use to select son record bettwin Date1 and Date2?
I have records in sql database table whith contain Date, ID, Name, Amount as colums. So my question is:
Which quary can i use to select son record bettwin Date1 and Date2?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sanjay KumarRank #561 · 4.3K reputationPosted Nov 6, 2013, 1:32 AM EST
SELECT * FROM tablename WHERE column_name BETWEEN '11/17/2013' AND '19/12/2012`
Pradip PandeyRank #452 · 5.6K reputationPosted Nov 6, 2013, 1:58 AM EST
e.g. Date1 = '06/04/2012'
Date2 = '06/10/2012'
Hope it will help you.
Abhay ShankerRank #375 · 6.7K reputationPosted Nov 6, 2013, 2:28 AM EST
Try this..
Select * from Order where date between '1/1/2013' and '9/1/2013'
Note:-Date must be in proper format ('mm/dd/yyyy' or 'yyyy/mm/dd')