This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

SQL Inner join
#1
Does anybody know if the SQL language in LUA scripts for LM5 support inner joins? If "yes", where can I find the syntax?

Example: I want to read all entries from the object log for all objects having a tag called (say) 'MYTAG'

I have already built a script that first uses grp.tag to create a table with all objects and then I loop through each entry in the table and use SQL SELECT from the objectfile. 
This works fine, but it would be more elegant to do it all in one SQL SELECT, joining the tables "objects", "objecttags" and "objectlog"  (via objects.id, objecttags.object and objectlog.address)

Thanks
Reply


Messages In This Thread
SQL Inner join - by mjaanes - 03.04.2020, 18:48
RE: SQL Inner join - by admin - 03.04.2020, 19:41
RE: SQL Inner join - by mjaanes - 04.04.2020, 09:26

Forum Jump: