Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

わかりみSQL:タイポ報告 #10

Open
shiroemons opened this issue Jan 12, 2022 · 0 comments
Open

わかりみSQL:タイポ報告 #10

shiroemons opened this issue Jan 12, 2022 · 0 comments

Comments

@shiroemons
Copy link

shiroemons commented Jan 12, 2022

sos_brigade の Insertしたmemoの内容が変わっています。

  • p.351

    insert into sos_brigade(id, name, memo, boss_id)
    values (101, 'ハルヒ', '団長'    , null)
        , (102, '古泉'  , '超能力者', 101)
        , (103, 'みくる', '未来人'  , 101)
        , (104, 'キョン', '一般人'  , 102)
        , (105, '有希'  , '宇宙人'  , 101)
    ;
  • p.352

    • 団員の一覧の実行結果
      id | name | memo | boss_id
      -----+--------+------------+---------
      101 | ハルヒ| 団長|
      102 | 古泉| 副団長| 101
      103 | みくる| マスコット| 101
      104 | キョン| 雑用係| 102
      105 | 有希| 無口キャラ| 101
      (5 rows)
  • p.353

    • 団員の一覧(上司つき、上司がいなくても表示)の実行結果(団長には上司がいない)
      id | name | memo | boss_id | boss
      -----+--------+------------+---------+--------
      101 | ハルヒ| 団長| |
      102 | 古泉| 副団長| 101 | ハルヒ
      103 | みくる| マスコット| 101 | ハルヒ
      104 | キョン| 雑用係| 102 | 古泉
      105 | 有希| 無口キャラ| 101 | ハルヒ
      (5 rows)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant