Looking for code in SQL SERVER 2012 to find out Next occurrence of 'WEDNESDAY' for all ORDERDATEs from ORDERS Table. I came up with the following, but it just gives the Orderdate + 7 days. Kindly help me on this.
SELECT DATEADD(DD,7, CONVERT(Datetime, OrderDate, 101))
FROM Orders