Viewing 15 posts - 571 through 585 (of 2,007 total)
Koen Verbeeck (8/1/2012)
SELECT COALESCE(A.ID,B2.ID), COALESCE(A.Value, B2.Value)
FROM
A
LEFT OUTER JOIN
B B1
ON A.ID = B1.ID
FULL OUTER JOIN
B B2
ON B2.ID = B1.ID
WHERE...
August 1, 2012 at 1:34 am
polkadot (7/31/2012)
SELECT a.DayCount,
a.Sales,
SUM(b.Sales)
FROM Sales a
CROSS JOIN Sales b
WHERE (b.DayCount <=...
August 1, 2012 at 1:16 am
SELECT
CASE WHEN a.id IS NULL THEN b.id ELSE a.id END AS id,
CASE WHEN a.value IS NULL THEN b.value ELSE a.value END AS value
FROM (SELECT [id], [value]
...
August 1, 2012 at 1:12 am
This is looking for a decimal -->
cmd.Parameters.Add("@idcount", SqlDbType.Decimal);
You want to return a string.
cmd.Parameters.Add("@idcount", SqlDbType.VarChar, 22);
I'd like to suggest again that you talk to one of the more senior developers in...
July 30, 2012 at 6:54 am
Total guess, as I can't see the app code you have in front of you, nor the data, nor do I fully understand your requirements. You may be better off...
July 30, 2012 at 6:01 am
Lynn Pettis (7/27/2012)
July 27, 2012 at 3:46 am
OK, I built my own sample data.
SELECT TOP 4000000 CAST(NEWID() AS VARCHAR(36)) AS concatenateMe
INTO dbo.myTable
FROM master.sys.all_columns a, master.sys.all_columns b, master.sys.all_columns c
4 million rows.
Here's how we'll concatenate them the first time...
July 27, 2012 at 2:48 am
anthony.green (7/27/2012)
Thanks all.With John's solution the view complete its run in 7 minutes 7 seconds and didnt max out TempDB.
I have had to change Lynn's solution slightly
<snip>
Do me a favour...
July 27, 2012 at 2:16 am
dbasql79 (7/25/2012)
Can you please let me know how to use a picture for my profile.
I am looking to edit my account to use any picture. I cant...
July 26, 2012 at 2:13 am
Could be a constraint on the table.
July 26, 2012 at 2:03 am
Here's a bit less of a wordy solution.
First, your sample data: -
--Create your sample data
SELECT id1,exp1,result
INTO #tbl_expression
FROM (VALUES(1,'30 > 50',Null),(2,'70 > 50',Null),(3,'20 = 20',Null)
...
July 26, 2012 at 1:48 am
krishna.netblogs (7/26/2012)
I have to serach for a word from a table . I have used containstable() function , but not getting expected...
July 26, 2012 at 1:15 am
raghuldrag (7/25/2012)
Hi friends,I m write procedure for the problem is
<SNIP>
Hello and welcome to SSC!
I'd like to be able to help you, but it seems you've forgot to post readily...
July 26, 2012 at 1:06 am
From BOL: -
A computed column is computed from an expression that can use other columns in the same table. The expression can be a noncomputed column name, constant, function, and...
July 25, 2012 at 7:39 am
Viewing 15 posts - 571 through 585 (of 2,007 total)