'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
case when table1.invoiceDate <= table2.dueDate Then 'Delivered' else when table1.invoiceDate >= table2.dueDate Then 'Late Delivery' else when table2.dueDate <= CONVERT(VARCHAR,GETDATE(),110) Then 'on due' End
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)