Viewing 15 posts - 1,621 through 1,635 (of 8,731 total)
Seems pretty clear:
You cannot use an aggregate in an expression used for the group by list of a GROUP BY clause.
Maybe you're trying to get the functionality...
January 25, 2017 at 2:10 pm
January 25, 2017 at 2:01 pm
Is Form.ID an nvarchar column or a numeric? If it's a numeric, why are you using nvarchar for the parameter?
The values in Qty.primaryanswer and WC.primaryanswer include the braquets? Or...
January 25, 2017 at 1:45 pm
You really don't want a multi statement table valued function. You want to use an inline table valued function. The difference would be huge in performance, over 200 times faster...
January 25, 2017 at 12:33 pm
Even better, make sure that you only have numbers.
SELECT
bestphone = CASE
WHEN MemberHomePhoneNbr LIKE REPLICATE('[0-9]',10) THEN MemberHomePhoneNbr
WHEN AlternatePhone LIKE...
January 25, 2017 at 12:24 pm
January 24, 2017 at 1:26 pm
I would take a shortcut for the tables and get the information that is already stored in SQL Server. Then I would just need to count the rows in the...
January 24, 2017 at 10:41 am
January 24, 2017 at 9:14 am
To simplify even more:
SELECT
ActiveProd = COUNT( CASE WHEN StatusID = 1 THEN ProdID END),
InactiveProd = COUNT( CASE WHEN StatusID = 2...
January 24, 2017 at 6:26 am
You need to be aware of the implications. Changing a stored procedure into a function might not work because functions are meant to return something (scalar value or table) while...
January 23, 2017 at 2:14 pm
January 23, 2017 at 6:44 am
January 23, 2017 at 6:34 am
Viewing 15 posts - 1,621 through 1,635 (of 8,731 total)