Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
なぜSQLはAIぽく見えるのか/why does SQL look AI like
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
florets1
January 13, 2026
Programming
0
440
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
January 13, 2026
Tweet
Share
More Decks by florets1
See All by florets1
Tableauとggplot2の背景/Background_of_Tableau_and_ggplot2
florets1
0
50
Rで学ぶデータハンドリング入門/Introduction_to_Data_Handling_with_R
florets1
0
130
人工知能はクロスジョインでできている/AI_Is_Built_on_Cross_Joins
florets1
0
83
仮説の取扱説明書/User_Guide_to_a_Hypothesis
florets1
4
430
複式簿記から純資産を排除する/eliminate_net_assets_from_double-entry_bookkeeping
florets1
1
450
カイ二乗検定は何をやっているのか/What_Does_the_Chi-Square_Test_Do
florets1
7
2.5k
直積は便利/direct_product_is_useful
florets1
3
450
butterfly_effect/butterfly_effect_in-house
florets1
1
270
データハンドリング/data_handling
florets1
2
260
Other Decks in Programming
See All in Programming
Rust 製のコードエディタ “Zed” を使ってみた
nearme_tech
PRO
0
140
Amazon Bedrockを活用したRAGの品質管理パイプライン構築
tosuri13
4
240
0→1 フロントエンド開発 Tips🚀 #レバテックMeetup
bengo4com
0
540
今から始めるClaude Code超入門
448jp
7
8.4k
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
590
16年目のピクシブ百科事典を支える最新の技術基盤 / The Modern Tech Stack Powering Pixiv Encyclopedia in its 16th Year
ahuglajbclajep
5
990
【卒業研究】会話ログ分析によるユーザーごとの関心に応じた話題提案手法
momok47
0
190
AgentCoreとHuman in the Loop
har1101
5
220
SourceGeneratorのススメ
htkym
0
190
CSC307 Lecture 05
javiergs
PRO
0
490
CSC307 Lecture 03
javiergs
PRO
1
490
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
180
Featured
See All Featured
Odyssey Design
rkendrick25
PRO
1
490
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
3.9k
Amusing Abliteration
ianozsvald
0
96
Building an army of robots
kneath
306
46k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.4k
Accessibility Awareness
sabderemane
0
49
Game over? The fight for quality and originality in the time of robots
wayneb77
1
110
Measuring & Analyzing Core Web Vitals
bluesmoon
9
750
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.9k
The World Runs on Bad Software
bkeepers
PRO
72
12k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
89
Mobile First: as difficult as doing things right
swwweet
225
10k
Transcript
1 なぜSQLはAIぽく見えるのか 塩見登志和@コグラフ
2 配送計画をSQLで考える 倉庫から工場へ • 出荷の翌日に到着する • 倉庫が稼働している日に出荷 • 工場が稼働している日に到着
3 すべての可能性を列挙する CROSS JOIN すべての組み合わせ 倉庫×工場の関係をすべて作る 条件は「出荷日 < 到着日」
4 最適な出荷日を選ぶ 可能な出荷日の中で最大を選ぶ
5 面白いポイント:逆向きも解けている 「出荷 → 到着」を書いただけで 「到着 → 出荷」も計算できた。 結果から原因を計算
6 知的な振る舞い • 結果から原因を求める • 目的から手段を探す • 勝つためにはどのコマを動かすか
7 双方向に計算できるということ テーブル(関係)では AがわかればBがわかる BがわかればAがわかる 原因⇔結果 双方向に推論できる。 この双方向性がAIぽい。
8 まとめ:SQLのAIぽさ 双方向に計算できるというSQLの性質が 「考えているような」振る舞いを生む。