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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -