次のタグが付いている話題の回答:

2
Accepted

特定の行でjoinするSQLクエリの書き方について

joinするtable_A をevent_codeで連結したいのですが、table_Bのevent_timeより過去日での最新日付を持ったevent_codeでjoinさせたいです。 View on DB Fiddle CREATE TABLE table_A (event_code VARCHAR(10), reg_time DATETIME, ...
metropolis's user avatar
  • 5,740

Only top scored, non community-wiki answers of a minimum length are eligible