Select TC.Vehtype from tblCusotmer TC inner join tblVehicle TV on TC.Custid =TV.Custid where TV.Vehentrytime='your datetime parameter'
SELECT C.vehicletype FROM tblCusotmer C INNER JOIN tblVehicle V ON C.Custid =V.Custid WHERE V.Vehentrytim='Your Selected datetime';
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)