BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
matoma
Obsidian | Level 7

The data set march flights has all of an airlines flights scheduled for march and flight delays has the corresponding delay information, if it exists. Each flight is identified by both a flight date and a flight number. I want to display flight date, flight number, destination, and length of delay. I'm trying to use an outer join to show all the matching and non matching information and for some reason my code isn't working. any ideas? Heres my code. Annotation 2020-02-13 113823.png

1 ACCEPTED SOLUTION

Accepted Solutions
Krueger
Pyrite | Level 9

Your Syntax on your join is incorrect. Change your comma's to AND.

 

left join hw2.flightdelays as d on m.flightnumber=d.flightnumber AND m.date=d.date AND m.destination=d.destion

 

View solution in original post

1 REPLY 1
Krueger
Pyrite | Level 9

Your Syntax on your join is incorrect. Change your comma's to AND.

 

left join hw2.flightdelays as d on m.flightnumber=d.flightnumber AND m.date=d.date AND m.destination=d.destion

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 406 views
  • 0 likes
  • 2 in conversation