db.define_table(
'finddup',
Field('f1_name'),
Field('f2_name'),
Field('f3_name')
)
fd = db.finddup
count = fd.id.count()
rtn = db(fd.id>0).select(fd.f1_name, fd.f2_name, fd.f3_name, count, groupby=fd.f1_name|fd.f2_name|fd.f3_name, having=count>1)
--