Viewing 15 posts - 16 through 30 (of 3,399 total)
Got some details? Like the parameter values you're trying to pass, the parameter definition, the stored procedure text, the related column types and sizes... you know, something so we can...
November 7, 2024 at 9:18 pm
Setup:
USE tempdb;
GO
drop table if exists #procvalues;
drop table if exists #deptvalues;
create table #Procvalues
(
PatID varchar(10)
,AcctID varchar(10)
,ProcDate date
);
create table #Deptvalues (
PatID varchar(10)
,DeptDate date
,Department varchar(10)
);
GO
Insert into #Procvalues
values
('1','28304','2021-01-21')
,('2','34893','2021-01-17')
,('2','33845','2021-01-19')
,('3','39483','2021-01-13')
,('4','39056','2021-01-25')
,('5','29112','2021-01-09');
Insert into #Deptvalues
values
('1','2021-01-21', 'Dept1')
,('2','2021-01-15', 'Dept3')
,('2','2021-01-18',...
November 6, 2024 at 3:10 am
Normally you use report parameters, kinda like you do in Abscess. Normally, you just include the parameters in your stored procedure...
CREATE PROC ReportSP
@StartDate DATE,
...
November 5, 2024 at 5:59 pm
Failed to find real location of C:\Program Files\Python310\python.exe
What's the path to the Python executable on your computer?
November 1, 2024 at 2:55 am
one way is to use a Calendar table (which could be overkill) so you know which weeks go together.
DATEPART(week,[date Column])
will give you the week of the year,...
October 26, 2024 at 3:15 pm
Johan,
Sorry for taking forever to get back to you, but I get it. It was pretty much what I expected. I need to use a cursor to loop over the...
October 22, 2024 at 9:02 pm
I think I understand what I did wrong.
Between Purchases and Usage is maybe an "allocation" table, where I allocate one or more "blocks" of ingredient to each "BakeEvent" (just another...
October 17, 2024 at 5:18 pm
Drew,
Okay, sorry, I'll bash that bit out in a little. I hope.. Just a lot going on right now.
October 16, 2024 at 6:31 pm
Oh, I think I get it. You're doing a running total of Purchased and subtracting a running total of Used. Easy enough. Where does the UnitPrice come into this? that's...
October 11, 2024 at 11:14 pm
Drew,
yes, I did. Sorry, just been doing other stuff. I'll go look at it and add questions to that one. Because I know I'm going to be confused.
Sorry about that!
Thanks,
Pieter
October 11, 2024 at 11:00 pm
Where is your question? Are you trying to determine if ProcessDate is between StartDate and EndDate?
October 2, 2024 at 3:54 pm
look up windowing functions. new since 2012 at the latest.
September 25, 2024 at 7:35 pm
if it's only one or two values, then I probably wouldn't use a lookup table. It would be simpler to just use a CASE statement, but if there are lots...
September 19, 2024 at 8:36 pm
thanks Martin. I'll probably just get a used copy. If I don't like it, I'm only out like $10.
September 10, 2024 at 9:08 pm
Where's your question?
Are you asking if there's a standard format for "AML" files? Are they XML? Is there an example of one somewhere?
September 10, 2024 at 5:48 am
Viewing 15 posts - 16 through 30 (of 3,399 total)