Hi
Below is Behcode table in database
date
|
reserved
|
Behcode
|
id
|
NULL
|
NO
|
1000
|
1
|
Null
|
NO
|
1001
|
2
|
2013-4-5
|
yes
|
1002
|
3
|
2013-5-8
|
yes
|
1003
|
4
|
Null
|
NO
|
1004
|
5
|
Null
|
NO
|
1005
|
6
|
I have button in Information.aspx page
that when I click on this button it bind datalist from Information table
I want in datalist show data from above table that Reserved column is=NO that are before last DATE entered
i.e
here should show data with id =1,2 these id Reserved column's is NO and are before id=4 that date column date is=2013-5-8 it shouldn't show id=5,6 becuse these are after 2013-5-8
in SP what should I write...
Best Regards
NEDA