Created
July 4, 2013 15:42
-
-
Save mikebuchanon/5928714 to your computer and use it in GitHub Desktop.
An example of using SQL Variables in ANGEL's SQL Query Manager
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
-- This script finds a specific user in a specific course | |
SQLVAR: $COURSE_ID$ = [?Enter a course id] | |
SQLVAR: $USER_ID$ = [?Enter a user id] | |
--Execute the script | |
SELECT * FROM dbo.COURSE_ROSTER WHERE COURSE_ID LIKE $COURSE_ID$ AND USER_ID LIKE $USER_ID$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment