Viewing 15 posts - 331 through 345 (of 3,479 total)
Okay, I think I get it. Thanks, Chris!
So I would have an Ingredient table (IngredientKey, IngredientSK, IngredientName, Category, UnitPrice, ActiveDate) and then use FILTER() and/or TOPN() to get the most...
June 22, 2022 at 4:59 pm
SELECT Location_ID, Location, SUM(TotalRate)
FROM <tableName>
GROUP BY Location_ID, Location;
June 17, 2022 at 7:15 am
Sorry, missed the n0t-so-fine print.
Not a clue about PostGRES. =(
June 13, 2022 at 6:43 pm
I'm pretty sure this is what you want. First, create the Supplier table with a primary key, and then reference that in the constraints of the Product table. (it's a...
June 13, 2022 at 3:52 pm
What's the best way to segregate the SSRS stored procedures from the rest, put them in their own schema, and then grant users execute on the schema? (and SSRS devs...
June 10, 2022 at 9:41 pm
The pictures don't help a whole lot. Sounds like all you need is a matrix visual, and regions on one axis, months on the other, and SUM([Quantity]) at the intersection.
June 2, 2022 at 8:03 am
What reporting tool are you using? How's your data structured?
If you're querying against a data warehouse, I'd probably use Excel, because it provides a relatively simple UI. you can use...
May 17, 2022 at 7:57 pm
I'd do this a bit differently. You need at least two tables. One for Customer, and the one you have above. (Preferably one more, that has details about what MatchTypeID...
May 6, 2022 at 2:40 am
Thanks Martin!, I'll have a look.
And I guess I have to dust off Ralph Kimball's book.
April 28, 2022 at 2:44 pm
Maybe
SELECT SubmissionGUID, QuoteStatus
FROM #Subs
WHERE SubmissionGUID NOT IN (SELECT SubmissionGUID
FROM #Subs
WHERE QuoteStatus = 1);
April 25, 2022 at 5:51 pm
keep only the previous day's data and replace the rest of its data with the subsequent current day's data.
DELETE
FROM MyTable
WHERE [DateColumn]<GETDATE()-1
INSERT INTO MyTable
SELECT ...
FROM OtherTable
WHERE [DateColumn] = GETDATE()
?
April 23, 2022 at 3:31 am
Maybe do the P*Q for the lowest priced fruits, sort that way, then do a running total. Filter for running total less than your threshold?
Why are you recreating tables all...
April 22, 2022 at 6:15 pm
This is not an answer factory. Crack open a textbook if need be and actually learn something for yourself. If you want answers without doing any work, open your wallet.
No...
April 20, 2022 at 7:19 am
Viewing 15 posts - 331 through 345 (of 3,479 total)