Viewing 15 posts - 4,396 through 4,410 (of 5,504 total)
charipg (1/28/2010)
selecting one greatest value from 3 coloumns in a table.?
Yes.
How about sample data including your current query as requested before?
January 28, 2010 at 1:10 pm
Sounds like homework.
If not, please provide sample data, expected result and what you've tried so far as described in the first link in my signature.
January 28, 2010 at 1:03 pm
The only place I can think of would be the transaction log file.
Other than that: AFAIK there is no hidden date recorded.
January 28, 2010 at 10:03 am
Gagne (1/28/2010)
January 28, 2010 at 9:31 am
@Lynn: you might want to prepare your tent to hold a bunch of people arriving shortly... 😉
Can we just stop by or do we need to show an invitation?
January 28, 2010 at 9:25 am
You'd need a CROSS APPLY against a table holding some numbers (aka Tally table - please see the related link in my signature).
Based on a tally table the code would...
January 28, 2010 at 9:22 am
Krasavita (1/28/2010)
RESPECT PEOPLE
You've crossed the line of professionalism twice already in this thread.
I strongly recommend to step back from the keyboard for a moment, take a deep breath and think...
January 28, 2010 at 9:13 am
sol.nt (1/28/2010)
I get from some sps which i can not sure what i will have, because they were written by many people.
sol
I don't understand the business case / concept....
Would you...
January 28, 2010 at 8:45 am
Maybe you can replace some views with CTEs / subqueries instead of having a view for each calculation.
For unit testing you could use the OUTPUT clause and store the results...
January 28, 2010 at 7:27 am
ColdPolarBear (1/27/2010)
January 27, 2010 at 4:55 pm
It's more an issue of CrossTabs or even DynamicCrossTabs.
I gues it can be done in CrystalReports, but I'm not sure (never worked with it...).
You might want to have a look...
January 27, 2010 at 2:54 pm
The result you get is exactly what you've been asking SQL Server to do:
select -- print the output
8 -- output is supposed to be the number "8". If you'd like...
January 27, 2010 at 1:55 pm
Glad it worked. 😀
Btw: Did you notice how I "translated" your "descriptive sample data" into ready to use SQL code?
If you provide data in such a format you'll increase the...
January 27, 2010 at 12:54 pm
Lynn Pettis (1/27/2010)
lmu92 (1/27/2010)
Seems like I totally missed the point. Sorry about that... :blush:
Okay, I'm lost on how you are lost. Please, what did you miss? It was...
January 27, 2010 at 12:46 pm
Seems like I totally missed the point. Sorry about that... :blush:
January 27, 2010 at 12:03 pm
Viewing 15 posts - 4,396 through 4,410 (of 5,504 total)