Viewing 15 posts - 1 through 15 (of 31 total)
exists is faster as many resources says.
i tend to use exists not in.
January 8, 2008 at 8:06 am
select * from table1 a
where exists
(select 1 from table2
where table2.po# = a.po#)
January 8, 2008 at 5:08 am
as BOL they both have the same functionalities.
they prevent (not always) the query optimizer from using an index to perform a search.
i hear lot of thoughts about tu use...
August 17, 2007 at 6:30 am
ok seems enough for me
what if i have sql server 2000
i have to use Text datatype then
what about Text dataype?
August 17, 2007 at 5:40 am
this field will be accessed frequently and very often
select statement will be used often, insert as well
less update and delete...
August 16, 2007 at 7:20 am
thats the strict answer i was waiting
10x
August 10, 2007 at 7:48 am
yes john its the most clear way to do it
i also did it
but i was just wondering if a query can be written in the way i provided or its...
August 10, 2007 at 5:14 am
for a specific ID i have one and only one max (ID)
insert into @table
select 1, 'A', '03/07/07' union all
select 1, 'B', '09/07/07' union all
select 1, 'C', '11/07/07' union all
select 2,...
July 27, 2007 at 8:49 am
10x for ur reply
but i gave a simple example here
the real case is that the row contains many fields , some are int, some are varchar....
so i need that whole...
July 27, 2007 at 8:28 am
i use this:
CREATE
FUNCTION [dbo].[GetList]()
RETURNS
Varchar(20)
July 9, 2007 at 5:35 am
thanks noel for your help
but i couldnt manage to get the snapshot job name from
EXEC sp_MSenum_replication_agents @type = 1
i tried to insert the result in a temp table but i...
June 28, 2007 at 6:58 am
@Charbel: this is never gonna happen unless you loop through your results and filter all doubles yourself! But that's probably not what you want to do.
that wat i did and...
March 27, 2007 at 1:53 am
i meant that the result are ordered after the distinct
i want o get the results as they are in the table
check the example i provided
March 26, 2007 at 3:32 am
Viewing 15 posts - 1 through 15 (of 31 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy