Hi @Joey ,
Welcome to the microsoft TSQL Q&A forum!
As Erland said, we need you to provide the tables and test data involved in the problem, as well as the output you expect.
My simple guess:
SELECT VIN,DATEDIFF(mi,[Trip start date/time],[Trip End date/time]) diff
FROM Trips
If you have any question, please feel free to let me know.
Regards
Echo
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.