Question : Pulling Max Date But Keeping Null Value if a Record Has one

I have a table I am grouping by LEAD# and then pulling the max date from the CloseDT field for each group.  I am now having to deal with null fields in the CloseDT field.  What I need is if there is a null value in the CloseDT field for any of the records in the group then the MAX DT field needs to be null.  I am also pulling the minimum date for the OpenDT column, but there are no nulls there so you can ignore that part of the code below.

This is the code I've got so far -

SELECT tbl06SYSP.Lead, Min(tbl06SYSP.OPEN_DT) AS MinOfOPEN_DT, Max(tbl06SYSP.CLOSE_DT) AS MaxOfCLOSE_DT
FROM tbl06SYSP
GROUP BY tbl06SYSP.Lead;


Answer : Pulling Max Date But Keeping Null Value if a Record Has one

I have in use, currently covering 1500' (line-of-site): Netgear 14dBi Directional Antenna (ANT24D18) on both ends, with a 25' cable from the bridge on one end and a 50' cable on the other.  I used two Asus WL-500gP V2  modded with DD-wrt.

Took a few days to prep the routers and about 4 hours to install everything else.


Random Solutions  
 
programming4us programming4us