how to delete the duplicate columns permanently in SQL

Answer Posted / chandrakanth

proc sql;
create table dataset-name as select distinct(variable-name),list-all-the-variables-you-want from dataset-name;
quit;

please let me know if you have any questions

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Will it bother you if the guy at the next desk times the frequency and duration of your bathroom or coffee breaks on the grounds that ?you are getting paid twice as much as he is??

2098


what is the one statement to set the criteria of data that can be coded in any step? : Sas programming

652


How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro

585


How would you identify a macro variable? : sas-macro

535


How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data?

639






I have a dataset concat having a variable a b & c. How to rename a b to e & f?

762


What system options would you use to help debug a macro? : sas-macro

642


Did you used proc test? when?

1575


What is the difference between input and infile statement?

684


How do dates work in SAS data?

689


how we can create a FLAG datasets? Ex:-ID age_group no_persons 1 to 10 10 to 20 3 11 to 20 21 to 30 7 21 to 3o 31 to 40 5

1661


In sas, what are the areas that you are most interested in? : sas-grid-administration

642


Hi, If anyone has base SAS certification dumps, please share.

1390


What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro

585


What is the function of Stop statement in a SAS Program?

646