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')
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')
select a.name
from sysobjects a , syscolumns b , sysindexes c
where a.id=b.id and a.name=c.name
and a.type='U' and c.rows=0 and b.name='EmployeeID'
select a.name
from sysobjects a , syscolumns b , sysindexes c
where a.id=b.id and a.name=c.name
and a.type='U' and c.rows=0 and b.name='dj_code'