由买买提看人间百态

topics

全部话题 - 话题: customera
(共0页)
r****r
发帖数: 1839
1
来自主题: Database版 - Access 数据库查询
Access版本是2000,两个table t1, t2
t1: CutomerNumber, Invoice, Date, Amount (Amount中有正有负,但只看绝对值)
t2: CutomerNumber, CustomerName
要求产生一个报告,结构为
CustomerName, Invoice, Date, Amount
但是,进入报告的内容必须是CustomerName+Amouont是重复的,在报告中列在一起,
只出现一次的不算,就像
CustomerA, 123, 05/20/2011, 8.35
CustomerA, 234, 04/08/2011, 8.35
CustomerA, 345, 02/01/2010, 8.35
CustomerA, 456, 03/02/2011, 5.05
CustomerA, 567, 08/19/2010, 5.05
CustomerB, 678, 03/01/2009, 2.18
CustomerB, 789, 08/29/2010, 2.18
和面,加yeast,拌馅,准备包子
(共0页)