以下のような消費税率マスタテーブルがあるとします。 TAXRATE_TBL —————————————————————————————– TAXRATE STARTDATE ENDDATE (NUMBER) (DATE) (DATE) —————————————————————————————– 0.03 1989/04/01 1997/03/31 0.05 1997/04/01 2014/03/31 0.08 2014/04/01 2100/12/31 ※データベースはOracle ※STARTDATEとENDDATEには、時分秒は入れない 上記のテーブルから現在日付に沿ったTAXRATEを取得する場合に、以下のようなSQLを書きました。 【SQL例】 SELECT TA