I am doing a school assignment but I do not know how to populate a fact table. My query to do it is
Select CustomerID from dim_cust
Select ProductID from dim_product
select InvoiceID from dim_invoice
insert into [dim_fact] ([CustomerID], [ProductID], [InvoiceID]);
The dim_* are all tables that I filled in manually.
I get also get an "Incorrect syntax near ')'" error. I also have a column that will have the total number of invoices in the fact table (dim_fact).
Any help is greatly appreciated, thank you!
I assume that invoice table has both
customerid
andproductid
information. So you can joindim_cust
anddim_invoice
table to get what you want.