Viewing 15 posts - 42,901 through 42,915 (of 59,098 total)
If it's possible to have 1 comment per assessment, or not, you can easily get away with not having a comment table. If you can have more than one...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2009 at 1:04 am
Since you're formatting data, let's throw in right-justification, as well...
STR(ISNULL(SUM(QuantityOutstanding),0),10,2) AS Quantity
The key is that this type of formatting should be left up to the GUI, if you have one,...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2009 at 12:59 am
Ummmm.... now that I think about it, there's some new (new in 2k5) system view that actually gives you the correct number of rows for any given table without having...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2009 at 12:53 am
AShehzad (7/20/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2009 at 12:51 am
Vinoo (7/19/2009)
GilaMonster (7/18/2009)
Did you change the names to obfuscate things, or are the columns really called that?
How does that matter to solve the problem? you can have any name for...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2009 at 12:47 am
Maybe it's just a bit late for me but I'm thinking you're going to have to explain the mapping on that one just a wee bit more than you have....
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2009 at 12:42 am
AShehzad (7/19/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2009 at 12:37 am
Shuaib (6/25/2009)
I have a comma delimited values and I want to split this values into mulitple columns. Can someone share the idea / scripts?
Ex
Input
@v-2 = 'A,B,C'
Output
Col1 ...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2009 at 12:10 am
ab5sr (6/25/2009)
I'd look at the split method in .Net to create an array for this. Otherwise you might get stuck with some cheesy TSQL string manipulation.
I know this is an...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2009 at 12:06 am
ps (6/22/2009)
Well, Jeff's queries are like that, Rocket speed execution. 😀
:blush: Thanks, Pradeep. :blush: That's an awfully nice compliment especially coming from someone like you.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2009 at 12:02 am
So I say to the doctor, "Doc, when I hold my arm up like this, it hurts." Doctor says, "So don't do that."
Being that this is SQL Server 2000...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 19, 2009 at 11:56 pm
Ummmmm.... be careful folks. If you don't run DBCC UPDATEUSAGE(0), you can get some seriously incorrect information. I'll try not to bad mouth the cursor/loop solutions on this...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 19, 2009 at 11:47 pm
Lookup "Expanding Hierarchies" in SQL Server 2000 Books Online.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 19, 2009 at 11:25 pm
Provided that you will always have a 2 digit month and a 2 digit year, all you have to do is flip the MMYY to YYMM, add the DD part...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 19, 2009 at 11:23 pm
Thought I'd "bump" this for you... do you still need help on this?
--Jeff Moden
Change is inevitable... Change for the better is not.
July 19, 2009 at 11:11 pm
Viewing 15 posts - 42,901 through 42,915 (of 59,098 total)