Viewing 15 posts - 5,191 through 5,205 (of 15,381 total)
Something like this maybe?
update a
set JusticeID = j.JusticeID
from Justice j
join Attendee a ON a.JusticeLName = b.JusticeLName
Please note that I changed your aliases. It is not a good habit to...
April 14, 2014 at 2:17 pm
It is entirely unclear what you expect for output. What should the output look like (actual values) for the sample data you posted?
April 14, 2014 at 2:12 pm
Little Nick (4/14/2014)
YIPPIEEEEEEEEE. TQ SIR 😀
BUT...do you understand it? That by far is more important than the fact that it works. 😉
April 14, 2014 at 1:46 pm
OK so you can drop the tally table portion of my previous post and simplify it to this.
select Name, cv.CVID,
MAX(case when dr.DeclarationQuestionID = 9 then cast(answer as varchar) end)...
April 14, 2014 at 12:53 pm
Miller (4/14/2014)
I had to modify the BetterSplit a little: Switched to varchar(8000) instead of nvarchar(max) for list parameter. This needed to get good comparison between...
April 14, 2014 at 12:35 pm
OK I think I got it. You are going to need a tally table for this because you have missing data that you want to report.
BTW, you should stop using...
April 14, 2014 at 12:30 pm
Little Nick (4/14/2014)
To built column name and data, see below:-
1- Answer-Staff (9) is a DeclarationQuestionID=9 and Column is Answer
2- Response-Staff (9) is a...
April 14, 2014 at 12:20 pm
That does NOT help me understand what you want. I can't see your screen, I have no idea what datatypes are in your table, I have no idea what values...
April 14, 2014 at 12:11 pm
swoozie (4/14/2014)
Simple...
April 14, 2014 at 12:05 pm
You did a nice job posting ddl and sample data. However, once you got to the output it went awry very quickly. You have things like "Answer-Staff" , "Response-Staff". What...
April 14, 2014 at 12:01 pm
jbalbo (4/14/2014)
so this gives me the Client ID and the max Starttime for the client id using now()-80what I'd like to add is the RS.OID for that MAX Starttime
I...
April 14, 2014 at 11:51 am
HildaJ (4/14/2014)
It's all the transaction history that we have in our accounting system. After the selection, depending on the results return, there's another set of events that are happening...
April 14, 2014 at 10:21 am
jbalbo (4/14/2014)
But I really have my where clause screwed up !!!
sELECT distinct dbo.RECORDED_SERVICE.OID, MAX(dbo.RECORDED_SERVICE.STARTTIME) AS Expr1, dbo.SERVICE_ITEM.SERVICE_ITEM_DESCRIPTION, dbo.CostCenter.AbbrName,
...
April 14, 2014 at 10:13 am
Mark Eckeard (4/14/2014)
Keith,I'd like to see the actual SQL. That would allow me to conduct a more specific search within the app to (hopefully) find it.
Thanks,
Mark
I would...
April 14, 2014 at 10:01 am
Lynn Pettis (4/14/2014)
Sean Lange (4/14/2014)
Lynn Pettis (4/14/2014)
Sean Lange (4/14/2014)
Lynn Pettis (4/9/2014)
Sean Lange (4/9/2014)
Lynn Pettis (4/9/2014)
Well, looks like Sean and I have similar but different solutions.
Yes indeed. One suggestion I would...
April 14, 2014 at 8:15 am
Viewing 15 posts - 5,191 through 5,205 (of 15,381 total)