select name from myschema.table1 where
COL1 = 'A'and
COL2= 'B' and
LEVEL = (select max(LEVEL) from myschema.table1 where USERTYPE='C')
をカラムの最大値を選択します。私は、そのユーザータイプのものに対してのみ照会する必要があります。
に参加し、これは非常に良い取り組んでいるが、私は、この内部でこれらのテーブルのオブジェクトを作成する次のクエリ select listmybill.tid from listmybill
inner join
Trainerdetails
on
listmybill.tid=Trainerdetails.tid
の参加 select l.tid from listmybill as l
内部結合を使用して2つのテーブルからいくつかのデータを照会しています。ここ は、私が唯一のそれぞれのuser_idからの最初の行をしたい、今すぐ test_db=> select api_booking.install_ts, api_user.id from api_booking inner join api_user on api_booking.user_id=api_user.id an