I have a GUID with the GUID Column ordered in ASCE and being used as a clustered primary key. My question is can I use the Guid and explicitly order by the Guid column to bring back the result in time ordered fasion?
I am assuming it is in the correct order after looking at the createdOn fields which seem to be ordered correctly when I order by the GUID. I am guessing this is done because the GUID is already in time ordered as part of creating the GUID and that it has ASCE in it as well.
Will i definitely it in the right order by time or shall I use created date? I am guessing ordering by the GUID as the clustered Key would be quicker but can anyone give me your thoughts to go with that or created? Or will it give the same outcome which I am guessing it does.
The reason I need it in order is to assign a surrogate key for data warehousing by giving it a Big int (1,1) so it can be join on the surrogate keys rather than the natural keys which are the guids. But want to make sure the surrogate keys are always given to the correct guid by explicitly stating the order by