技术开发 频道

关于数据仓库数据质量的问题探讨


五、 可度量性
  如果用户对报表质量提出质疑,我们可以比较容易的给出错误度量报表,只需要提供各个维度中-1,-2的数据即可。假如方便的话,还可以提供相关图表。

  当然如果在报表仍然存在问题,我们只能求助于SQL,通过排除法,来完成报表的质量验证工作。 
 
--First count the record number of original table. SELECT COUNT(*) FROM table_original A --Relate with the first dimension table, and capture the record number. SELECT COUNT(*) FROM table_original A,table_dimension1 B WHERE A.ID = B.ID; --Relate with the second and more dimension table, and capture the --record number, to verify the result. SELECT COUNT(*) FROM table_original A,table_dimension1 B, table_dimension2 C WHERE A.ID = B.ID AND A.ID = C.ID;
0
相关文章