テーブル「tblTrasaction」があります。次のコードを使用して最大日付を取得しました。
select Max(t.TranDate) from tblTrasaction
次に、最大日付値を使用して最大トランザクション ID を取得したいので、次のコードを使用しました。
select Max(t.TranDate) from tblTrasaction t
inner join
(
select Max(t.TranID) from tblTrasaction t
) temp On temp.TranID =t.TranID
しかし、結果を取得できませんでした。どうすれば修正できますか? ありがとう