Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
HQL を使用して対応する必要がある次の SQL クエリがあります。
A は著者、B は本 - 著者は多くの本を持っています
SQL:
order by a.bookNbr desc, nvl(b.auth_name, b.last_name || ' ' || b.first_name))
上記のSQLをHQLに変換するための助けをいただければ幸いです。
試しましたか
order by a.bookNbr desc, coalesce(b.auth_name, b.last_name + " " + b.first_name))