This is a table A and B.
I want to create the following result by using SQL with the KEY value of the DTGBN column.
some body help me!!!!
Please explain the logic used here to give the desired result to be 100+300+50+70-20
How do you get that from the original data, what is the logic?
What does table B have to do with this problem?
How do you know that you are supposed to:
Why do you refer to the DTBIN column as a key?
Just guessing:
Right?
Drop the idea of using sql, data step is most likely better readable an far easier to code.
Until you post the data in usable form (data steps with datalines) i can't suggest any code.
Another thing you need to tell us: what exactly do you expect as output? A dataset, a table, a line in the log? How should it look like?
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.
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.
Ready to level-up your skills? Choose your own adventure.