mysql - Compared two tables with no keys - Stack Overflow
Answer :
SELECT MAX(tour_count.tours) FROM ( SELECT ( SELECT COUNT(*) AS num FROM COUNTRIES c WHERE c.MIN_SIZE <= a.FAMILY_SIZE ) AS tours FROM FAMILIES a ) AS tour_count
mysql - Compared two tables with no keys - Stack Overflow
Answer :
SELECT MAX(tour_count.tours) FROM ( SELECT ( SELECT COUNT(*) AS num FROM COUNTRIES c WHERE c.MIN_SIZE <= a.FAMILY_SIZE ) AS tours FROM FAMILIES a ) AS tour_count
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Srinivasan RamamoorthiPosted Oct 23, 2021, 9:30 AM
Neetesh JainPosted Oct 23, 2021, 4:59 AM
Neetesh JainPosted Oct 23, 2021, 4:56 AM
SELECT MAX(tour_count.tours) FROM ( SELECT ( SELECT COUNT(*) AS num FROM COUNTRIES c WHERE c.MIN_SIZE <= a.FAMILY_SIZE ) AS tours FROM FAMILIES a ) AS tour_count