|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
Select data between two date... not that simple!
Hello all
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 thanks! tom |
|
#2
|
||||
|
||||
|
Not exactly sure what you're asking for, but here are some tutorials that might help you:
http://www.databasejournal.com/feat...cle.php/2191631 http://www.databasejournal.com/feat...cle.php/2197931 http://www.databasejournal.com/feat...cle.php/2209321 http://www.databasejournal.com/feat...cle.php/2216011 //NoXcuz
__________________
UN*X is sexy! who | grep -i blonde | date; cd ~; unzip; touch; strip; finger; mount; gasp; yes; uptime; umount; sleep |
|
#3
|
|||
|
|||
|
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 any clearer? tom |
|
#4
|
||||
|
||||
|
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 rudy http://r937.com/ |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
||||
|
||||
|
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"? |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > Select data between two date... not that simple! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|