A
AdamPoz
Hi,
I have an issue with a join query. I have 2 tables 1 containing information
on monitors the 2nd table contains information about computers. They can be
joined on the hostname field as they are the for the most part the same.
However some of the computers have a suffix of the domain and I can’t seem to
get the sql right
Table definition
computer_tbl a monitor_tbl
hostname hostname
table data
computer_tbl a monitor_tbl
host101 host101
host102.domain host102
My sql code
a.hostname, b.hostname
from computer_tbl a, from computer_tbl b
where a.hostname = mid(b.hostname,1,(length(b.hostname) -7))
or a.hostname = b.hostname
The sql runs in access and then returns the results and 3 seconds later a
function error is displayed and the dataset is replaced with question marks
Can some please advice me where I am going wrong
I have an issue with a join query. I have 2 tables 1 containing information
on monitors the 2nd table contains information about computers. They can be
joined on the hostname field as they are the for the most part the same.
However some of the computers have a suffix of the domain and I can’t seem to
get the sql right
Table definition
computer_tbl a monitor_tbl
hostname hostname
table data
computer_tbl a monitor_tbl
host101 host101
host102.domain host102
My sql code
a.hostname, b.hostname
from computer_tbl a, from computer_tbl b
where a.hostname = mid(b.hostname,1,(length(b.hostname) -7))
or a.hostname = b.hostname
The sql runs in access and then returns the results and 3 seconds later a
function error is displayed and the dataset is replaced with question marks
Can some please advice me where I am going wrong