Viewing 15 posts - 1,201 through 1,215 (of 3,957 total)
davoscollective (11/5/2013)
November 5, 2013 at 1:17 am
Jeff Moden (11/5/2013)
dwain.c (11/5/2013)
For what it's worth, I'm in favor of a selective culling of the gene pool. 😛
I assure you, it's just words from some serious pent up frustration...
November 5, 2013 at 1:13 am
For what it's worth, I'm in favor of a selective culling of the gene pool. 😛
November 5, 2013 at 12:17 am
Jeff Moden (11/4/2013)
dwain.c (11/4/2013)
Jeff Moden (11/4/2013)
shashianireddy (11/4/2013)
sql 2008 version ,,nvarchar(MAX)
You're using NVARCHAR(MAX) for a housenumber???? In SQL Server 2008???? Why?????
You probably don't release it but you cannot rebuild a...
November 4, 2013 at 11:24 pm
Jeff Moden (11/4/2013)
shashianireddy (11/4/2013)
sql 2008 version ,,nvarchar(MAX)
You're using NVARCHAR(MAX) for a housenumber???? In SQL Server 2008???? Why?????
You probably don't release it but you cannot rebuild a clustered index in...
November 4, 2013 at 11:00 pm
rlindstrom 38273 (11/4/2013)
There are no Null activity dates. I'm trying to match product codes that have no activity, essentially building that list through the query.
The RIGHT JOIN to the...
November 4, 2013 at 7:56 pm
I can't get to the SQL Fiddle page but I can say that the BETWEEN clause suggested in the below query is not a suggested best practice when evaluating for...
November 4, 2013 at 7:45 pm
Keith Tate (11/4/2013)
November 4, 2013 at 7:35 pm
Here are 2 ways that are essentially identical:
WITH SampleData (houseno) AS
(
SELECT '3-13-1'
UNION ALL SELECT '3-13-3/a'
UNION ALL SELECT '3-13-3/b'
...
November 4, 2013 at 7:30 pm
Sheet1 (referenced as Sheet1$) is the default name for a worksheet in Excel.
Are you sure that you did not rename that worksheet to something else?
November 4, 2013 at 7:06 pm
Try moving HAVING to after GROUP BY.
November 3, 2013 at 7:03 pm
Chrissy321 (10/31/2013)
Thank you both (and Dwain)!
I'd have to say that's about the least work I ever had to apply to a forum question to get a thank you.
But you're welcome!
November 3, 2013 at 6:58 pm
Depending on what you want to retrieve from the selected row, you may want to consider doing it like this:
SELECT DocumentNum, LineNum, VersionNum, CustomerNum
FROM
(
SELECT DocumentNum, LineNum,...
November 3, 2013 at 6:02 pm
Perhaps something like this:
WITH SampleData (cust_string) AS
(
SELECT '11-12 Midwest Plumbers 099'
)
SELECT cust_string, EffectiveYears, CustNo
,CustName=SUBSTRING(
cust_string
...
November 3, 2013 at 5:51 pm
Not sure if this is still helpful but here's a pretty straightforward way to convert YYYYMM to a DATETIME:
DECLARE @YYYYMM VARCHAR(6) = '201203';
SELECT CAST(STUFF(@YYYYMM + '-01', 5, 1, '-') AS...
November 3, 2013 at 5:31 pm
Viewing 15 posts - 1,201 through 1,215 (of 3,957 total)