Viewing 15 posts - 1,276 through 1,290 (of 3,480 total)
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
One way of doing this is to wrap your query in a TOP predicate --- I'm using AdventureWorks2014 (because being able to test my answers hopefully keeps me from making...
March 28, 2018 at 7:19 pm
Just gonna throw this out there...
What if you created a few variables in your report and grabbed the population size from somewhere? Then you can just divide by that?...
March 28, 2018 at 2:21 pm
Maybe it's me, but I think the table design they gave you (if accurate) is horrible. Subjects are facts/information, and don't really belong in column names. Would be a lot...
March 28, 2018 at 11:41 am
NineIron - Wednesday, March 28, 2018 7:01 AMThanx but, I was hoping for something I can use as a field value.
You should...
March 28, 2018 at 7:04 am
Got lazy and used DelimitedSplit8K
SELECT TextTime
, ca.Item
, ca.ItemNumber
FROM
(SELECT '000.004.000' AS TextTime
UNION ALL SELECT '000.02.000'
UNION ALL SELECT '000.024.000') x
CROSS...
March 28, 2018 at 6:53 am
cor_dog, you can do all the DAX stuff in Excel, if you want. If you're lost, I would read Rob Collie's book. It's $30. If you're new to DAX, it's...
March 23, 2018 at 2:31 pm
Got some data? Sounds like a DAX question, but maybe I've been doing too much PowerBI.
Should be easy if you join your data to a Calendar table... then you...
March 23, 2018 at 1:17 pm
Here's an explanation of what a Tally or Numbers table is...
http://www.sqlservercentral.com/articles/T-SQL/62867/
March 23, 2018 at 11:01 am
Let me back up a step. if you want to identify a Shipment etc, you can use an AutoNumber primary key. Sure, they're meaningless, but you can have foreign keys...
March 23, 2018 at 12:03 am
Viewing 15 posts - 1,276 through 1,290 (of 3,480 total)