Multiple Group-By: Front end tools such as
multidimensional spreadsheets require grouping by
different sets of attributes. This can be simulated by a set
of SQL statements that require scanning the same data
set multiple times, but this can be inefficient. Recently,
two new operators, Rollup and Cube, have been
proposed to augment SQL to address this problem.
Thus, Rollup of the list of attributes (Product, Year, City )
over a data set results in answer sets with the following
applications of group by: (a) group by (Product, Year,
City) (b) group by (Product, Year), and (c) group by
Product. On the other hand, given a list of k columns, the
Cube operator provides a group-by for each of the
combinations of columns. Such multiple group-by
operations can be executed efficiently by recognizing
commonalties among them. Microsoft SQL Server
supports Cube and Rollup.
หลายกลุ่มโดย : เครื่องมือปลายด้านหน้าเช่นสเปรดชีตต้องแบ่งกลุ่ม
หลายมิติชุดที่แตกต่างกันของแอตทริบิวต์ นี้สามารถจำลองโดยชุด
ของงบ SQL ที่ต้องสแกนข้อมูลเดียวกัน
ตั้งหลายครั้ง แต่ก็ไม่เป็นผล เมื่อเร็ว ๆนี้ ,
2 ผู้ประกอบการใหม่ , ยกเลิกและ Cube ได้
เสนอเพิ่ม SQL เพื่อแก้ไขปัญหานี้ .
ดังนั้นขาย ของรายการคุณลักษณะของผลิตภัณฑ์ , ปี , เมือง )
กว่าชุดข้อมูลผลลัพธ์ในชุดคำตอบต่อไปนี้
การใช้งานของกลุ่มโดย : ( ) กลุ่มผลิตภัณฑ์ , ปี ,
เมือง ) ( ข ) กลุ่ม ( ปีผลิตภัณฑ์ ) และ ( c )
) โดยผลิตภัณฑ์ บนมืออื่น ๆที่ได้รับรายชื่อของ K คอลัมน์
Cube ให้กลุ่มผู้ประกอบการ โดยแต่ละ
ชุดของคอลัมน์ หลายกลุ่มเช่น
การดำเนินการสามารถดำเนินการได้อย่างมีประสิทธิภาพ โดยตระหนักถึง
commonalties ในหมู่พวกเขา Microsoft SQL Server
สนับสนุนคิวบ์และขาย .
การแปล กรุณารอสักครู่..
