H
hoachen
I am trying to compare two fields data if there are match.
Table 1:
item#
123
Table 2:
Item# ItemName Edition creator
123 Name1 05 Smith
456 EkName2 05 Smith
111 Name1 11th 10 Larry
656 EkName4 latest John
The result should return below, because the Edition and the creator match
even though the ItemName and the item# does not match.
123 Name1 05 Smith
456 EkName2 05 Smith
I tried SELECT ItemName, Edition (select temp.ItemName, Edition, from
[ItemTable] AS temp Where ItemName like "ek*") from [ItemTable] Order Edition
Table 1:
item#
123
Table 2:
Item# ItemName Edition creator
123 Name1 05 Smith
456 EkName2 05 Smith
111 Name1 11th 10 Larry
656 EkName4 latest John
The result should return below, because the Edition and the creator match
even though the ItemName and the item# does not match.
123 Name1 05 Smith
456 EkName2 05 Smith
I tried SELECT ItemName, Edition (select temp.ItemName, Edition, from
[ItemTable] AS temp Where ItemName like "ek*") from [ItemTable] Order Edition