How can we know the number of days between two given dates
using MySQL?

Answer Posted / shwetha

There is a operator {not} BETWEEN ,we can use this in where
clause to get in between dates.
ex:
select count(column name)
from table1
where dates BETWEEN '01-jul-04' and '01-jul-05';

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between now() and current_date()?

500


What is “i_am_a_dump” flag in mysql?

563


How do I change the max connections in mysql?

460


Is mysql good for big data?

498


How do I completely remove mysql from windows?

449






What are the types of queries?

489


What is the datatype of image?

506


What is a data directory?

513


How do I exit mysql?

502


How to return query output in html format?

527


How many columns is too many mysql?

473


How do I download mysql?

473


Restore database (or database table) from backup.

558


What is index length in mysql?

489


What is mysql command line?

502