Güzel Sorgularım



select distinct STOK_KODU from ACME2014..ACMEIRSALIYERAPORU where STOK_KODU in (select StokKodu from TBLARTEMISURETILENHALI where MasterId=122)  


Bu kodu  STOK_KODU  like in yazmak için 

select distinct bb.StokKodu from ACME2014..ACMEIRSALIYERAPORU aa 
inner join  TBLARTEMISURETILENHALI bb  on  bb.MasterId=122 and  aa.STOK_KODU like '%'+ bb.StokKodu+ '%' 


Yorumlar

Popüler Yayınlar