I have a statement that I want to UPDATE a row's ColumnA if ColumnB meets the LIKE query and ColumnC is the most recent date.
My ColumnC is a DateTime column and at the moment the statement ignores the request for most recent DateTime and updates all records with ColumnB.
Here it is
"UPDATE table1 SET ColumnA= '" + data +
"' WHERE ColumnB LIKE '" + variable +
"' AND MAX(ColumnC);"; 
 
     
    