五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

database_leetcode 2159 Order Two Columns Independently

2022-02-16 20:20 作者:您是打尖兒還是住店呢  | 我要投稿


Table: Data

+-------------+------+

| Column Name | Type |

+-------------+------+

| first_col ? | int ?|

| second_col ?| int ?|

+-------------+------+


There is no primary key for this table and it may contain duplicates.

?

Write an SQL query to independently:

order first_col in ascending order.

order second_col in descending order.

The query result format is in the following example.

?

Example 1:

Input:

Data table:

+-----------+------------+

| first_col | second_col |

+-----------+------------+

| 4 ? ? ? ? | 2 ? ? ? ? ?|

| 2 ? ? ? ? | 3 ? ? ? ? ?|

| 3 ? ? ? ? | 1 ? ? ? ? ?|

| 1 ? ? ? ? | 4 ? ? ? ? ?|

+-----------+------------+

Output:

+-----------+------------+

| first_col | second_col |

+-----------+------------+

| 1 ? ? ? ? | 4 ? ? ? ? ?|

| 2 ? ? ? ? | 3 ? ? ? ? ?|

| 3 ? ? ? ? | 2 ? ? ? ? ?|

| 4 ? ? ? ? | 1 ? ? ? ? ?|

+-----------+------------+

*/


Create table Data (first_col int, second_col int)

Truncate table Data

insert into Data (first_col, second_col) values ('4', '2')

insert into Data (first_col, second_col) values ('2', '3')

insert into Data (first_col, second_col) values ('3', '1')

insert into Data (first_col, second_col) values ('1', '4')

;

/* Write your T-SQL query statement below */


database_leetcode 2159 Order Two Columns Independently的評論 (共 條)

分享到微博請遵守國家法律
靖宇县| 左权县| 青浦区| 江达县| 论坛| 莎车县| 出国| 平利县| 白水县| 波密县| 炉霍县| 泌阳县| 金昌市| 永川市| 普定县| 政和县| 凤山县| 南平市| 封丘县| 承德市| 会泽县| 河南省| 张家口市| 新邵县| 舟山市| 南开区| 黔江区| 博湖县| 连城县| 陈巴尔虎旗| 罗江县| 镇赉县| 南雄市| 达尔| 龙口市| 临海市| 桐乡市| 岢岚县| 新郑市| 新津县| 台南县|