I'm having two tables named as
1.)Primary_Table
2.)Secondary_Table
as shown below:-
Primary_Table Secondary_Table
Sl_no Sub_id Destination Sub_id Price
1 1000 New York 1000 1987
1 1001 Tokyo 1001 5679
1 1002 London 1002 7875
2 1003 Mumbai 1003 6789
2 1004 Sydney 1004 7489
2 1005 Munich 1005 6746
Here I'm trying to write a SQL/MYSQL query to find the maximum and minimum price with respect to the Sl_no, which is in primary table.