标签: sql-server sql-server-2008
如何转换查询以获得更好的性能?
select * from inventorytranstemp where tablename = ( select top(1) tableName from inventorytranstemp where printed = 1 )
条件与选择查询存在于同一表中。如何将查询转换为看起来更简单,使用更少的select语句?