cheer up I have 2 tables - Orders , Customers in Orders have columns RequiredDate, ShippedDate in Customers ContactName column
I need to know the names of those whose orders were sent after RequiredDate , during 1997. What did I get: Select distinct contactname,orderdate from customers left join orders on year(orderdate) = 1997 how to find out whose were sent after RequiredDate ?
will it be right after .... on year(ordardate) = "1997" add where requireddate < shippeddate ?
if so, how to additionally output the total number of orders shipped at the wrong time for each customer