Viewing 15 posts - 226 through 240 (of 3,489 total)
Care to explain? What do you get when you run it? Works for me.
Be specific. Show what you get.
March 23, 2023 at 8:06 pm
Can't fix code we can't see. Can you post the CREATE TABLE and then CREATE INDEX scripts?
March 20, 2023 at 4:17 am
have you read Itzik Ben-Gan's "T-SQL Querying" yet? (And it's not a book you just read. You read, and write and run queries on the sample database). Then once you...
March 19, 2023 at 2:12 pm
Nerd topics are an interesting "place" to learn to write better. I remember several years ago revisiting a question that I first came upon when I was using Access (before...
March 15, 2023 at 11:31 pm
Oh, like that! I was going to say this question reminded me of the "Which pilots can fly all the planes in the hangar?" question from SQL for Smarties (I...
March 14, 2023 at 2:48 am
CREATE TABLE and INSERT scripts?
Wouldn't you have to "explode" the kits so that they return their component parts and union that with the non-kit records, and finally sum that? Or...
March 12, 2023 at 5:20 pm
I'd think this is such a bread and butter kind of thing that HR has to do that someone has already written an application that does this. And since they...
February 24, 2023 at 6:06 pm
0 PRECEDING?
isn't that CURRENT ROW? Doesn't matter to me, but if you can write the query in a standard way, it's easier for people to understand what your code is...
February 23, 2023 at 5:17 pm
Maybe I'm just not seeing it. Are you just trying to create a running total?
You need a windowing function to do that...
SELECT trID,
DiffAmt,
rt = SUM(DiffAmt) OVER (ORDER...
February 23, 2023 at 12:39 am
Could you move a little? I can't see the actual stored procedure.
No, really. Post the code for it. Or did you intend for a game of pin the tail on...
February 20, 2023 at 6:16 am
If you created a running total of hours using a windowing function, then you should be able to tell when an employee is into overtime hours. So if you had...
February 20, 2023 at 1:55 am
Oh okay. Thanks, Grant. At least it's a place to start!
And no DAX required! =)
February 14, 2023 at 6:47 pm
Oh, super cool!!! I guess I'll look around for tutorials on it. You wouldn't happen to know any, would you? (Check learn.microsoft etc?)
February 14, 2023 at 4:29 pm
Can you use this logic to unpivot that part? (so you get a column for each)
=IIF(Parameters!IncludePTO.Value=1,IIF(Sum(Fields!strCategory.Value="Payrole", CInt(Fields!mnyMTDActual.Value)
+
IIF(SUM(Fields!strCategory.Value="OT",Cint(Fields!mnyMTDActual.Value)
+
IIf(Sum(Fields!strCategory.Value="PTO",CInt(Fields!mnyMTDActual.Value)
,IIF(Sum(Fields!strCategory.Value="Payrole", CInt(Fields!mnyMTDActual.Value)
+
IIF(SUM(Fields!strCategory.Value="OT",Cint(Fields!mnyMTDActual.Value)
February 14, 2023 at 2:17 am
Viewing 15 posts - 226 through 240 (of 3,489 total)