c# - Check that a given date does not lie between two existing dates inside a datatable -
i have 1 table can store student leave start date , end date so:
studentid age startdate enddate 1 14 5/05/2013 7/05/2013 4 17 4/04/2012 8/10/2012
i need check see if new leave applied doesn't fall in range of leave arranged student. example, student id = 1, should not able apply leave starts on 6/05/2013.
i'm using c# , looking solution uses sql or linq.
normal sql select count(*) table studentid = 'parameterid' , startdate <= 'parameter_startdate' , enddate <='parameter_ensdate';
Comments
Post a Comment