We've noticed that you've been inactive for over 10 minute(s). We've stopped running the Shoutbox due to your inactivity. If you are back again, please click the I'm Back button below.
(12 June 2013 - 02:05 PM)Deal Punishments To What?
Replying to Help: SQL For Returning Data Between Dates
Topic Summary
Posted 02 February 2009 - 06:28 AM
SELECT birth FROM "tablename" WHERE birth BETWEEN '2005/02/01' AND '2005/03/15'
-reply by vrutika shah
Posted 29 May 2008 - 02:46 PM
sql queries for retriving dates between the given dates from the same table Help: SQL For Returning Data Between Dates
Sql queries for retriving dates between the given dates from the same table For example 05/13/2008 to 05/26/2008 I want to retrive the dates from a tables between those days...
SELECT birth FROM "tablename" WHERE birth BETWEEN 2005/02/01 AND 2005/03/15
You will notice that I have rearranged the dates because MySQL expects the dates to be entered YYYY-MM-DD and from the post it look like you had expressed it as Feburary the first 2005 and March the 15th 2005.
So since that is how MySql stores dates as shown above then that would be how you have to query it to get the response you would want.
Also I used "tablename" since I have no clue as to what table the field birth would be in, but you should know what to substitute for it.
I have a data base that possesss a field BIRTH. How I make a research that returns me all the aniversariantes in definitive period? example: 01/02/2005 - 15/03/2005.
Try this:
Select * from orders Where orderdate >='19970805' and orderdate < dateadd(dd,1,'19970805')
It would help if you at least showed us the database structure because fields are in tables and tables are in databases then you would know how to write a query to retrieve the table data (one particular field in this case) and after obtaining that data running a PHP script which would filter out the wanted or unwanted data here is and example of just a small table
As you can see above all in single quotes are fields within a table called authors so from the limited information you gave it would be almost impossible to help someone answer your question.
I'm not very good at SQL but I think I found what you want. I remember reading about this when I was curious on how SQL works and found the a short tutorial at W3Schools.
I have a data base that possesss a field BIRTH. How I make a research that returns me all the aniversariantes in definitive period? example: 01/02/2005 - 15/03/2005.