--testy dokumentów

select * from  OPENQUERY (TETA_CONS_PROD, 
	 '
	select * from 
  RK_dokumenty
  where nip=''7272351852'' 
  order by data_dokumentu desc
	 ')    

-- 8992737741 	unit 4
-- 5272449484	tremark