+ 2

In SQL ,How do I retrieve name FROM track and ORDER BY bit rate (bit/s) then name . columns : name, bytes and milliseconds

30th Dec 2016, 9:12 AM
Udo Ortmann
Udo Ortmann - avatar
8 odpowiedzi
+ 12
the name of tracks where the bit rate are greater than 300 kilobits per second is: select name from track where name = name and (bytes *8*1000)/(milliseconds *1000) > 300 order by name asc;
28th Mar 2018, 3:19 PM
Hans Larry Mba Bekale
Hans Larry Mba Bekale - avatar
+ 1
select name from track order by ( ([bytes]*8) / ([milliseconds]*1000) ) * 125, name Explanation : (1) calculate bit rate ie. (bits/seconds) = bytes*8 / milliseconds*1000 (2) To counter external multipliers that we added in bit rate equation, multiply step 1 equation with (1000/8) ie. 125. (3) So, bit rate in bit/s will be ( ([bytes]*8) / ([milliseconds]*1000) ) * 125. (4) Use this formula with Order By Clause.
30th Dec 2016, 9:28 AM
Kunjan
Kunjan - avatar
+ 1
Hi there thanks it was accepted. my appreciations to you🐸
30th Dec 2016, 9:56 AM
Udo Ortmann
Udo Ortmann - avatar
+ 1
Get the name of the tracks where the bit rate is greater than 300 kilobits per second (Kb/s). How to do it? previous answer didn't helped me :( select name from track where ((bytes*8000)/(milliseconds*1000))>300
5th Dec 2017, 8:22 AM
яўген развянкоў
яўген развянкоў - avatar
+ 1
Thanks sololearn I will Like your cources
7th Mar 2018, 9:48 AM
AMANUEL MOGES
AMANUEL MOGES - avatar
0
Get the name of the tracks where the bit rate is greater than 300 kilobits per second (Kb/s). How to do it? previous answer didn't helped me :(
12th Apr 2017, 6:35 PM
Дмитрий Кравченко
Дмитрий Кравченко - avatar
0
you need to multiply by 8 and divided milliseconds by 1000 then divide the whole thing by 1000
30th Jan 2018, 9:34 PM
Brian Null
Brian Null - avatar
0
Select name, bytes*8 / milliseconds*1000 from track
7th Mar 2018, 9:49 AM
AMANUEL MOGES
AMANUEL MOGES - avatar