|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Displaying records in between 2 fields
I have 2 fields in my database. One is startDate one is endDate. I want to display records according the current date. So far I can select all records where the startDate is greater or equal to now by using
Code:
SELECT * FROM items WHERE itemDateStart >= now It seems the BETWEEN claus only accepts value, not fields. So basically I want to select * from items between itemDateStart and itemDateEnd Any help or advice? Thanks... |
|
#2
|
|||
|
|||
|
any 1? please
![]() |
|
#3
|
|||
|
|||
|
Is the start date and end date unique to each record?
If it isn;t then I would suggest normalising your database and store them at a higher level. What information is it relating to? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Displaying records in between 2 fields |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|