- This is some kinds of sorting. If want to find out some portion of your information according to a order then follow the examples-SELECT name, cost FROM items WHERE cost>(250) ORDER BY cost DESCELECT name, cost FROM items WHERE cost>( SELECT cost, AVG(cost) FROM items ) ORDER BY cost DESC
Notice:
- For subqueries input the new query inside the bracket () as shown in the example above.
- Here the statement DESC is descending, it is used to make an order.
0 comments:
Post a Comment