Viewing 15 posts - 6,496 through 6,510 (of 15,381 total)
tony28 (10/16/2013)
tony28 (10/16/2013)
It is possible that can...
October 16, 2013 at 8:41 am
John Mitchell-245523 (10/16/2013)
October 16, 2013 at 8:40 am
tony28 (10/16/2013)
Sean Lange (10/16/2013)
October 16, 2013 at 8:35 am
Junglee_George (10/16/2013)
That's why I have used @Hcodes for output parameter.
I want to pass the comma...
October 16, 2013 at 8:33 am
John Mitchell-245523 (10/16/2013)
SELECT @HCodes = DISTINCT...That should do it, shouldn't it?
John
That will only return the value of one row, not all rows comma separated.
October 16, 2013 at 8:30 am
Not entirely sure what you are trying to do here but you don't need an IF statement to do this type of thing.
See if this will get what you are...
October 16, 2013 at 8:00 am
What you have there is called a multi statement table valued function (MTVF). The performance of these can be a killer. Check out this post from Wayne Sheffield on the...
October 16, 2013 at 7:51 am
bcampbell-1136357 (10/15/2013)
October 16, 2013 at 7:37 am
Here is the query after some formatting.
IF @PeriodSelected IS NULL
AND @ExpenseType = 'Non Chargeable'
BEGIN
SELECT EC.EXPENSE_DESC
,SUP.SUPPLIER_DESC
,SUM((NL.BASEVAL) * CASE
WHEN CURR.RATE IS NULL
THEN 1
ELSE CURR.RATE
END) TOTALCLAIM
FROM VW_FACT_NLTRANS NL
INNER JOIN VW_DIM_EXPENSECODE EC ON...
October 16, 2013 at 7:30 am
dwain.c (10/15/2013)
Sean Lange (10/15/2013)
If you got your quote correct that person is moron.
Well now Sean, there was no reason to hold back because we're all friends here. Why...
October 16, 2013 at 7:20 am
Jeff Moden (10/15/2013)
Sean Lange (10/15/2013)
If you got your quote correct that person is moron.
Heh... if the quote is correct, then that "DBA" is more off than on, so stop insulting...
October 16, 2013 at 7:17 am
LoztInSpace (10/15/2013)
October 15, 2013 at 3:27 pm
SQLMaister (10/15/2013)
There is no benefit in using select count(1), Select Count(columnname) excludes NULL values, that is the intended purpose. Select count(*) is the most efficient and correct way.
Pretty broad brush...
October 15, 2013 at 3:10 pm
Antares686 (10/15/2013)
Charles Kincaid (10/15/2013)
What I would actually like to see is COUNT() to mean to count the number of rows.
I would like to only have to type COUNT() instead of...
October 15, 2013 at 3:07 pm
jbalbo (10/15/2013)
I have a provider table each with a unique OID
I want to do the following INSERT on each provider
Some will have them already but it willl just send...
October 15, 2013 at 2:40 pm
Viewing 15 posts - 6,496 through 6,510 (of 15,381 total)