151k views
2 votes
Which of the following SQL statements would calculate the maximum bytes per millisecond, grouped by the album ID in the track table?

a. SELECT album_id, MAX(bytes/milliseconds) FROM track GROUP BY album_id;
b. SELECT album_id, SUM(bytes/milliseconds) FROM track GROUP BY album_id;
c. SELECT album_id, MIN(bytes/milliseconds) FROM track GROUP BY album_id;
d. SELECT album_id, MAX(milliseconds/bytes) FROM track GROUP BY album_id;

User Kraskevich
by
7.7k points

1 Answer

2 votes

Final answer:

a. SELECT album_id, MAX(bytes/milliseconds) FROM track GROUP BY album_id;'.

The correct SQL statement for calculating maximum bytes per millisecond by album ID is '

Step-by-step explanation:

The SQL statement that would calculate the maximum bytes per millisecond, grouped by the album ID in the track table, is a. SELECT album_id, MAX(bytes/milliseconds) FROM track GROUP BY album_id;.

This statement selects the maximum ratio of bytes to milliseconds for each album, providing a metric for the highest data rate per track within each album.

User Jedi Schmedi
by
8.4k points