I have problem with this code the error is incorrect syntax near ,., this the code please help.
String sql = @"select
            C_Date,
            L_UID,
            min(C_Time) as [login],
            max(C_Time) as [logout]
   from
            tEnter
   where
            L_UID = "+txtEmpName+"
       and
            C_Date between '" + dtfrom + "' and '" + dtto + "'
   group by
            C_Date,
            L_UID";
 
     
    