I have two tables:
table_1: id, name (DEFAULT 'JACK')
table_2: id, city
I link them with "id" and insert some data into them like:
INSERT INTO table_1 VALUES(1, DEFAULT);
INSERT INTO table_1 VALUES(2, DEFAULT);
INSERT INTO table_1 VALUES(3, DEFAULT);
INSERT INTO table_1 VALUES(4, DEFAULT);
INSERT INTO table_2 VALUES(1, 'Paris');
INSERT INTO table_2 VALUES(2, 'Paris');
INSERT INTO table_2 VALUES(3, 'Paris');
INSERT INTO table_2 VALUES(4, 'Berlin');
I added 3 JACK into Paris above, I need to traverse it somehow to get the city that has the most JACK name in it. How can I do it?