Viewing 15 posts - 1,276 through 1,290 (of 3,489 total)
I agree with the "do something that's engrossing that's totally outside of work" - I did that and it kept me sane. Work was crazy, so I'd spend like 15...
May 17, 2018 at 12:38 pm
if you look in a phone book for everybody with "S" as the second letter of their last name, an index is meaningless, because a phone book is organized alphabetically....
May 17, 2018 at 11:22 am
I really shouldn't take the bait...
If you create the prerequisites table, this isn't too hard. I still am not totally clear on how you group ORs. How would...
May 16, 2018 at 2:31 pm
Re-reading my question, you're right... that's not answerable as stated. I'm doing this in PowerBI / DAX, so I have a simple star schema with Customers and Sales ...
May 12, 2018 at 4:37 pm
Henric,
Nice post for a rookie. Welcome to SSC. Here's a script to create the table and populate it with some data... I added a few extra records to make...
May 3, 2018 at 10:43 pm
LOL. I just did that yesterday... except it was above my head.
April 27, 2018 at 4:00 pm
Maybe use a Matrix? hard to say without more details or a dummy dataset.
April 27, 2018 at 3:32 pm
...and post the CREATE TABLE script for the 'PersonalProfiles' table... just want to make sure that you've defined the columns properly. Using the wrong datatype could cause unexpected results.
April 26, 2018 at 5:07 pm
April 26, 2018 at 3:48 pm
One way to do this is to use a Calendar table, then you can filter for Month/Year.
Otherwise, you'd have to use something like:
WHERE [EventDate] >= '01-Jan-2018'...
April 24, 2018 at 4:33 pm
you never check the destination table for existing records. Why not?
April 22, 2018 at 2:47 pm
This should give you a start (although you might need a Calendar table to join to so you can PARTITION wherever you want.)
https://blog.bertwagner.com/heres-a-quick-way-to-generate-a-running-total-in-sql-server-f5654d310030
April 21, 2018 at 5:09 pm
April 17, 2018 at 6:50 pm
You'd just wrap this part in the INSERT statement:
SELECT *
FROM Ranked
WHERE Ranked.Rnk < 4
ORDER BY Ranked.StoreNo,
Ranked.Rnk DESC
(well, you'd have to expand the *...)
April 4, 2018 at 6:37 pm
Viewing 15 posts - 1,276 through 1,290 (of 3,489 total)