![]() |
| |||||||
| Register | Resources | FAQ/Rules | Members List | Search | Today's Posts | Mark Forums Read | |
| MySQL Forum dedicated to the world's most popular open source database engine. |
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| TechSpott Newbie Join Date: Feb 2010
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
![]() | Hi, I have a table consisting five columns Card No, Sdate, Edate, ATime, Etime Now i want to get three columns info CardNo, Sdate, Edate from table. But i am facing problem when i get input from user to get their required info. For example user want to exact CRad name & his info from a specific Sdate to Edate. Any effort will be appreciated . |
| | |
| | #2 (permalink) | |
| Junior Member Join Date: Feb 2010
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
![]() | Quote:
SELECT CardNo, SDate, EDate FROM table WHERE SDate > INPUT_DATE AND EDate < INPUT_DATE Alternately better method is.. SELECT CardNo, SDate, EDate FROM table WHERE INPUT_DATE BETWEEN SDate AND EDate | |
| | |
![]() |
| Bookmarks |
| Tags |
| data, fetching, table |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |