Viewing 15 posts - 4,021 through 4,035 (of 5,504 total)
Doesn't look like a valid xml to me... Where are the closing tags for the various "field name" tags? And what would be your expected result?
Btw: whoever came up with...
March 9, 2010 at 4:07 pm
St. Lynn, OTD (Owner of the Tent in the Desert), HHG (Hula-Hippo-Guard)
March 9, 2010 at 3:58 pm
I frequently use three sources of knowledge (not limited to the stuff you mentioned):
BooksOnline (the SQL Server help system usually installed toegether with SQL Server), this site and a test...
March 9, 2010 at 3:49 pm
CirquedeSQLeil (3/9/2010)
Fantastic - now that we advertise for hair curlers, what will be next?
Seems like a spam mail for an Expedia site using random text passage from "somewhere" as the...
March 9, 2010 at 1:57 pm
Lynn Pettis (3/9/2010)
I think it's time for trip to the desert. Anyone care to join me? I'll put the hippo on a leash. 😛
May I join you? I'd...
March 9, 2010 at 1:52 pm
simflex-897410 (3/9/2010)
They said they are getting too many blank(null values) for the following fieldnames:ID number, Last and First Name, Defend Name, Hearing Type, Case Number, DA Number Event
Of course...
March 9, 2010 at 1:40 pm
Well, then the following should work:
(Side note: it still doesn't show P_ID 13 as ACTIVE though... 😉 )
;WITH cte AS
(
SELECT *, ROW_NUMBER() OVER(PARTITION BY P_id ORDER BY pri_key DESC)...
March 9, 2010 at 1:31 pm
Why do you consider OLD_PHONE = 6790 for P_ID =10 as being "old"?
Shouldn't 6790 and 64687 be switched?
March 9, 2010 at 1:19 pm
Looks like you're talking about the RunningTotal problem.
The best resource I found so far is the following article by Jeff Moden:
http://www.sqlservercentral.com/articles/T-SQL/68467/
Please read it carefully especially in terms of the required...
March 9, 2010 at 12:38 pm
lmu92 (3/9/2010)
Lynn Pettis (3/9/2010)
lmu92 (3/9/2010)
So, please follow Lynns advice and change the join fom INNER to LEFT OUTER.
I think you want a RIGHT OUTER JOIN the way the query is...
March 9, 2010 at 11:08 am
Lynn Pettis (3/9/2010)
lmu92 (3/9/2010)
So, please follow Lynns advice and change the join fom INNER to LEFT OUTER.
I think you want a RIGHT OUTER JOIN the way the query is currently...
March 9, 2010 at 10:45 am
So, please follow Lynns advice and change the join fom INNER to LEFT OUTER.
March 9, 2010 at 10:24 am
Next step:
Include one more table in your select:
SELECT DEP.*
FROM dbo.vwGJ1_APD GJ1_APD
INNER JOIN dbo.DefendantEventPros DEP ON GJ1_APD.DANumber = DEP.VBKey
WHERE (DEP.functionDate >= CONVERT(varchar(8), GETDATE(), 112)) AND (DEP.UserDelete = 0) AND...
March 9, 2010 at 10:09 am
RBarryYoung (3/8/2010)
March 9, 2010 at 10:07 am
I'm still not sure what the correct order of the subnumbers will be, but anyway, I'd use ROW_NUMBER:
DECLARE @tbl TABLE
(
bookingkey int null,bookingno int, itemno int, itemtype varchar(20)
)
insert into @tbl(bookingno,itemno,itemtype)
SELECT 1,...
March 9, 2010 at 10:04 am
Viewing 15 posts - 4,021 through 4,035 (of 5,504 total)