Alternatively, we can represent the summary table by encoding the aggregated tuples in the same fact table and the same dimension tables without adding new tables. This may be accomplished by adding a new level field to each dimension and using nulls: We can encode a day, a month or a year in the Date dimension table as follows: (id0,22,01,1960) represents a record for Jan 22, 1960, (id1,1,NULL,01,1960) represents the month Jan 1960 and (id2,2,NULL,NULL,1960) represents the year 1960. The second attribute represents the new attribute level: 0 for days, 1 for month, 2 for year. Tn the fact table, a record containing the foreign key id2 represents the aggregated sales for a Product in the year 1960. The latter method, while reducing the number of tables,
is often a source of operational errors since the level field needs be carefully interpreted.
Alternatively, we can represent the summary table by encoding the aggregated tuples in the same fact table and the same dimension tables without adding new tables. This may be accomplished by adding a new level field to each dimension and using nulls: We can encode a day, a month or a year in the Date dimension table as follows: (id0,22,01,1960) represents a record for Jan 22, 1960, (id1,1,NULL,01,1960) represents the month Jan 1960 and (id2,2,NULL,NULL,1960) represents the year 1960. The second attribute represents the new attribute level: 0 for days, 1 for month, 2 for year. Tn the fact table, a record containing the foreign key id2 represents the aggregated sales for a Product in the year 1960. The latter method, while reducing the number of tables,is often a source of operational errors since the level field needs be carefully interpreted.
การแปล กรุณารอสักครู่..

อีกวิธีหนึ่งที่เราสามารถเป็นตัวแทนของตารางสรุปโดยการเข้ารหัส tuples รวมในตารางความจริงที่เหมือนกันและตารางมิติเดียวกันโดยไม่ต้องเพิ่มตารางใหม่ ซึ่งอาจทำได้โดยการเพิ่มระดับสนามใหม่เพื่อแต่ละมิติและการใช้ nulls: เราสามารถเข้ารหัสวันเดือนหรือปีในตารางมิติวันดังนี้ (id0,22,01,1960) หมายถึงการบันทึก ม.ค. 22 ปี 1960 (id1,1, โมฆะ 01,1960) แสดงให้เห็นถึงเดือนมกราคม 1960 และ (id2,2, โมฆะโมฆะ 1960) แสดงให้เห็นถึงปี 1960 แสดงให้เห็นถึงคุณลักษณะที่สองระดับคุณลักษณะใหม่: 0 วัน, 1 เดือน 2 ปี tn ตารางความจริงบันทึกที่มี id2 ต่างประเทศที่สำคัญแสดงให้เห็นถึงยอดขายรวมสำหรับสินค้าในปี 1960 วิธีหลังในขณะที่การลดจำนวนของตาราง
มักจะเป็นแหล่งที่มาของข้อผิดพลาดในการดำเนินงานตั้งแต่ระดับความต้องการด้านการตีความอย่างระมัดระวัง .
การแปล กรุณารอสักครู่..

อีกวิธีหนึ่งคือ เราสามารถแสดงตารางสรุปโดยรวมที่มีการเข้ารหัสในตารางข้อเท็จจริงเดียวกันและตารางมิติเดียวกัน โดยไม่มีการเพิ่มตารางใหม่ นี้อาจจะประสบความสำเร็จโดยการเพิ่มเขตข้อมูลระดับใหม่แต่ละมิติ และใช้ค่า null : เราสามารถเข้ารหัสวัน , เดือนหรือปีในวันที่มิติตารางดังนี้ ( id0,22,011960 ) หมายถึงบันทึกสำหรับ Jan 22 , 1960 , ( id1,1 null ,011960 ) แสดงถึงเดือนม.ค. 1960 และ ( id2,2 null null , 1960 ) แสดงถึงปี 1960 . ลักษณะที่สอง เป็นระดับคุณลักษณะใหม่ : 1 วัน , 1 เดือน , 2 ปี TN ความเป็นจริงตารางบันทึกที่มีไอดีทูคีย์ต่างประเทศแทนรวมการขายสำหรับผลิตภัณฑ์ในปี 1960 . วิธีต่อมา ในขณะที่การลดจำนวนของตาราง
มักจะเป็นแหล่งที่มาของข้อผิดพลาดปฏิบัติการตั้งแต่ในระดับพื้นที่ต้องรอบคอบ ตีความ
การแปล กรุณารอสักครู่..
