I have this query:
"UPDATE Bookings SET total=0 
FROM Bookings JOIN Vehicles on Bookings.CustomerID=Vehicles.CustomerID
WHERE hasWarranty='yes'";
Every time I run it, it says Syntax error near 'from' and I don't know why.
I basically want to check: does the vehicle associated with the booking have warranty - if it does, set total to 0. I want to update the value of one table if another value in another table equals x. 
 
     
     
    