通过浏览窗口,显示tushu.dbf表中的所有信息 select * from tushu 显示tushu.dbf中的【书名】和【单价】信息 select 书名,单价 from tushu 显示tushu.dbf中的【辽海出版社】出版的所有图书的【书名】和【单价】 select 书名,单价 from tushu where 版别="辽海出版社" 显示tushu.dbf中【计算机】类的图书信息 select * from tushu where 类别="计算机" 显示tushu.dbf中【计算机】类的图书的【书名】、【单价】、【版别】 select 书名,单价,版别 from tushu where 类别="计算机" 统计tushu.dbf中不同【类别】的图书的【总册数】 select 类别,sum(总册数) from tushu group by 类别 统计tushu.dbf中不同【类别】的图书的【总册数】,按总册数降序排列显示 select 类别,sum(总册数) from tushu group by 类别 order by 2 desc 显示tushu.dbf中,【2011-3-25】至【2011-3-28】期间(共四天),所有图书信息 select * from tushu where ttod(sj) between {^2011-3-25} and {^2011-3-28} 统计tushu.dbf中,【2011-3-25】至【2011-3-28】期间(共四天),所有图书的【每册书】的平均单价。 select avg(dj) from tushu where ttod(sj) between {^2011-3-25} and {^2011-3-28} select avg(单价/单套册数) from tushu where ttod(sj) between {^2011-3-25} and {^2011-3-28} 扩展: 找出tushu.dbf表中,统计出与【套数】最多数量一致的图书信息,显示它们的【书名】和【套数】信息,并按【书名】降序显示。 sele 书名,套数 from tushu where 套数=(sele max(套数) from tushu) order by 书名 desc