Hi All,
I have a job coming up which involves me creating a vacancy system for our website.
I (think) I'll only need one table:
ID (PK)
JobTitle
JobLocation
Salary
Hours
JobDescription
ValidFrom (Date/Time)
ValidTo (Date/Time)
I'll display this data using a C#.Net repeater but I was wondering how I can automatically strip the page of the jobs that have gone past their expiry date? Is is straightforward to achieve?
Thanks in advance,
Brett
Add a where condition to your select statement to bring only the valid Jobs e.g.:
select * from Jobs where getDate() < ValidTo
Hope this was helpful
Eyad Salamin
|||Thanks Eyad,
I didn't think it would be that simple!
Brett
No comments:
Post a Comment