create table books
(bno varchar2(10),
bname varchar2(20),
author varchar2(10),
price  number(4,2),
quantity number(6));

解决方案 »

  1.   

    select bname,author from books
             where max(price);
      

  2.   

    SELECT MAX(price),bname,author from books GROUP BY bname,author
      

  3.   


    select bname,author from books
    where price=(select max(price) from books);select first_value(bname)over(order by price desc),frist_value(author)over(order by price desc)
    from books;
      

  4.   

    select bname,author from 
      (select * 
       from books
       order by price desc
      )where rownum<=1;