But we still don't know what output you want. You haven't told us. Someone made a guess and said this will "get you closer".
Hi @bhca60
Have a look at the attached pdf file, it has some visual illustrations of various SQL Operations and Statements.
Note: Some of the contents may not be supported by SAS's Proc SQL (Window Functions), but for the most part, it should provide you with good overview of how SQL works.
Hope this helps,
Ahmed
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.