select
device_id,
gpa,
age
from
user_profile
order by
gpa asc,
age asc;
从名为user_profile的表中选择device_id(设备 ID)、gpa(平均绩点)和age(年龄)这三列的数据。
然后,按照gpa列的值升序排列,如果gpa值相同,则再按照age列的值升序排列。

select
device_id,
gpa,
age
from
user_profile
order by
gpa asc,
age asc;
从名为user_profile的表中选择device_id(设备 ID)、gpa(平均绩点)和age(年龄)这三列的数据。
然后,按照gpa列的值升序排列,如果gpa值相同,则再按照age列的值升序排列。