Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 362 Bytes

Easy-SQL-Ordering.md

File metadata and controls

16 lines (11 loc) · 362 Bytes

Your task is to sort the information in the provided table 'companies' by number of employees (high to low). Returned table should be in the same format as provided:

companies table schema

  • id
  • ceo
  • motto
  • employees

Solution should use pure SQL. Ruby is only used in test cases.

/*  SQL  */

SELECT * FROM companies ORDER BY employees DESC