查询不完全重复.sql 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. --.singleincome
  2. use db select count(*),name from singleincome
  3. group by [name],[money],[dat],[bz],[renyuan1],[renyuan2],
  4. [renyuan3],[sale2type],[paytype],[phone],[payed],[balance],
  5. [pinyin],[financecheck],[count],[time]
  6. use db select count(*),name from singleincome_back
  7. group by [name],[money],[dat],[bz],[renyuan1],[renyuan2],
  8. [renyuan3],[sale2type],[paytype],[phone],[payed],[balance],
  9. [pinyin],[financecheck],[count],[time] having(count(*) > 1)
  10. use [2014] select count(*),name from singleincome
  11. group by [name],[money],[dat],[bz],[renyuan1],[renyuan2],
  12. [renyuan3],[sale2type],[paytype],[phone],[payed],[balance],
  13. [pinyin],[financecheck],[count],[time]
  14. use db select * from singleincome_back where name = 'Ö¤¼þÏà' order by renyuan1
  15. --.[gudingfeiyong]
  16. use db select count(*),name from [gudingfeiyong]
  17. group by [name],[money],[dat],[bz],[renyuan1],[renyuan2],[financecheck],[time],[financecheck2],[financecheck3],[hasphoto]
  18. use db select count(*),name from gudingfeiyong_back
  19. group by [name],[money],[dat],[bz],[renyuan1],[renyuan2],[financecheck],[time],[financecheck2],[financecheck3],[hasphoto]
  20. having(count(*) > 1)
  21. use [2014] select count(*),name,dat from gudingfeiyong
  22. group by [name],[money],[dat],[bz],[renyuan1],[renyuan2],[financecheck],[time],[financecheck2],[financecheck3],[hasphoto]
  23. having(count(*) > 1)
  24. use [2014] select * from gudingfeiyong where name = 'ÔÓ·Ñ' and dat = '2011-05-27' order by renyuan1