Viewing 15 posts - 46 through 60 (of 252 total)
Actually, MAX can be used in this case to eliminate NULL values, as well; since NULL represents unknown data, using MAX eliminates NULL, as the MAX is either a NULL...
July 15, 2014 at 8:17 am
It seems like you're wanting to copy the non-NULL values for any given SKU into the NULL values, correct? If so, this should do it:
;WITH NullFill(SKU,FillPrice,FillCost,FillSalePrice) AS(
SELECT VendorSKU,MAX(Price)AS Price,...
July 14, 2014 at 2:44 pm
I'll definitely echo Sarah's thanks to the contributors in the community :-D. I barely knew anything beyond the basics of SQL when I graduated from college and landed my...
July 1, 2014 at 7:31 am
Sean Lange (6/30/2014)
Andrew Kernodle (6/30/2014)
Access may well be a more workable solution, then, provided the DBAs aren't overwhelmed presently. ...
June 30, 2014 at 10:44 am
Ah, gotcha! That changes things up a good bit :-).
Access may well be a more workable solution, then, provided the DBAs aren't overwhelmed presently. Pass-through queries are literally...
June 30, 2014 at 9:55 am
Hrm. My previous employer used Access for its operations and later scaled up to SQL Server, with Access remaining as the front end. It worked, but there's some...
June 30, 2014 at 9:16 am
Aha! I was fumbling with trying to come up with some sort of aggregate to avoid a double-pass on the table, but I couldn't figure it out. I'll...
June 26, 2014 at 3:23 pm
May well be a more efficient way to do this, but here's a shot!
select marker from TEMP_A
WHERE val = 'Y'
EXCEPT
SELECT marker FROM TEMP_A
WHERE val = 'N'
June 26, 2014 at 2:39 pm
Lynn Pettis (6/24/2014)
Andrew Kernodle (6/24/2014)
Table variables don't have...
June 24, 2014 at 3:13 pm
I don't believe that table variables are set to be deprecated, though they do have different use cases than, say, a temp table.
Table variables don't have optimization statistics on them,...
June 24, 2014 at 2:48 pm
I can see something that may work on the sample data; please be sure to test this for correct results in your environment, however!
DECLARE @EmployeeMax int = (SELECT COUNT(EmployeeID) FROM...
June 23, 2014 at 12:53 pm
That sort of syntax is denoting that a parameterized stored procedure plan was used to run the query; the (@_no_akaun nvarchar(4000)) bit indicates that the procedure was called with a...
June 19, 2014 at 3:17 pm
Oh, quite so. Fortunately, the business realizes its current means of functionality are unsustainable; the unfortunate part is that they don't want to do anything about it, because it...
June 18, 2014 at 1:43 pm
GilaMonster (6/17/2014)
Andrew Kernodle (6/17/2014)
But technically, I've gotten leave time in both DBA jobs I've had so far; I've just not been allowed to use it.
That's the same as...
June 17, 2014 at 1:13 pm
GilaMonster (6/17/2014)
Andrew Kernodle (6/17/2014)
Beatrix Kiddo (6/17/2014)
Andrew, how do you cope with no annual leave? (If that's not too personal.)
Simple! No job I've ever held so far has allowed me...
June 17, 2014 at 12:26 pm
Viewing 15 posts - 46 through 60 (of 252 total)