Viewing 15 posts - 1,126 through 1,140 (of 1,398 total)
Calling another procedure isn't returning data from the procedure.
The procedure being called might also return data. In this code test_proc1 calls test_proc2. Both procedures contain a single select statement. At...
February 28, 2020 at 5:08 pm
If a stored procedure calls another stored procedure doesn't it return data to the other procedure? The data returned would be via the input variables of the other procedure(s).
February 28, 2020 at 4:19 pm
Here's a simpler alternative to your query
select e.Clinic,ca.Area,
sum(case when ca.AreaVal = 'A' then 1 else 0 end) as A,
...
February 28, 2020 at 1:01 pm
It appears you have two different sets of information shoe-horned into the same table. Maybe the information was derived from base tables which are more straightforward to query? How is...
February 26, 2020 at 1:07 pm
Hey there... so further on down the road... I was wondering how the Calendar table was defined in this answer. Any help would be much appreciated. This thread explains the...
February 20, 2020 at 3:43 pm
In this thread:
The OP apparently was provided something that worked for SQL Server 2000. It doesn't look like it was posted tho.
February 20, 2020 at 2:13 pm
You're using 2008R2 and I don't think the daterange function I would use here goes back that far. There was a similar question asked a while back and another SSC...
February 20, 2020 at 2:03 pm
To split into days do you want to allocate evenly across all days or exclude weekends and holidays?
February 20, 2020 at 1:48 pm
;with
unpiv_cte as (
select
500100 Account, 2020 [Year],
100 Month1, 200 Month2, 300 Month3,...
February 20, 2020 at 1:46 pm
C4 returns no rows
February 18, 2020 at 9:45 pm
Could you please share the (appropriately quoted) insert statement from your original question?
February 18, 2020 at 8:39 pm
Could you share the (appropriately quoted) insert statement from your original question? You've asked a second question without having shared the solution to the original question. It's frustrating because we...
February 18, 2020 at 7:25 pm
I think you need a few functions for this solution. SCDecade almost had it right, to determine the @StartDate, try:
SET @StartDate = SELECT DATEFROMPARTS(@year, ((@QuarterID -...
February 17, 2020 at 9:29 pm
Ok cool
February 17, 2020 at 3:14 pm
Removed
February 17, 2020 at 3:13 pm
Viewing 15 posts - 1,126 through 1,140 (of 1,398 total)