libname ABCDEFGH postgres server="Server_Address.com" port=5432 user=kevin password="P@ssW0rd" database=DBName schema=SchemaName; Proc SQL; Select first_name, last_name, relationship_status, case relationship_status when relationship_status = Single then "Seating for 1" when relationship_status = Married then "Seating for 2" else "Unknown" end as Status from ABCDEFG.your_table; Quit; |
What's happening in the script above?
first_name | last_name | relationship_status | Status |
---|---|---|---|
Kevin | Regan | Married | Seating for 2 |
John | Doe | Single | Seating for 1 |
Jane | Adams | Unknown | |
Jada | Smith | Entanglement | Unknown |
Kevin Regan
Have an article, idea, found a typo, want to contribute? Shoot me an email
Here
Below are links to some Udemy Data Science Courses. I've been using Udemy for a number of years now, and I've found their courses super helpful, maybe you will also.