I want to compare and SQL table to an Ignition Table/Dataset and only list the differences in a new table. I’m trying to bind The SQL statement below to a table, which is intended to only display data that is different. *Note: I’ve attached an image of the two tables in this post for a visual.
SELECT groups.g_name FROM groups
EXCEPT
SELECT g_name FROM {Root Container.TableMemberOf.data}
WHERE {Root Container.TableMemberOf.data.g_name} = groups.g_name
I’ve also tried:
SELECT groups.g_name FROM groups
WHERE NOT EXISTS
(SELECT * FROM {Root Container.TableMemberOf.data}
WHERE {Root Container.TableMemberOf.data} = groups.g_name)
Note: There is only one column on my igntion table that displays or lists the group names. there is no id on the ignition table. Therefore in the script above, I’m using the “groups.group” name from the SQL table and the filter of “*” on the ignition table, becaust the igntion table has no id.