We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
UPDATE IC SET IC.InvoiceSiteID = (CASE WHEN IC.SiteID IN(SELECT InvoiceToSite FROM QuoteInvoicing WHERE QuoteID = IC.QuoteID) THEN InvoiceToSite ELSE MIN(InvoiceToSite) FROM QuoteInvoicing WHERE QuoteID = IC.QuoteID AND InvoiceToSite <> IC.SiteID END) FROM #InvoiceConsolidation IC INNER JOIN QuoteInvoicing IQ ON IC.QuoteID = IQ.QuoteID
Add your voice to the tech community where 5M+ people just like you are talking about what matters.