Viewing 15 posts - 4,696 through 4,710 (of 8,731 total)
The error is telling you everything you need to know.
Unclosed quotation mark after the character string '##OutputTable
Look for an unusual large string literal and define where you should add a...
July 16, 2015 at 9:38 am
You could change your nested query like this:
( select TOP 1
cast(f.valuestr as float) min_valuestr,
f.valuetime
from bvfindings f
where f.ObjectName = 'Hematocrit'
and f.sessionid = s.sessionid
and f.ValueTime > s.open_time
ORDER BY min_valuestr)
However, you...
July 16, 2015 at 9:34 am
Jeff Moden (7/16/2015)
July 16, 2015 at 9:23 am
Ok, so you want to change the whole streak and I only changed the month. This code will update the data correctly.
WITH CTE AS(
select * ,
...
July 16, 2015 at 9:15 am
Antares686 (7/16/2015)
July 16, 2015 at 8:33 am
Basically, what Sean said.
There's no option included in SSMS because most people won't delete rows older that a certain amount of time. There's also no standard on defining the date...
July 16, 2015 at 7:42 am
I'll just copy your SQL Fiddle code in here to make it clear for anyone that might have the same issue or want to add a comment.
CREATE TABLE [dbo].[SourceData](
...
July 16, 2015 at 7:08 am
Is this where you write "Thanks for the question"? 😀
Thanks for the question :hehe:
July 16, 2015 at 6:23 am
To change this into a procedure, read the CREATE PROCEDURE entry from BOL (Books OnLine).
To create the file, read about the bcp utility.
You could also create the file by using...
July 15, 2015 at 1:34 pm
Chris Wooding (7/14/2015)
Antares686 (7/13/2015)
Kutang Pan (7/10/2015)
SELECT
SUM(CASE WHEN Type = 4 AND STATUS IN (1, 2, 3) THEN Value ELSE...
July 15, 2015 at 1:28 pm
Wow, now they're asking how to code the examples from BOL. :hehe:
July 15, 2015 at 11:56 am
That seems very similar to the example in BOL for Specifying XPath-like column names
You could even google the query and you'd get the references. 😀
July 15, 2015 at 11:41 am
I'm not sure about what you're doing and I can't test it right now because I don't have SSMS installed in here. However, I'm wondering if you only use 1's...
July 15, 2015 at 11:15 am
You actually would need to divide your query as you're trying to create a relation between rows that are not related.
WITH AValues AS(
select a.id,
a.data,
ROW_NUMBER() OVER(ORDER BY a.id) AS rn
from a...
July 15, 2015 at 8:32 am
KGJ-Dev (7/15/2015)
When i see the table structure and question, i am also confused with the same questions. i still didn't get authorization to see the data. I...
July 15, 2015 at 8:14 am
Viewing 15 posts - 4,696 through 4,710 (of 8,731 total)