sql - Query for selecting Itemnumber from table? -


i have 2 tables 1.inventtable , 2.texttable

1.enter image description here

and next table is

2.enter image description here

i need select itemnumbers second table id!=2 , filename =etable in inventtable.how write query this

your query (for sql server):

select * inventtable  inner join texttable t on t.itemnumber=i.refkey i.id<>2 , i.filename='etable' 

Comments

Popular posts from this blog

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

ruby on rails - Authlogic - how to make a registration and don't log in the new account? -