•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MS SQL section within the Web Development category of DaniWeb, a massive community of 423,562 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,631 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS SQL advertiser: Programming Forums
Views: 579 | Replies: 2
•
•
Join Date: Apr 2008
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
Hello
,
How can i filter something then turn it to filter again and one more time , like :
SELECT * FROM Tbl1 WHERE BLABLA1
From those results
WHERE BLABLA 2
And Finally , from all back results
WHERE BLABLA 3.
Real Example: Select all where : the year is between x and y, then the month is beetwen z and w, and finally, where the days is beetween v and t.
Dont Work:
Ps. Can't use the Beetween because it's a char field
OPS: IN MS ACCCESS, MOVE THE POST IF NECESSARY
Regards, many regards.
Core
,How can i filter something then turn it to filter again and one more time , like :
SELECT * FROM Tbl1 WHERE BLABLA1
From those results
WHERE BLABLA 2
And Finally , from all back results
WHERE BLABLA 3.
Real Example: Select all where : the year is between x and y, then the month is beetwen z and w, and finally, where the days is beetween v and t.
Dont Work:
sql Syntax (Toggle Plain Text)
SELECT * FROM TABLE WHERE (FORMAT(datainicio, "dd") >= '01' AND FORMAT(datainicio, "dd") <= '19') AND (FORMAT(datainicio, "mm") >= '01' AND FORMAT(datainicio, "mm") <= '04') AND (FORMAT(datainicio, "yyyy") >= '2005' AND FORMAT(datainicio, "yyyy") <= '2009') ORDER BY
Ps. Can't use the Beetween because it's a char field
OPS: IN MS ACCCESS, MOVE THE POST IF NECESSARY
Regards, many regards.Core
Last edited by peter_budo : May 3rd, 2008 at 6:06 pm. Reason: Keep It Organized - please use [code] tags
•
•
•
•
•
•
•
•
DaniWeb MS SQL Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Outlook 2003 junk mail filter problems. (Windows Software)
- Simple Banned Words Filter (PHP)
- ASP.NET and Mozilla - Issues! (ASP.NET)
- pop ups wont stop (Web Browsers)
- ie6 wont let me into certain sites.... (Web Browsers)
- Question for ASP.NET/Mozilla Users...or anyone... (ASP.NET)
Other Threads in the MS SQL Forum
- Previous Thread: Sub-Select
- Next Thread: Simple query



Threaded Mode