Viewing 15 posts - 3,121 through 3,135 (of 3,396 total)
But what if it's a Babelfish and I need it to speak T-SQL?
January 2, 2014 at 8:22 pm
Jeff,
I think that's how I got the random number of records per enrollment so that the distribution is irregular. I noticed that Chris's code returns the same number of...
January 2, 2014 at 6:00 pm
Dwain,
Okay, must be that the candy canes and eggnog are working... This seems to work okay, and pretty quickly (haven't tested it, but it's less than a second to...
December 31, 2013 at 8:19 pm
nevermind...
Are you looking for a crosstab? I'm just not very clear on your requirements.
December 28, 2013 at 5:00 pm
I Grouped by X and then added a couple of columns and dropped the fields into the grid.
=Min(Fields!X.Value,"DataSet1")
=Max(Fields!X.Value,"DataSet1")
No idea where SUM fits into this... I didn't need it.
For grins I...
December 25, 2013 at 9:31 pm
If you wanted to store NULL and a DATE value, then it would be trivial. What's the point storing ''? Is that not the same as Null (unknown)?...
December 25, 2013 at 8:57 pm
CI = Clustered Index (one per table, determines storage order)
NCI = Non-Clustered Index
December 25, 2013 at 2:47 pm
Your field sizes and some of the types are a bit over the top.
DOB NVARCHAR(50)? Makes doing date math really hard.
ID NVARCHAR(50)? Can't you use an...
December 23, 2013 at 8:35 pm
Okay, thanks for the clarification. I'll post again if I can't figure something else out about the solution.
December 22, 2013 at 11:26 pm
Dwain,
First off, thanks for taking the time to crank that out... Of course, it'll take me a while to figure it out!!!
The grades are from the National Institute of Health...
December 22, 2013 at 10:35 pm
I can generate purely random records really easily. TOP (@N) ... ORDER BY CHECKSUM(NewID)
The really hard part (for me!) is fixing my code so that as the grade increases,...
December 21, 2013 at 8:29 pm
Here's one idea... definitely don't take any data that could be construed as belonging to your employer, but if you develop a solution, there's no reason you can't keep a...
December 21, 2013 at 6:07 pm
You might want to read Ralph Kimball's The Data Warehouse Toolkit. (Or at least have a look.) It's not as scary as it sounds, really. He explains...
December 21, 2013 at 3:19 pm
Well, at least you have a reason for your brain not working!
Yes... you have it right. Think of a patient receiving cancer treatments. He will receive treatments and...
December 21, 2013 at 8:32 am
Dwain,
Good to have a definitive answer. Thanks! Looks like I need a good reasonably simple tutorial on CROSS APPLY. I guess I could start with Paul White's...
December 20, 2013 at 8:28 pm
Viewing 15 posts - 3,121 through 3,135 (of 3,396 total)