How to display the entire column in a group by

I have two tables teamand bobotteam, and then I tried this query:

SELECT team.id , bobotteam.teamfight/MAX(bobotteam.teamfight)
    FROM team
    INNER JOIN bobotteam on team.id = bobotteam.id

Why is the data showing only 1 data, although I have two data in the table bobotteam. IMAGE

Query Table imageBobotteam Table image

+4
source share
1 answer

Please try the following:

SELECT team.id , bobotteam.teamfight/(select MAX(bobotteam.teamfight) from bobotteam)
FROM team
INNER JOIN bobotteam on team.id = bobotteam.id
+4
source

Source: https://habr.com/ru/post/1693016/


All Articles