November 26th, 2003, 06:27 AM
Select data between two date... not that simple!
I have the need to retreave data from a database
with the params of a date field being between two times.
these times are as such:
between end_date where task = 14
and end_date where task = 30
does this question make sence, can you help me
November 26th, 2003, 06:37 AM
UN*X is sexy!
who | grep -i blonde | date; cd ~; unzip; touch; strip; finger; mount; gasp; yes; uptime; umount; sleep
November 26th, 2003, 06:49 AM
i have two tables
project -> task
the project.date in the project table is the one i need to run the query on
i need to show all records where the project.date is between
dateA and dateB
dateA = project.date where task.id =14
dateB = project.date where task.id =30
November 26th, 2003, 06:59 AM
if the relationship between project and task is one-to-many, where each project can have multiple tasks but each task belongs to only one project, then the project.date for task 14 will be the same as the project.date for task 30
so something is weird with your question
please explain more
November 26th, 2003, 07:03 AM
at the moment i have to produce a list of records that are related to task 14
and a seperate qry showing a list of records that are related to task 30
these records have different dates for each record
i need to produce a list of data that a different date field appers within these two dates
November 26th, 2003, 08:04 AM
please show the DDL (data definition language) for your tables, i.e. the CREATE TABLE statements, indicating which fields are related
what do you mean by "a list of records related to task 14"?