Hello all. I am trying to make a query that consists of several tables, but only two tables are important for this issue.
CPU table
-sys_name (samplename)
-dns (sampledns.com)
Performance table
-sys_dns (samplename.sampledns.com)
-tot_occ (integer)
I need to get total_occ in the query, but the primary key on all of my tables is sys_name and dns with the exception of the Performance table which concatenates the two. Can I somewhow use the InStr function to look up the sys_name in sys_dns, or am I going to have to create a new table for this? What about a subquery that takes everthing before the first "."?
Can you think of any other solutions?
Thank you in advance.
CPU table
-sys_name (samplename)
-dns (sampledns.com)
Performance table
-sys_dns (samplename.sampledns.com)
-tot_occ (integer)
I need to get total_occ in the query, but the primary key on all of my tables is sys_name and dns with the exception of the Performance table which concatenates the two. Can I somewhow use the InStr function to look up the sys_name in sys_dns, or am I going to have to create a new table for this? What about a subquery that takes everthing before the first "."?
Can you think of any other solutions?
Thank you in advance.