Viewing 15 posts - 526 through 540 (of 557 total)
Cadavre (9/17/2012)
So the fastest ones after one run are: -
ScottPletcher: 0ms
Cadavre: 3ms
ChrisM@Work: 4ms
Eugene Elutin: 5ms
Dwain: 7ms
Eugene Elutin: 11ms
Personally, I'd call those times equivalent. I suspect that the fastest one would...
September 17, 2012 at 3:09 am
Another solution, I think shorter and more efficient, this because only 865 rows need to be generated and inspected.
with a as ( select 123 as n union all select...
September 15, 2012 at 8:59 am
GSquared (9/14/2012)
Gazareth (9/14/2012)
That means the two are not semantically identical in the...
September 14, 2012 at 11:08 am
Lowell (9/14/2012)
yes it's true; there are two ways to cross join tables.
I do realize that there a two ways for the cross join. And I know that the comma syntax...
September 14, 2012 at 5:45 am
subbareddy542 (9/14/2012)
please use #temp table in plase of CTE.
Please explain why a #temp table should be used.
I have been using CTE expressions and used #temp tables to 'force' the...
September 14, 2012 at 5:29 am
Overlapping of times.
The overlapping of times is often handled wrong.
Suppose we have a table with booked_start and booked_finish.
And you have a begintime and endtime for which you want the 'overlapping'...
August 27, 2012 at 8:34 am
HowardW (8/23/2012)
The point of partitioning is normally to divide your tables using a natural key, like a transaction date, or a month end date etc. in order to immediately narrow...
August 27, 2012 at 8:04 am
CREATE TABLE tablename
(
id int NULL,
name varchar(50) NULL,
val int NULL
)
insert into tablename VALUES (1 ,'abc' ,100)
insert into tablename VALUES (2 ,'ravi' ,null)
insert into tablename VALUES ('','venu' ,200)
insert into tablename VALUES (3...
August 27, 2012 at 2:46 am
CREATE TABLE tablename
(
id int NULL,
name varchar(50) NULL,
val int NULL
)
insert into tablename VALUES (1 ,'abc' ,100)
insert into tablename VALUES (2 ,'ravi' ,null)
insert into tablename VALUES ('','venu' ,200)
insert into tablename VALUES (3...
August 27, 2012 at 2:45 am
CREATE TABLE tablename
(
id int NULL,
name varchar(50) NULL,
val int NULL
)
insert into tablename VALUES (1 ,'abc' ,100)
insert into tablename VALUES (2 ,'ravi' ,null)
insert into tablename VALUES ('','venu' ,200)
insert into tablename VALUES (3...
August 27, 2012 at 2:44 am
id int,
name varchar(50),
sal int
With the above datatypes you can not have a table:
,venu ,200
null,fanu ,3600
If the id is an int you can not have both a NULL value and a...
August 27, 2012 at 2:23 am
I am doing this out of the top of my head and haven't tried this code, but something like :
change:
set int1 = SUBSTRING (interests,1,PATINDEX ('%,%',interests));
To:
set int1 = SUBSTRING (interests+',empty,empty,empty,empty',1,PATINDEX ('%,%',interests+',empty,empty,empty,empty'));
I...
August 23, 2012 at 3:24 am
Suresh B. (8/20/2012)
Yes. It is still valid.It's caled uniquifier.
Thank you,
Using the term uniquifier, on line I found:
In books online I could not find the term uniquifier, neither could I...
August 21, 2012 at 1:48 am
GilaMonster (6/29/2012)
WHERE Column IN ('Value1') is completely equivalent to WHERE Column = 'Value1' and WHERE...
June 29, 2012 at 8:59 am
Viewing 15 posts - 526 through 540 (of 557 total)