update single_seats set y=y-1 where x > 17 and seat_id=15;
update single_seats set y=y+1 where x > 17 and seat_id=14;
update single_seats set y=y-1 where x > 17 and seat_id=9;
insert into single_seats (x,y,booked,seat_id,category) VALUES (1,13,1,7,'a');
insert into single_seats (x,y,booked,seat_id,category) VALUES (1,12,1,7,'a');
insert into single_seats (x,y,booked,seat_id,category) VALUES (1,15,1,7,'a');
insert into single_seats (x,y,booked,seat_id,category) VALUES (1,16,1,7,'a');
insert into single_seats (x,y,booked,seat_id,category) VALUES (1,17,1,7,'a');
insert into single_seats (x,y,booked,seat_id,category) VALUES (2,15,1,7,'a');
insert into single_seats (x,y,booked,seat_id,category) VALUES (2,16,1,7,'a');
update single_seats set y=y+1 where x > 17 and seat_id=12;
update single_seats set y=13 where seat_id=12 and x=10;
update single_seats set y=y+1 where x > 17 and seat_id=6;
UPDATE `bm`.`single_seats` SET `y`='10' WHERE `id`='1898';
insert into single_seats (x,y,booked,seat_id,category) VALUES (2,23,1,3,'a');
insert into single_seats (x,y,booked,seat_id,category) VALUES (2,24,1,3,'a');
UPDATE `bm`.`single_seats` SET `y`='13' WHERE `id`='1859';
UPDATE `bm`.`single_seats` SET `y`='12' WHERE `id`='1973';
UPDATE bm.events as tmp1  SET room = (SELECT room FROM textbm.events WHERE id = tmp1.id)  WHERE (SELECT count(*) FROM textbm.events WHERE id = tmp1.id)  > 0;
UPDATE bm.events as tmp1  SET starttime = (SELECT starttime FROM textbm.events WHERE id = tmp1.id)  WHERE (SELECT count(*) FROM textbm.events WHERE id = tmp1.id)  > 0;

SET @myId = "1243";
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,6);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,7);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,8);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,9);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,10);

SET @myId = "1244";
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,6);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,7);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,8);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,9);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,10);

SET @myId = "1241";
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,6);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,7);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,8);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,9);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,10);

SET @myId = "1240";
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,6);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,7);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,8);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,9);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,10);

SET @myId = "1239";
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,6);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,7);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,8);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,9);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,10);

SET @myId = "1237";
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,6);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,7);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,8);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,9);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,10);

SET @myId = "1236";
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,6);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,7);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,8);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,9);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,10);

SET @myId = "1235";
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,6);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,7);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,8);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,9);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,10);

SET @myId = "1234";
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,6);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,7);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,8);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,9);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,10);

SET @myId = "1225";
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,6);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,7);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,8);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,9);
INSERT INTO event_concessions(event_id, concession_id) VALUES(@myId,10);


