BookmarkSubscribeRSS Feed
11427qvolaf
Calcite | Level 5

A research analyst has two datasets both containing a unique identifier “patient_number”: Survey which contains a patient’s initial interview responses as one row per patient and Demographics which contains information on all patients including date of birth, gender, address, etc.

 

What is a SAS or SQL code you would use to create a new data set containing all of the patients and information in Survey but adding their gender from Demographics.

3 REPLIES 3
japelin
Rhodochrosite | Level 12

Can you provide actual data or sample data that reflects the actual situation?

Reeza
Super User
Homework or pre-employment exam?
LinusH
Tourmaline | Level 20

Thsi is a very basic data management/programming task.

I suggest that you study the area first.

Then you are welcome back on more specific issues, rather than a full assignemnt.

Data never sleeps

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 988 views
  • 0 likes
  • 4 in conversation