由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - help: simple query!(菜鸟上路)
相关主题
请教ACCESS问题, 如何把REPORT的结果(如SUM)写回TABLE中?[转载] question about SQL in Access
请教一个SQL query该怎么写[转载] Can anyone interpret this simple SQL?
怎么求和请教一个query
How to write the queryA sql question
问一个queryhow to make query faster?
关于Acess的简单问题query estimation shows cost 900%?
一个SQL query的问题oracle JDBC thin vs. JDBC OCI
Question 2: distributed database question?再问个excel问题吧
相关话题的讨论汇总
话题: prodqtyinv话题: product话题: null话题: query话题: products
进入Database版参与讨论
1 (共1页)
y*l
发帖数: 334
1
write a query to display the number of products, the total product
quantity,highest&lowest value,but the average only for non-continued
products(product status is null).
I wrote like this:
SELECT COUNT(*)'prodNumberOfRows', SUM(prodQtyInv)'prodQtyInvAmount',
MAX(prodQtyInv)'prodhighestQtyInv', MIN(prodQtyInv)'prodLowestQtyInv',
AVG(prodQtyInv)'prodAvgQtyInv'
FROM Product
WHERE prodStatus is null;
However, it turns out that all the results are restricted to the "null"
1 (共1页)
进入Database版参与讨论
相关主题
再问个excel问题吧问一个query
急,SQL2005, 怎么查过去一小时里run过的所有query?关于Acess的简单问题
Late afternoon 腦不好使一个SQL query的问题
请教一个mssql的问题Question 2: distributed database question?
请教ACCESS问题, 如何把REPORT的结果(如SUM)写回TABLE中?[转载] question about SQL in Access
请教一个SQL query该怎么写[转载] Can anyone interpret this simple SQL?
怎么求和请教一个query
How to write the queryA sql question
相关话题的讨论汇总
话题: prodqtyinv话题: product话题: null话题: query话题: products