|
-
Dec 25th, 2008, 03:13 PM
#1
Thread Starter
New Member
Help! join with dates
After a lot of searching and trying I put my question here:
I have 2 tables (data1108 & data1208)
both tables have the same fields: date(text), amount(number) and type(number)
Now I want to have all records with the following criteria:
Date must be between date1 and date2, amount must be 5 and type must be 3.
The SQL for 1 table looks like this:
"SELECT * FROM data1108 WHERE amount = 5 AND type = 3 AND CLng(cdate(date)) BETWEEN CLng(CDate(date1)) AND CLng(CDate(date2))"
This works nice but now I want this from the 2 tables...which I can not figure out.
Help would be highly appreciated!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|