Viewing 15 posts - 1,021 through 1,035 (of 1,439 total)
FelixG (10/16/2009)
The installation of this toolkit...
October 16, 2009 at 11:12 am
Can you explain why you want to do this. The number of combinations for 10 digits is huge.
October 13, 2009 at 6:19 am
SELECT x1.value('.','VARCHAR(20)'),
x3.value('.','VARCHAR(20)'),
x2.value('.','VARCHAR(20)')
FROM @productIds.nodes('/Products/Desc/Name') AS n1(x1)
CROSS JOIN @productIds.nodes('/Products/Details/MfgDate') AS n2(x2)
CROSS APPLY x2.nodes('../Content') AS n3(x3)
October 12, 2009 at 4:49 am
> using value of the first row of column Num2
You'll have to explain what "first" row means, but see if this helps
select userid , sum(Num1) ,min(Num2)
from Tmp
group by userid
October 12, 2009 at 2:42 am
October 10, 2009 at 6:41 am
Maybe this?
SELECT
a.id,
a.data,
MAX(b.field_b) AS field_b
FROM
table_a as a
LEFT JOIN table_b as b ON a.id =...
October 8, 2009 at 9:52 am
setlan1983 (10/8/2009)
Mark-101232 (10/8/2009)
setlan1983 (10/8/2009)
Mark-101232 (10/8/2009)
CREATE TABLE Table1 (
column1 int,
column2 int
)
INSERT INTO Table1(column1,column2) VALUES(10,20)
DECLARE @DBName VARCHAR(128)
DECLARE @column1 INT
DECLARE @column2 INT
SET...
October 8, 2009 at 6:34 am
setlan1983 (10/8/2009)
Mark-101232 (10/8/2009)
CREATE TABLE Table1 (
column1 int,
column2 int
)
INSERT INTO Table1(column1,column2) VALUES(10,20)
DECLARE @DBName VARCHAR(128)
DECLARE @column1 INT
DECLARE @column2 INT
SET @DBName=DB_Name()
EXEC ('DECLARE...
October 8, 2009 at 5:52 am
See if this helps
CREATE TABLE Table1 (
column1 int,
column2 int
)
INSERT INTO Table1(column1,column2) VALUES(10,20)
DECLARE @DBName VARCHAR(128)
DECLARE @column1 INT
DECLARE @column2 INT
SET @DBName=DB_Name()
EXEC ('DECLARE cur1 CURSOR...
October 8, 2009 at 5:19 am
I suspect this can be simplified, but should work okay
WITH LBounds(TutorID,StartTime) AS (
SELECT s1.TutorID,
s1.StartTime
FROM #Classes s1
WHERE NOT EXISTS(SELECT * FROM #Classes...
October 7, 2009 at 4:50 am
Matt Whitfield (10/7/2009)
I see results on my boxes as being faster for 2000 & 2005 and equitable on 2008, using...
October 7, 2009 at 4:30 am
Matt Whitfield (10/7/2009)
'I ran these tests several times on a few different servers, and ISNULL appears to pretty consistently out-perform COALESCE by an average of 10 or 12...
October 7, 2009 at 4:05 am
Matt Whitfield (10/5/2009)
Use ISNULL. I think people use COALESCE way too much when it's not appropriate, and ISNULL is certainly faster.
Interesting comment about ISNULL being faster. The results here, especially...
October 7, 2009 at 3:48 am
-- Assuming ID is unique
DELETE FROM PERSONS
WHERE EXISTS (SELECT * FROM PERSONS t2 WHERE t2.FirstName=PERSONS.FirstName
...
October 5, 2009 at 8:49 am
Ian Scarlett (10/2/2009)
Mark-101232 (10/2/2009)
CREATE VIEW dbo.ActiveDomainNames
WITH SCHEMABINDING
AS
SELECT DomainID,AffiliateID,DomainName,CreatedDate
FROM dbo.MyTable
WHERE IsActive=1
CREATE UNIQUE CLUSTERED INDEX ix ON dbo.ActiveDomainNames(DomainName)
I see the idea (very neat), but can't figure out how that would limit it...
October 2, 2009 at 11:20 am
Viewing 15 posts - 1,021 through 1,035 (of 1,439 total)