LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Use sql code as graph parameter

    Employee
    Posted 07-27-2015 00:42

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: gabygyy

    hi,

    i'm interested to use a value return by an sql code as a parameter in the graph.
    for example the sql code will return always 1 line with one or more columns, the value inside one column can be a column name or an array containing more columns comma separated. In the graph i need for example to make a join after that columnname or after that array containing more columns.
    How can i do this? using sql as a graph param or other solutions
    thx
    Gaby


  • 2.  RE: Use sql code as graph parameter

    Employee
    Posted 12-21-2015 01:49

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: mgajdosik

    Hi,

    to be honest I don't think that something like this is possible. You may try to use python node, but then still this python node would have to contain the logic for join itself. However I find this as a nice to have feature, to have something like function in brainscript "setParameter".

    Marek


  • 3.  RE: Use sql code as graph parameter

    Employee
    Posted 12-21-2015 09:54

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: stonysmith

    You can construct a SQL statement using any method, and then execute it with the DbExecute node.
    The database engine will restrict you to a single SQL SELECT statement, but you can execute as many UPDATE or INSERT statements.