Last active
May 15, 2016 12:09
-
-
Save alexanderjsingleton/5fe71c0c3ef0f14aad7949bfa2111489 to your computer and use it in GitHub Desktop.
A simple JOINS statement provided for [my blog-post on databases](https://www.alexanderjsingleton.com/event-horizon-data-centric-future)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- A basic JOINS SQL statement resembling VLOOKUP | |
SELECT s.student_id, | |
z.state AS "STATE" | |
FROM STUDENT.STUDENT s | |
JOIN student.zipcode z ON s.zip=z.zip | |
ORDER BY s.STUDENT_ID; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment