Created
July 14, 2014 10:01
-
-
Save Vannevelj/557802abd905a8b13d22 to your computer and use it in GitHub Desktop.
squrrel
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
select Tags.tag_id, Tags.tag_name | |
from AssetTags | |
left join Tags | |
on AssetTags.tag_id = Tags.tag_id | |
where AssetTags.asset_id = '" + assetId + "'; | |
select Tags.tag_id, Tags.tag_name | |
from Tags | |
where Tags.tag_id in ( | |
select AssetTags.tag_id | |
from AssetTags | |
where AssetTags.asset_id = '" + assetId + "'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment