The campus crime fact table is created by performing aggregation operations on the dimension tables. This is done by performing join operation on foreign key references to the dimension tables. Every entry in the fact table is identified by a unique sequence of foreign key references from the dimension tables. The fact table should be updated from time to time as new data is added into the data mart. A stored procedure which is used to extract facts using XQuery is given below.