Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


data data1;
input dt account;
format dt date9.;
cards;
1745 1230
1756 1120
1788 1130
1767 1240
;

data data2;
input startdt enddt total;
format startdt date9. enddt date9.;
cards;
1657 1834 12300
1557 1758 16800
1789 1789 12300
1788 1345 12383
1899 1899 13250
;

proc sql;
create table data3 as
select * from data1 as x left join data2 as y
on x.dt>=y.startdt and x.dt<=y.enddt;
quit;

Here, we are getting cartision product. But,I want left
join report consisting of this program. It should not get
duplicate values. you can modify the program also.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More SAS Interview Questions

Are you familiar with special input delimiters? How are they used?

4 Answers   Accenture,


how to assign a macro value to a variable?

8 Answers   CitiGroup,


What is the length assigned to the target variable by the scan function?

0 Answers  


What would you change about your job?

0 Answers   Oracle,


What is the SAS data set?

0 Answers  


how many types of prompts are there? : Sas-bi

0 Answers  


what is a post baseline?

2 Answers   Accenture,


what are the scrubbing procedures in sas? : Sas programming

0 Answers  


Do you need to combine data sets? How should you combine data sets– MERGE or SET statements in DATA steps,PROC APPEND,PROC SQL?

3 Answers  


what other SAS features do you use for error trapping and data validation?

3 Answers   Quintiles,


what are the best practices to process the large data sets in sas programming? : Sas-administrator

0 Answers  


How to create an external dataset with sas code?

0 Answers  


Categories