I am trying to get the following table in Microsoft SQL Server. Basically what I am trying to do is to get, for each Sale ID, the sale date (date and time) and the next sale dat