If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Records in specified Date range

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-18-09, 07:17
amitd amitd is offline
Registered User
 
Join Date: Aug 2009
Posts: 1
Records in specified Date range

HI All,

Since I'm novice in sql-query's, plz help me for the below example....

I want to display ALL the records having starting time from now()
and
the records where the end date is specified and which is yet to come
is also included in the result
while
the records where the end date is specified and which is passed over
is excluded.

suppose for example dbase table contains below records

date enddate
18 aug 15 aug
10 aug 30 aug
1 aug 0000-00-00(default if user didnt specified end date)

Here for output on 18 aug, this is to be displayed,
10 aug 30 aug
1 aug 0000-00-00

plz help me with the Query for this result....
Thanks...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On