Viewing 15 posts - 8,311 through 8,325 (of 10,144 total)
Try this:
DECLARE @ReportId int, @ReportId2 INT
SET @ReportId = -- YOUR VALUE
SELECT Top 1 @ReportId2 = ReportId
FROM MaturitiesReports
WHERE [Report_Month] < (
SELECT [Report_Month]
FROM MaturitiesReports
WHERE [ReportId] = @ReportId)
ORDER...
December 22, 2009 at 7:58 am
Lynn Pettis (12/22/2009)
December 22, 2009 at 7:42 am
abcim (12/22/2009)
>> are the values of RowID unique within the tableNo
>> are they always unique within a single [ReportId]
Yes
Thanks. Last question, I think: for each RowID in the table Maturity_Detail,...
December 22, 2009 at 7:39 am
Cool - now the biggie: are the values of RowID unique within the table?
If not, are they always uniquewithin a single [ReportId]?
December 22, 2009 at 7:11 am
GilaMonster (12/22/2009)
Merry Christmas everyone.Since I didn't manage to finish the christmas scene for this year, have one from a couple years back.
It's a pretty picture - but many will feel...
December 22, 2009 at 6:58 am
abcim (12/22/2009)
Thanks52 Rows
Is this 52 weeks, or is the 52 just a concidence?
December 22, 2009 at 6:55 am
abcim (12/22/2009)
Thanks52 Rows
How many different values of RowID do you have?
December 22, 2009 at 6:54 am
abcim (12/22/2009)
December 22, 2009 at 6:41 am
Alvin Ramard (12/22/2009)
I'm about to go offline for the next week or two, so it's time to wish y'all a very Merry Christmas and a Happy New Year.🙂
Merry...
December 22, 2009 at 5:50 am
abcim (12/22/2009)
Are you sure (Good Catch)then why this works 100%,
DECLARE @a int
DECLARE @b-2 int
SELECT @a=1,@b=ISNUMERIC(@a)
SELECT @a,@b
You really don't want to use the "quirky update" trick for this
@ variable
Is a...
December 22, 2009 at 5:22 am
lmu92 (12/22/2009)
This would make the whole query much more readable and most probably would make it more...
December 22, 2009 at 4:52 am
abcim (12/22/2009)
I have the given SP which contains variables, but it never returns any rowsThe variables are necessary because they are used at different places.
@Difference will always return NULL
@Total2...
December 22, 2009 at 4:29 am
Even if there were a way to do this with any certainty (and reproducibility / reliability) without changing your table structure, why would you want to? If you can provide...
December 22, 2009 at 3:12 am
Ray K (12/21/2009)
Chris Morris-439714 (12/21/2009)
So what? We've known for years that the answer is 42.Yes, but what is the actual question? 🙂
Rumour has it that someone is deep in thought...
December 21, 2009 at 9:23 am
Viewing 15 posts - 8,311 through 8,325 (of 10,144 total)