最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

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

database leetcode2041 Accepted Candidates From the Interviews

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

題目描述

Table: Candidates


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

| Column Name ?| Type ? ? |

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

| candidate_id | int ? ? ?|

| name ? ? ? ? | varchar ?|

| years_of_exp | int ? ? ?|

| interview_id | int ? ? ?|

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

candidate_id is the primary key column for this table.

Each row of this table indicates the name of a candidate, their number of years of experience, and their interview ID.

Table: Rounds


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

| Column Name ?| Type |

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

| interview_id | int ?|

| round_id ? ? | int ?|

| score ? ? ? ?| int ?|

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

(interview_id, round_id) is the primary key column for this table.

Each row of this table indicates the score of one round of an interview.

Write an SQL query to report the IDs of the candidates who have at least two years of experience and the sum of the score of their interview rounds is strictly greater than 16.


Return the result table in any order.


The query result format is in the following example.


?


Example 1:


Input:

Candidates table:

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

| candidate_id | name ? ?| years_of_exp | interview_id |

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

| 11 ? ? ? ? ? | Atticus | 1 ? ? ? ? ? ?| 101 ? ? ? ? ?|

| 9 ? ? ? ? ? ?| Ruben ? | 6 ? ? ? ? ? ?| 104 ? ? ? ? ?|

| 6 ? ? ? ? ? ?| Aliza ? | 10 ? ? ? ? ? | 109 ? ? ? ? ?|

| 8 ? ? ? ? ? ?| Alfredo | 0 ? ? ? ? ? ?| 107 ? ? ? ? ?|

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

Rounds table:

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

| interview_id | round_id | score |

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

| 109 ? ? ? ? ?| 3 ? ? ? ?| 4 ? ? |

| 101 ? ? ? ? ?| 2 ? ? ? ?| 8 ? ? |

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

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

| 104 ? ? ? ? ?| 3 ? ? ? ?| 6 ? ? |

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

| 104 ? ? ? ? ?| 4 ? ? ? ?| 7 ? ? |

| 104 ? ? ? ? ?| 1 ? ? ? ?| 2 ? ? |

| 109 ? ? ? ? ?| 2 ? ? ? ?| 1 ? ? |

| 104 ? ? ? ? ?| 2 ? ? ? ?| 7 ? ? |

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

| 101 ? ? ? ? ?| 1 ? ? ? ?| 8 ? ? |

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

Output:

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

| candidate_id |

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

| 9 ? ? ? ? ? ?|

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




database leetcode2041 Accepted Candidates From the Interviews的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國家法律
江安县| 合川市| 石柱| 嘉义市| 万荣县| 门头沟区| 嘉荫县| 永定县| 禹州市| 岳阳县| 西林县| 巴彦淖尔市| 洛扎县| 修文县| 台山市| 绥棱县| 桐庐县| 黑河市| 霍林郭勒市| 德清县| 原阳县| 漳州市| 阿巴嘎旗| 伊宁县| 平果县| 竹北市| 子洲县| 襄城县| 大姚县| 泰宁县| 南涧| 千阳县| 化州市| 沙坪坝区| 宁远县| 新晃| 万盛区| 赤水市| 北辰区| 施秉县| 光泽县|