Viewing 15 posts - 736 through 750 (of 1,246 total)
Thanks for the input guys its really appreciated (all be it I am a little...
April 27, 2017 at 12:40 pm
Try this... It's a liitle cumbersome and would benefit greatly from some proper indexes but it does apear to produce the desired results.
WITH
cte_RowsToKeep AS (
SELECT
c.clientid,
c.assessment_nbr,
c.begin_dt,
c.end_dt,
c.date_died,
KeepNum = MAX(c.assessment_nbr)...
April 25, 2017 at 11:08 am
Odds are you're just making it more difficult that it needs to be. First thing about SSRS is that there is no "report header" like there is with CR...
Before...
April 21, 2017 at 12:49 pm
btio_3000 - Thursday, April 20, 2017 2:48 PMBut col1 IS nullable, right? I am still not clear 🙁
You're using a table expression...
April 20, 2017 at 3:11 pm
It's using the datatype of Col1, same as it is for f1, f2 & f3.
April 20, 2017 at 2:40 pm
sgmunson - Thursday, April 20, 2017 10:48 AMThe Latin is actually Mea Culpa... fyi...
Good catch... Corrected. 🙂
April 20, 2017 at 12:59 pm
April 20, 2017 at 8:04 am
Please check out the following link...
April 19, 2017 at 11:18 am
Here's a slightly different way of producing the same results...
WITH cteDays(Schedule_Days) AS (
SELECT N FROM (VALUES (0),(1),(2),(3),(4),(5),(6)) AS X(N)
)
SELECT
t.ID,
April 17, 2017 at 8:37 pm
April 17, 2017 at 8:01 pm
April 17, 2017 at 8:00 pm
April 17, 2017 at 7:39 pm
Try this...
SELECT DISTINCT
td1.Id
FROM
#temp_data td1
WHERE
NOT EXISTS (
SELECT 1
FROM
#temp_data td2
WHERE
td1.Id = td2.Id
April 17, 2017 at 7:28 pm
Here is a different solution that can build the string with a single pass at the table... (making it @ 1/3 the cost of the 3 pass solution).
[code...
April 17, 2017 at 3:53 pm
Here's another set of options...
IF OBJECT_ID('tempdb..#Links','U') IS NOT NULL
DROP TABLE #Links;
CREATE TABLE #Links (
ClientRef INT,
LinkedClientRef INT
);
-- Create the data
April 12, 2017 at 11:02 am
Viewing 15 posts - 736 through 750 (of 1,246 total)