Click here to Skip to main content
15,893,588 members

Comments by mzrax (Top 27 by date)

mzrax 18-Jun-17 14:39pm View    
It's impossible to help me if you don't know what you're talking about.

Then how do you get the center point of a polygon from a query of selected points?
mzrax 25-Mar-14 21:54pm View    
digimanus

Thanks for that little bit. I was able to take what you wrote and modified it a little to work for me. thanks for that. Here's what I did.

case when (select dateadd(day,0,datediff(dd,0,dayworked)) from tblDaysWorked where .... ) is not null then 1 else 0 end

Now I'm still trying to figure out my grouping by. I think I'm going to have rewrite the pivot query.

Thanks again
mzrax 25-Mar-14 21:41pm View    
The print @DynamicPivotQuery command allows SQL Server users to see the SQL code in the Messages tab. It allows you to see what the full query looks like.
mzrax 24-Mar-14 22:35pm View    
The problem is that I'm using a dynamic pivot table because there's quite a few names and they change all the time based on the dates. Thanks though
mzrax 24-Mar-14 20:57pm View    
Thanks, I knew it was something like this but just wasn't able to figure out the part like what you did with ON t1.RowNo = t2.RowNo-1.

Thanks

M