Skip to content
Snippets Groups Projects
Commit 7883d476 authored by Sebastian Listl's avatar Sebastian Listl :speech_balloon:
Browse files

1082235 weblink tags better sql expression

parent 11b4971e
No related branches found
No related tags found
No related merge requests found
import("system.result");
result.string("(SELECT GROUP_CONCAT(CONCAT(' ', TITLE)) from ab_keyword_entry join WEBLINKTAG on "
+" KEYID = WEBLINKTAG.TAG join ab_keyword_category on ab_keyword_category_id = ab_keyword_categoryid where WEBLINKTAG.WEBLINK_ID = WEBLINKID and AB_KEYWORD_CATEGORY.NAME = 'WeblinkTags')");
\ No newline at end of file
import("Sql_lib");
var sqlMask = new SqlMaskingUtils();
var sql = newSelect(sqlMask.getGroupConcat("TITLE", "', '"))
.from("AB_KEYWORD_ENTRY")
.join("WEBLINKTAG", "KEYID = WEBLINKTAG.TAG")
.join("AB_KEYWORD_CATEGORY", "AB_KEYWORD_CATEGORY_ID = AB_KEYWORD_CATEGORYID")
.where("WEBLINKTAG.WEBLINK_ID = WEBLINKID")
.and("AB_KEYWORD_CATEGORY.NAME", "WeblinkTags");
result.string(sql.toString());
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment