Answer to Question #284065 in Databases | SQL | Oracle | MS Access for Lovely

Question #284065

5. For all the videos, represent the number of views in multiples of thousands.


For example, if the number of views of a video is 17,200, it is represented as 17.2 in the output.


Note:


• Sort the output in the descending order of no_of_views_in_thousands, and then in the alphabetical order of name


Expected Output Format


video_id


name


no_of_views_in_thousands


1
Expert's answer
2022-01-02T02:20:47-0500

The required query with the expected result:

SELECT * FROM mydb.channel_traffic where no_of_views>4000 ORDER BY no_of_views,name desc;




Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS