LoginSignup
0
0

More than 3 years have passed since last update.

SQL腕試し問題を解いてみた 締め切り日が近いイベントの一覧

Last updated at Posted at 2019-09-28

出題問題

https://qiita.com/jnchito/items/29e22cc5a73da29f65a3

SQL腕試し問題が出ていたので、解いてみました。

僕の解答例

こんな感じで作ってみました。
https://github.com/kyotom/SQL/blob/master/gistfile4.sql

ポイント

   --従業員毎の最新の開始日を出力する(ウィンドウ関数)
        , MAX(start_date) over (PARTITION BY employee_id) AS employee_latest_date
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0