Viewing 15 posts - 4,186 through 4,200 (of 10,144 total)
I've no idea what you mean - "update the Amount_Flag for same" means do nothing in English. Please provide an example.
August 12, 2013 at 1:04 am
Thanks Mr Sommarskog, that question came in after hometime.
It's good to see an "old master" at work here on ssc. I've been using your website - and recommending it...
August 12, 2013 at 1:00 am
SELECT
e.EmployerName,
super_userCnt = ISNULL(x.super_userCnt, 0)
FROM dbo.mytableEmployer e
LEFT OUTER JOIN (
SELECT
employerName,
super_userCnt = COUNT(*)
FROM employerSuper_Users
WHERE [Role] = 'Super_User'
GROUP BY employerName
HAVING COUNT(*) > 1
) x ON e.EmployerName...
August 12, 2013 at 12:54 am
A method I've used in the past is to restore elsewhere, remove the unwanted data from the restore, refresh indexes then use the restore to update live. With the relatively...
August 9, 2013 at 7:59 am
berniesprouster (8/9/2013)
Thanks for the suggestion. With that though, would I not have an issue if I needed to restore a particular customer's data from a point in time?
Is this a...
August 9, 2013 at 7:44 am
Sean Lange (8/8/2013)
August 9, 2013 at 7:28 am
berniesprouster (8/9/2013)
Regarding partitioning, I thought you were thinking of partition functions/schemes if all the data was...
August 9, 2013 at 6:52 am
dwain.c (8/9/2013)
ChrisM@Work (8/9/2013)
dwain.c (8/8/2013)
ChrisM@Work (8/8/2013)
Howard - the name of the guy made me chuckle, given the pidgin English 😀
I've been hearing a lot of Tok Pisin for the last...
August 9, 2013 at 6:23 am
Ed Wagner (8/6/2013)
August 9, 2013 at 5:14 am
T.Ashish (8/9/2013)
August 9, 2013 at 4:23 am
venkyzrocks (8/7/2013)
I'm sorry if the requirement was not clear.
I'll rephrase it :
The data is divided by Scenario : Jun (0+12) forecast and Actual.
And every Scenario will have a...
August 9, 2013 at 4:17 am
pdanes (8/9/2013)
ChrisM@Work (8/9/2013)
You're welcome Mr Danes. Assuming you're a taxonomist first and a programmer second, this is a fairly standard method to identify cardinality issues in a query.
No, actually I'm...
August 9, 2013 at 3:08 am
You're welcome Mr Danes. Assuming you're a taxonomist first and a programmer second, this is a fairly standard method to identify cardinality issues in a query.
Care to share the code...
August 9, 2013 at 2:11 am
Read the tables only once. Shamelessly nicked from both Scott's and Stefan's code:
WITH Preagg AS (
SELECT
x.Period,
c.CustomerID,
c.CustomerName,
ii.PartNumber,
SumPrice= SUM(ii.qty*ii.price),
SumQty= SUM(ii.qty),
SumValue= SUM(ii.qty*ii.price) / SUM(ii.qty)
FROM Customers c
INNER JOIN Invoices i...
August 9, 2013 at 2:05 am
One of the items (table sources) in your FROM list has two rows per single row in table Podrobnosti. Since there's no aggregation and all of the other tables are...
August 9, 2013 at 1:44 am
Viewing 15 posts - 4,186 through 4,200 (of 10,144 total)