title: Checking SQL MAX() Function returning null
body: <p>My problem is if my table is empty or the column on which I am using max function does not have the value I have specified, then why is sqlDataReader.hasRows TRUE?</p>
  
  <p>It is giving a null record...how do I solve this problem??</p>
  
  <p>Thanks in advance.</p>