select a.name 
from sysobjects a
inner join sysindexes b on a.name=b.name
where a.xtype = 'u'
and b.rows =0
and exists 
(select 1 from syscolumns c
where a.id = c.id and c.name='dj_code')