Viewing 15 posts - 16 through 30 (of 3,396 total)
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
Martin,
have you read Joe Caserta's book on ETL (from the Kimball collection)? ISBN: 978-0764567575
I'm just trying to get my head around doing the ETL etc and building proper dimensional models...
September 9, 2024 at 6:53 pm
Okay, I got the "explode Starter ingredients" bit working, so now it's getting easier!
CREATE VIEW [dbo].[vwBaseIngredientRecipe]
AS
WITH cteRecipe(RecipeID, RecipeName, IngredientID, IngredientName, RecipeWeight)
AS (
SELECT
r.RecipeID
,r.[Recipe Name]
,i.IngredientID
,i.IngredientName
,ExpandedRI.RecipeIngredientWeight
FROM
/* non-Starter ingredients */
(SELECT...
August 27, 2024 at 4:32 pm
GENERATE_SERIES (Transact-SQL) - SQL Server | Microsoft Learn
Or of course you could search around on here. I know there are folks here that have built TVFs to generate series...
August 23, 2024 at 7:42 pm
Viewing 15 posts - 16 through 30 (of 3,396 total)