Bus number without duplicates in SQL

Question:

Write a query to display bus_no without duplicates from schedule table and display by bus_no in descending order.

Quiz for Exam - Bus number without duplicates

Code:

Main.sql

select distinct bus_no from schedule order by bus_no desc;

Recommended:

Leave a Comment

Your email address will not be published. Required fields are marked *