Viewing 15 posts - 1,906 through 1,920 (of 4,087 total)
February 2, 2017 at 2:42 pm
Shoudlnt that be a temp table...
February 2, 2017 at 2:26 pm
I'm guessing (because you didn't provide sample data and expected results).
SELECT DISTINCT
CK.PRIMARY_ID AS 'TID',
P.NAME AS 'Name 1',
A.NAME AS 'Name 2',
T.CHANNEL AS 'Channel',
February 2, 2017 at 2:16 pm
February 2, 2017 at 1:54 pm
JALLY - Thursday, February 2, 2017 12:53 PMThanks everyone,I figured it out and used a while loop in a cursor.
Thanks
Cursors tend to...
February 2, 2017 at 1:44 pm
February 2, 2017 at 1:21 pm
Your join is on PS.ProjectSafeguardID = S.SafeguardID, but your select is on S.ProjectSafeguardID. Change your join to PS.ProjectSafeguardID = S.ProjectSafeguardID.
Drew
February 2, 2017 at 11:20 am
February 2, 2017 at 11:07 am
Because of the GROUP BY, you cannot reference the Keyword field directly in your ORDER BY. This should work.
SELECT A.ImgName, A.ImgID
FROM Images A
February 1, 2017 at 4:07 pm
First, when posting code it REALLY helps if you use the SQL Code button to format your code.
You're using unnecessary WHILE loops. Get rid of them. The first...
February 1, 2017 at 12:38 pm
The documentation has an example on how to create a format file. You'll also need to use the -t option to change the delimiter to a pipe (from the default...
February 1, 2017 at 12:10 pm
February 1, 2017 at 11:28 am
The documentation on BCP is very good and BCP contains too many options for us to give you an intelligent response with so little information. I suggest that you Google...
February 1, 2017 at 11:21 am
I believe that this will work.
;
WITH event_pvt AS
(
SELECT t.eventdate, e.is_start,
CASE
WHEN e.is_start = 0 THEN 'N'
WHEN LAG(e.is_start, 1, 0) OVER(ORDER BY...
February 1, 2017 at 11:09 am
Viewing 15 posts - 1,906 through 1,920 (of 4,087 total)