I have two tables:
table 1
- fid
- field
- queryorder
table 2
- fid
- field
- name
fid and field are same in both tables. I want a query like
select fid
from table 1
where field in table 1 corresponding to name = dell
and should not have queryorder = 1
Your question is not clearly worded, but if I’m reading it right, all you want to show is the fid from table 1, where the “name” field in table2 = dell, and the “queryorder” field from table 1 is not equal to “1”.
Small piece of advice: you should not name a field “name” — that’s a keyword, and will cause you headaches down the road.