Viewing 15 posts - 11,506 through 11,520 (of 15,381 total)
TheSQLGuru (6/22/2012)
Sean Lange (6/22/2012)
TheSQLGuru (6/22/2012)
Eugene Elutin (6/21/2012)
I cannot understand why would you need dynamic sql for statements there.
Why not to have the same stored procedures in every database and call...
June 22, 2012 at 12:57 pm
sunshine-587009 (6/22/2012)
June 22, 2012 at 12:50 pm
To be more descriptive in the normalization issues I figured I should explain what I mean.
You have a column Engineer. I assume this is the column that holds the name...
June 22, 2012 at 10:03 am
That is because your data is not normalized. You have multiple rows with the same part number but the description is different. If you had a parts table and this...
June 22, 2012 at 9:50 am
TheSQLGuru (6/22/2012)
Eugene Elutin (6/21/2012)
I cannot understand why would you need dynamic sql for statements there.
Why not to have the same stored procedures in every database and call them dynamic sql....
June 22, 2012 at 9:41 am
Shot in the dark...
WHERE Date_Used between @date1 and @date2
???
June 22, 2012 at 9:38 am
Lynn Pettis (6/22/2012)
Sean Lange (6/22/2012)
Lynn Pettis (6/22/2012)
I'm trying to decide if I should be happy or insulted, I mean really, Lynndrome? 😉 :w00t: 😛
I certainly hope you don't feel...
June 22, 2012 at 9:29 am
Lynn Pettis (6/22/2012)
I'm trying to decide if I should be happy or insulted, I mean really, Lynndrome? 😉 :w00t: 😛
I certainly hope you don't feel insulted!!! It just hit...
June 22, 2012 at 9:21 am
Lynn Pettis (6/22/2012)
Sean Lange (6/22/2012)
Lynn Pettis (6/22/2012)
Sean, why all the concatenation?
That my friend is a might fine question. 😛 Sometimes the keyboard starts before the brain kicks in.
Not only is...
June 22, 2012 at 9:17 am
Lynn Pettis (6/22/2012)
Sean, why all the concatenation?
That my friend is a might fine question. 😛 Sometimes the keyboard starts before the brain kicks in.
Not only is your solution cleaner it...
June 22, 2012 at 9:12 am
OK I modified your ddl a little bit so the sample data will work.
CREATE TABLE #mytable
( ID INT ,
Product Char(50),
Sum INT,
YearValue INT,
MonthValue INT
)
INSERT INTO #mytable
(ID, Product, Sum, YearValue, Monthvalue)
SELECT '4','Green','1000','2012','2'...
June 22, 2012 at 9:04 am
Sachin 80451 (6/22/2012)
( ID INT IDENTITY(1,1) PRIMARY KEY CLUSTERED, ...
June 22, 2012 at 8:57 am
where Num % 1 <> 0
OK I am done now...otherwise we are going to start into completely ridiculous string manipulation. 😉
June 22, 2012 at 8:53 am
Or a better twist on mine than casting to an int.
select * from Nums
where Num <> floor(Num)
June 22, 2012 at 8:48 am
LOL got distracted while posting, seems Lynn beat me to the punch with a different approach to the same thing.
June 22, 2012 at 8:46 am
Viewing 15 posts - 11,506 through 11,520 (of 15,381 total)