Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Recordset select by date

Participant ,
Oct 01, 2010 Oct 01, 2010

I am trying to get a recordset to select all the dates in a list from a certain year (2010 or 2011). I think I am close but I can't quite get it to work. Can anyone pointout where I am going wrong?

"SELECT FROM dates WHERE coursecode LIKE 'MQA03' AND start_date <'2010-12-25' ORDER BY start_date";

Cheers

Dave

TOPICS
Server side applications
383
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Oct 01, 2010 Oct 01, 2010

If I get your question right, you need something like this:

SELECT * FROM dates WHERE coursecode LIKE 'MQA03' AND start_date BETWEEN '2010-12-25' AND '2011-12-25'

Translate
Explorer ,
Oct 01, 2010 Oct 01, 2010
LATEST

If I get your question right, you need something like this:

SELECT * FROM dates WHERE coursecode LIKE 'MQA03' AND start_date BETWEEN '2010-12-25' AND '2011-12-25'

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines