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

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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