Viewing 15 posts - 316 through 330 (of 3,475 total)
Is this a question lost in a time warp or something? SQL 2012 is lpretty much 10 years old and out of support or a while. So why would you...
July 8, 2022 at 9:52 pm
How long does it take? I'm just wondering, because this installer seems to park at the "loading..." screen forever and ever. (A good 10-15 mins?) Maybe i should start it...
July 7, 2022 at 3:22 pm
(Notes from the field: I worked in a place where they didn't know how to normalize... As a result, I was there for 8 months instead of maybe a week....
July 7, 2022 at 12:17 am
CAST('Action - 1. Analysing' AS DATE) END
'Action -1. Analysing' is a string that cannot be coerced to date. If that's supposed to be a column in your table, then wrap...
July 5, 2022 at 12:19 am
You mentioned a Fact table... you usually only have that kind of thing in a data warehouse. Where are you analyzing said data? Because the way you would answer this...
July 2, 2022 at 12:11 am
you need LEAD() to get the next row. See here
You'd put the PartNum in the OVER clause and then ORDER BY EffectiveDate
June 30, 2022 at 7:18 pm
Couldn't you just use NTILE() to split the file into a given number of pieces?
DECLARE @Tiles INT;
SELECT @Tiles = CEILING(COUNT(*)/10000)
FROM dbo.CovidData;
SELECT
bucketNo = NTILE(@Tiles) OVER (ORDER BY...
June 30, 2022 at 4:06 pm
If I were you, I would get out a whiteboard (or piece of paper) and draw / diagram this:
June 29, 2022 at 7:31 pm
views/stored procedures to hide columns from some users --Sure, you wouldn't let just anyone see a patient's Social Security Number, for example. If you did, and someone misused it, that...
June 23, 2022 at 10:13 pm
No problem. Just looking for general directions. I think I can figure the rest out myself. (Well, I hope I can!)
June 23, 2022 at 3:10 pm
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
Viewing 15 posts - 316 through 330 (of 3,475 total)