'check nvoice date and due date IF table1.invoiceDate <= table2.dueDate then 'delivered' end if if table1.invoiceDate >= table2.dueDate then 'Late Delivery' end if IF table2.dueDate <= CONVERT(VARCHAR,GETDATE(),110) then 'on due' end if
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)