Viewing 7 posts - 1 through 8 (of 8 total)
DesNorton (3/3/2016)
DECLARE @SampleSize INT = 10;
SELECT *
FROM (
SELECT CUSTOMER_ID
...
March 3, 2016 at 8:26 am
pietlinden (3/2/2016)
SELECT [Name] AS TerritoryName
, t.TerritoryID
, tc.CustomerID
, tc.AccountNumber
FROM Sales.SalesTerritory...
March 2, 2016 at 12:37 pm
Thanks, Hugo.
For the 10 records, I am not looking for these to be ordered, so no critieria would apply. I only need 10 records for the customer regardless of...
March 2, 2016 at 9:00 am
Hey Phil - the source data doesn't seem to be in any particular order, just random...although it might be on date but it is not arranged by customer.
March 2, 2016 at 8:51 am
Sean Lange (2/24/2016)
jakebeliveau (2/24/2016)
tindog (2/24/2016)
SELECT NT_ID,
100 * Frequency / (SUM(Frequency) OVER ())...
February 24, 2016 at 8:52 am
tindog (2/24/2016)
SELECT NT_ID,
100 * Frequency / (SUM(Frequency) OVER ()) PercentageOfTotal
FROM ........
ETA: prefix...
February 24, 2016 at 8:35 am
tindog (2/24/2016)
Could you post some sample data please? Will be easier to help.Regards
Not A Gent
Hello tindog - I can't seem to upload any data so I could supply some examples...
February 24, 2016 at 8:24 am
Viewing 7 posts - 1 through 8 (of 8 total)