Viewing 15 posts - 3,346 through 3,360 (of 4,085 total)
aitchkcandoo (1/20/2012)
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 23, 2012 at 7:57 am
CELKO (1/20/2012)
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 23, 2012 at 6:59 am
kevmck (1/20/2012)
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 20, 2012 at 1:25 pm
Fahey's logic above is what I used in coding my response, since that is how ages are typically calculated and age was specifically mentioned.
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 20, 2012 at 1:13 pm
aitchkcandoo (1/20/2012)
select fname
,lname
...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 20, 2012 at 1:08 pm
I think that part of the problem is your database design. It sounds like your problem should be implemented using the geometry data type which has methods specifically to...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 20, 2012 at 11:17 am
You just use a CROSS APPLY and replace the variable name with the column name.
SELECT *
FROM YourTable
CROSS APPLY (
SELECT c.value('b[1]', 'varchar(10)'), c.value('c[1]',...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 20, 2012 at 8:48 am
I think the actual problem is the PRINT command. PRINT will only show a certain number of characters (I forget the number) and it sounds like you may have...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 20, 2012 at 8:29 am
This should work.
select fname
,lname
,ssn
from ( select fname
...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 20, 2012 at 7:50 am
Your XML is mal-formed. XQuery requires a single root element, which yours doesn't have and the end tag for your <C> element doesn't match. I've corrected the XML.
DECLARE...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 19, 2012 at 1:46 pm
Lowell (1/17/2012)
--elapsed time/datediff
select [Years] = datediff(year,0,ET-ST)-1,
...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 19, 2012 at 7:52 am
I think this will give you what you are looking for. It depends on the fact that the variables are set in left to right order. You can...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 19, 2012 at 7:41 am
Sean Lange (1/18/2012)
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 18, 2012 at 1:55 pm
You have a value for BID in your C table that doesn't have a corresponding value for BID in your B table. The best way to resolve this is...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 18, 2012 at 12:16 pm
SQL Kiwi (1/12/2012)
What is exactly your point?
My point is that it's not only possible, but extremely likely to read your comments as recommending using an rCTE for new development for...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
January 12, 2012 at 12:38 pm
Viewing 15 posts - 3,346 through 3,360 (of 4,085 total)