-
如何撰写被引用的科学论文和获得资助的项目提案 - 表级实用元数据
资源介绍
图 4.8 表级实用元数据
图 4.8 用维度结构展示了这些表。一些 ETL 工具在正常操作过程中作为副产
品生成这样的表。使用数据 staging 表记录数表,这一个过滤器可能需要两路 SQL
来处理,如下所示:
SELECT AVERAGE(Number_of_Records).3 * STDDEV(Number_of_Records),
AVERAGE(Number_of_Records) + 3 * STDDEV(Number_of_Records)
INTO Min_Reasonable_Records,
Max_Reasonable_Records
FROM data_staging_table_record_count
WHERE source_system_name = 'Source System Name"
;
SELECT COUNT(*)
FROM work_in_queue_table
WHERE source_system_name = 'Source System Name"
HAVING COUNT(*) NOT BETWEEN
Min_Reasonable_Records AND Max_Reasonable_Records