G
Guest
Hello,
I have a query that is not returning the expected rows. I am really an
Oracle programmer and the query works fine there, but does not work in
Access. So help would be greatly appreciated.
I have 3 tables. 1 is category_lookup (master table) category_value (detail
table to category_lookup), and systeminfo (links to category_value present)
There is a relationship setup between category_lookup.category_id and
category_value.category_id.
There are relationships setup between category_value.category_value_id and
systeminfo.os_id, systeminfo.database_id, systeminfo.hardware_id,
systeminfo.user_info_id, systeminfo.system_type_id
There are currently only 5 records in the systeminfo table.
There are 5 different categories in the category_value table with each
category having about 5 different records.
Here's the query as I would use it in Oracle:
SELECT a.category_value_description, b.category_value_description,
c.category_value_description,d.category_value_description,
e.category_Value_description,
systeminfo.system_name, systeminfo.department
FROM category_value a,
category_value b,
category_value c,
category_Value d,
category_Value e,
systeminfo
WHERE a.category_Value_id = systeminfo.os_id
and b.category_value_id = systeminfo.hardware_id
and c.category_Value_id = systeminfo.database_id
and d.category_Value_id = systeminfo.user_info_id
and e.category_value_id = systeminfo.system_type_id
Now the expected rows are returned in Oracle. I tried using this query in
Access, but no rows are returned.
So I tried the following query to see if just one type would be returned.
SELECT category_value.category_value_description, systeminfo.User_info_id
FROM category_value, systeminfo
WHERE systeminfo.user_info_id=category_value.category_value_id;
But the values for the category_value_description returned are the 1st five
records in the category_Value table, not the ones corresponding the the
user_info_id information.
The category_value_id is not matching the user_info_id.
What is wrong with this query?
Thank you in advance for your assistance.
I have a query that is not returning the expected rows. I am really an
Oracle programmer and the query works fine there, but does not work in
Access. So help would be greatly appreciated.
I have 3 tables. 1 is category_lookup (master table) category_value (detail
table to category_lookup), and systeminfo (links to category_value present)
There is a relationship setup between category_lookup.category_id and
category_value.category_id.
There are relationships setup between category_value.category_value_id and
systeminfo.os_id, systeminfo.database_id, systeminfo.hardware_id,
systeminfo.user_info_id, systeminfo.system_type_id
There are currently only 5 records in the systeminfo table.
There are 5 different categories in the category_value table with each
category having about 5 different records.
Here's the query as I would use it in Oracle:
SELECT a.category_value_description, b.category_value_description,
c.category_value_description,d.category_value_description,
e.category_Value_description,
systeminfo.system_name, systeminfo.department
FROM category_value a,
category_value b,
category_value c,
category_Value d,
category_Value e,
systeminfo
WHERE a.category_Value_id = systeminfo.os_id
and b.category_value_id = systeminfo.hardware_id
and c.category_Value_id = systeminfo.database_id
and d.category_Value_id = systeminfo.user_info_id
and e.category_value_id = systeminfo.system_type_id
Now the expected rows are returned in Oracle. I tried using this query in
Access, but no rows are returned.
So I tried the following query to see if just one type would be returned.
SELECT category_value.category_value_description, systeminfo.User_info_id
FROM category_value, systeminfo
WHERE systeminfo.user_info_id=category_value.category_value_id;
But the values for the category_value_description returned are the 1st five
records in the category_Value table, not the ones corresponding the the
user_info_id information.
The category_value_id is not matching the user_info_id.
What is wrong with this query?
Thank you in advance for your assistance.