clear markdown compare help best fiddles feedback dbanow.uk a leap of faith?
clear markdown donate comments/suggestions/bugs a leap of faith? bible365 diddy dollings
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0. 1926574 fiddles created (21835 in the last week).

declare @Trips table( Id int , Client_Id int , Driver_Id int , City_Id int , Status varchar(50) , Request_at varchar(50) ) declare @Users table( Users_Id int , Banned varchar(50) , Role varchar(50) ) insert into @Trips values ('1', '1', '10', '1', 'completed', '2013-10-01') ,('2', '2', '11', '1', 'cancelled_by_driver', '2013-10-01') ,('3', '3', '12', '6', 'completed', '2013-10-01') ,('4', '4', '13', '6', 'cancelled_by_client', '2013-10-01') ,('5', '1', '10', '1', 'completed', '2013-10-02') ,('6', '2', '11', '6', 'completed', '2013-10-02') ,('7', '3', '12', '6', 'completed', '2013-10-02') ,('8', '2', '12', '12', 'completed', '2013-10-03') ,('9', '3', '10', '12', 'completed', '2013-10-03') ,('10', '4', '13', '12', 'cancelled_by_driver', '2013-10-03') insert into @Users values ('1', 'No', 'client') ,('2', 'Yes', 'client') ,('3', 'No', 'client') ,('4', 'No', 'client') ,('10', 'No', 'driver') ,('11', 'No', 'driver') ,('12', 'No', 'driver') ,('13', 'No', 'driver');
18 rows affected
 hidden batch(es)