I would like to know what is the best way to merge multiple tables. I have a unique identifiers across all the tables. Should I join all the tables in one step after sorting the tables OR should I should do stepwise one by one table merging. Does this matter ?
相关问题
- Delete the group that none of its observation cont
- Reading data from a SAS data source in .Net
- Simple way to do a weighted hot deck imputation in
- Problems with SAS DDE with Office 2010
- Reading observations from SAS dataset into arrays
相关文章
- Finding all possible paths in a dataset using sas
- How do I save a TextEdit (mac) file with a custom
- Logical function in SAS to determine if a particul
- Efficiently concatenate many sas datasets
- Python sas7bdat module usage
- PROC SQL in SAS - All Pairs of Items
- How to summarize all possible combinations of vari
- Tell SAS not to add newly generated tables on the
You can do multiple merges at single step. However, this is not the safest way. If there is possibility that your data is subject to imperfections, it is best to do this step by step. Imho, it is best do merge a step at the time, but it's your call.
This is equivalent to:
There's no particular reason to do it step-by-step, unless you've got conflicting variable names that you're concerned about resolving, or if your combination logic is complicated and you're worried about confusing something. There's no functional reason why not, in any event.
merge
in SAS is actually somewhat simpler thanjoin
in SQL, in particular as the syntax is simpler, so it's somewhat different than the SQL case.