insert into customers values    (3, "Julie Smith", "25 Oak Street", "Airport West"),   (4, "Alan Wong", "1/47 Haines Avenue", "Box Hill"),    (5, "Michelle Arthur", "357 North Road", "Yarraville"); 
 
insert into orders VALUES
( null,3,69.98,'2007-04-02'),
( null,1,49.99,'2007-04-15'),
( null,2,74.98,'2007-04-19'),
( null,3,24.99,'2007-05-01');
insert into books VALUES
('0-672-31697-8','michael morgan','java 2 for professional developers',34.99),
('0-672-31745-1','thomas down','installing debian gnu/linux',24.99),
('0-672-31509-2','pruitt et al.','teach yourself gimp in 24 hours',24.99),
('0-672-31769-9','thomas schenk','caldera openlinux system administration unleashed',49.99);INSERT into order_items values
(1,'0-672-31697-8',2),
(2,'0-672-31769-9',1),
(3,'0-672-31769-9',1),
(3,'0-672-31509-2',1),
(4,'0-672-31745-1',3);select customerid, avg(amount)
from orders
group by customerid;
group by 这样写有什么用?  这样写是什么意思?请指点。。还有就是
select customerid, avg(amount)
from orders
group by customerid
having avg(amount) > 50;
结果
customerid   avg(amount)
        2               74.98003
为什么只显示 74。98003,而没有显示 ,69.98??? 这个数应该也是大于50的呀