I am working on a SQL query to pull the minimum begin and maximum end date for recurring classes. The way the database is set up, If the classes are not continuing they have an end date, if the classes are continuing then the end date is null. The field is Data Type datetime.
If the end date is null that is essentially the date I want because it is the maximum end date but I cannot seem to work out how to get that to work? I get whatever the last actual date in that field is and cannot get the query to return either null or better yet a default date that I set.
Thanks in advance