Viewing 6 posts - 1 through 6 (of 6 total)
select * from yourtab
except
select top(10) * from yourtab
Spandan Buch
May 19, 2011 at 12:34 pm
create table #aa
(
id int identity(1,1),
col1 varchar(30)
)
insert into #aa(Col1)
select col1 from yourtable
select * from #aa where id>10
Spandan Buch
May 19, 2011 at 12:30 pm
As you said earlier "AUTOINCREAMET" is autoincrement no Correct?
May 19, 2011 at 10:14 am
IF OBJECT_ID(N'tempdb..T') IS NOT NULL
DROP TABLE #T ;
CREATE TABLE #T
(Col1 VARCHAR(10),
...
May 19, 2011 at 8:45 am
Check the datatypes... you seem to be fond of varchar(max). Also equality criteria is missing between twotables
May 15, 2011 at 5:33 am
A small tip
1. there are couple of RID lookup's try creating Covering indexes if possible.
2. I saw a table scan if this can be eliminated
3. there is a index...
May 14, 2011 at 5:06 am
Viewing 6 posts - 1 through 6 (of 6 total)