Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit aa77a28

Browse files
committed
Add a question
1 parent a10ca2a commit aa77a28

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

‎README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,3 +660,28 @@ VALUES ('John Doe', 35, true);
660660
---
661661

662662
**[⬆ Back to Top](#sql-coding-challenges-for-beginners)**
663+
664+
## Ordering
665+
666+
Your task is to sort the information in the table `companies` by the number of employees (high to low).
667+
668+
```
669+
companies
670+
---------
671+
id
672+
ceo
673+
motto
674+
employees
675+
```
676+
677+
<details><summary>Solution</summary>
678+
679+
```sql
680+
SELECT * FROM companies ORDER BY employees DESC;
681+
```
682+
683+
</details>
684+
685+
---
686+
687+
**[⬆ Back to Top](#sql-coding-challenges-for-beginners)**

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /