Forum Discussion
Deleting Duplicate Rows in a Data Warehouse Table?
- 2 years ago
Nothing to be proud of but if it works and doesn't break any GUIDs then so be it.
Maybe add an index column to your data to avoid this in the future.
Nothing to be proud of but if it works and doesn't break any GUIDs then so be it.
Maybe add an index column to your data to avoid this in the future.
Thanks lbendlin
My data comes from an excel spreadsheet that's exported from an online service and it has no index column. So I'm not sure how best to go about creating one.
For example, if I create an index column in my dataflow when I import it into my table in the Data Warehouse, when I get a new excel file and it contains some rows that are already in the data warehouse, I'm not sure where I'd go from here to match the rows in the data warehouse to the rows in the excel workbook as the index would likely be different.
Using DISTINCT seems to be the only way I could think of. But maybe this is my lack of understanding as I'm pretty new to SQL and databases in general.
- lbendlin2 years agoSuper User
My data comes from an excel spreadsheet that's exported from an online service and it has no index columnyeah, that's unfortunate. If your solution works reliably in a reasonable amount of time then leave it as is.