Viewing 15 posts - 9,661 through 9,675 (of 15,381 total)
6k rows is not really not that much to look through. Full Text indexing can make that sort of thing happen pretty fast.
--EDIT--
Seems that Anthony was quicker on the draw...
January 9, 2013 at 7:26 am
Going by the dictionary definition of age, "The length of time during which a being or thing has existed.", I have to say that negative age does not make much...
January 9, 2013 at 7:22 am
I want to Count the occurances of BOM_BAR_ID and summarize the PIECE_LENGTH per BOM_BAR_ID. I want all the like LENGTHS to be together. Each BOM_BAR_ID represents a piece of material...
January 8, 2013 at 3:13 pm
Actually I think that a negative age has some real value if you think of age not as only the age of a person. What you are calculating is the...
January 8, 2013 at 3:07 pm
Does this work?
ISNULL(YourDate, '2050-12-31')
January 8, 2013 at 2:45 pm
Cole.Mietzner (1/8/2013)
I found the issue. Thank you for your help. Was the Ascending Date issue. http://sqlinthewild.co.za/index.php/2011/03/22/statistics-row-estimations-and-the-ascending-date-column/
Glad you figured it out. I had a feeling it was stale statistics.
January 8, 2013 at 2:32 pm
mdsharif532 (1/8/2013)
SET @BIRTH_DATE = '1975-01-07'
SET @STPR_START_DATE = '2013-01-06'
SELECT DATEDIFF(YEAR, @BIRTH_DATE, @STPR_START_DATE)
Result: 38
SELECT DATEDIFF(YEAR, @BIRTH_DATE, @STPR_START_DATE) - CASE WHEN MONTH(@BIRTH_DATE)*100 + DAY(@BIRTH_DATE) > MONTH(@STPR_START_DATE)*100 + DAY(@STPR_START_DATE) THEN...
January 8, 2013 at 2:29 pm
Hi and welcome to SSC. In order to provide any help you need to first provide enough details so we know where to begin. You will need to post ddl...
January 8, 2013 at 12:22 pm
Estimated execution plans don't really help much. Performance problems can be difficult to determine the root cause. Are you running this query just like this or is it a stored...
January 8, 2013 at 12:19 pm
mdsharif532 (1/8/2013)
DATEDIFF(YEAR,P.BIRTH_DATE,STPRD.STPR_START_DATE) - CASE WHEN MONTH(P.BIRTH_DATE)*100 + DAY(P.BIRTH_DATE) > MONTH(STPRD.STPR_START_DATE)*100 + DAY(STPRD.STPR_START_DATE) THEN 1 ELSE 0 END AS AGE,
You really should look at the link I posted. It is simple,...
January 8, 2013 at 12:13 pm
mdsharif532 (1/8/2013)
declare @index integer
set @index = 1
DECLARE @C_YEAR VARCHAR(4)
SET @C_YEAR = 1995
DECLARE @TEMP_TOTAL TABLE
(
TERM_REPORTING_YEAR decimal(4),
TERMS_ID...
January 8, 2013 at 10:23 am
zulmanclock (1/8/2013)
January 8, 2013 at 9:50 am
There are tons of articles and forum posts around here. This is about the best in my opinion.
http://www.sqlservercentral.com/Forums/Topic796803-338-1.aspx
January 8, 2013 at 9:42 am
PiMané (1/8/2013)
Sean Lange (1/8/2013)
January 8, 2013 at 9:37 am
PiMané (1/8/2013)
Sean Lange (1/8/2013)
This returns the same thing.
select *
from seats s
join seats2 s2 on s.ID =...
January 8, 2013 at 8:10 am
Viewing 15 posts - 9,661 through 9,675 (of 15,381 total)