Viewing 15 posts - 7,456 through 7,470 (of 10,144 total)
Try this:-
--Modified Bottom Select
SELECT
APP.ClientID,
APP.ReferralNumber,
APP.AppointmentDate,
ActualTime,
OneOfMissingRows = CASE WHEN f.Sequenceid IS NULL THEN 1 ELSE 0 END
--,GenHCPCode,RT.TeamCode,RT.SequenceID--,Count(*)
FROM dbo.vwBRSAppointmentsNPD As APP
LEFT OUTER JOIN SchemaBRS.AmsReferralTeam As RT on APP.ClientID=RT.ClientID and APP.ReferralNumber=RT.ReferralID
LEFT JOIN (
SELECT Sequenceid,...
September 7, 2010 at 5:58 am
Cast your IMAGE column to VARBINARY(MAX), which is compatible with DISTINCT and ROW_NUMBER().
See also http://msdn.microsoft.com/en-us/library/ms187993.aspx
September 7, 2010 at 4:02 am
Feature-packed and very readable article as always Paul.
It's a little like watching your favourite tv program - just as you're really getting into it, you reach the end and the...
September 7, 2010 at 2:56 am
ColdCoffee (9/6/2010)
Are we in for a Connect Item ?
Nope, it's an unsupported use of variable assignment which yields unpredictable results and has already been covered on the forum here.
The examples...
September 6, 2010 at 9:11 am
It's looking promising. I'd like to hear a few opinions from others first.
September 6, 2010 at 7:36 am
There's more:
DECLARE @s1 varchar(10), @s2 varchar(10)
-- '10__Jack'
SET @s1 = '10__'
SELECT @s1 = @s1 + Name--, @s2 = 'x'
FROM (SELECT ID = 1, Name = CAST('Sam' AS VARCHAR(10)) UNION ALL...
September 6, 2010 at 7:18 am
ColdCoffee (9/6/2010)
Oh Yeah, CM, i got it.. But why would Chunk 1 truncate the result first place ?
It doesn't look right to me either. Check these out:
DECLARE @s1 varchar(10), @Name1...
September 6, 2010 at 6:29 am
ColdCoffee (9/6/2010)
Chris Morris-439714 (9/6/2010)
--SQL 3(use 2 variable together,the same results)
SELECT @s1 = '10_45', @s2 = '20_45'
SELECT @s1 = @s1 + NAME--, @s2 = @s2 + NAME...
September 6, 2010 at 6:13 am
Try this, CC:
--SQL 3(use 2 variable together,the same results)
SELECT @s1 = '10_45', @s2 = '20_45'
SELECT @s1 = @s1 + NAME--, @s2 = @s2 + NAME
FROM ( SELECT...
September 6, 2010 at 5:58 am
ColdCoffee (9/6/2010)
Chris Morris-439714 (9/6/2010)
What exactly do you find strange?Chris, even in the first try i dint find anything strange.. Execute them, u will find it strange..
Must be monday morning effect...
September 6, 2010 at 5:32 am
What exactly do you find strange?
September 6, 2010 at 5:08 am
-- create a sample table, correcting typos in column names and values
DROP TABLE #Rose
CREATE TABLE #Rose (Branchname VARCHAR(20), [status] CHAR(1), amount INT)
INSERT INTO #Rose (Branchname, [status], amount)
SELECT 'London', 'A', 100...
September 6, 2010 at 4:30 am
ekknaveen (9/3/2010)
Lowell, Same problem I am facing when trying to insert 1 month data I am getting duplicate records. Can you tell me how to overcome this?Naveen
Read about sequential tables...
September 3, 2010 at 5:03 am
You have forgotten to describe the problem.
September 3, 2010 at 3:31 am
Here's some more helpful advice to go with Dave B's.
The part you are commenting out is a query which can be run in isolation from the rest of the query....
September 3, 2010 at 2:55 am
Viewing 15 posts - 7,456 through 7,470 (of 10,144 total)