150k views
2 votes
list all columns of the resource table with a rate between $10 and $15 including the end points 10 and 15. Sort the result by rate.

User Mark Fox
by
5.2k points

1 Answer

3 votes

Answer:

select * from resources

where rate between 10 and 15

order by rate (ASC|DESC)

Step-by-step explanation:

On Chegg + SQL textbook

(Here we are using * keyword to fetch all the records from resource table and between operator is used to fetch values between two vaues(values included).

Order By clause is used to sort the values and ASC is used with order by clause to sort in ascending order and DESC is used to sort in Descending Order.

By default if we do not specify anything then it will take ASC.

User Anders Arpi
by
5.5k points