Viewing 15 posts - 3,196 through 3,210 (of 3,479 total)
How about a couple of things -- code we can read, and some sample data? (CREATE TABLE script(s) and INSERTs). And while I'm being demanding, how about an example...
January 9, 2014 at 1:20 am
Thanks for the ideas, everybody.
I got it to work, which is good, but I had to resort to <whisper>a dreaded cursor.</whisper> I know, it's a total cheat, but I'm...
January 8, 2014 at 9:28 pm
SELECT Contact_ID, Student_ID, Contact_txMail
FROM dbo.Contact
where Student_ID in ( select Enroll_status, Student_ID
from dbo.Student_Info
where Enroll_status = 'true');
So you only want a single record from Contact for each StudentID?
SELECT Contact_ID, Student_ID,...
January 7, 2014 at 4:52 pm
INTERSECT should be equivalent to INNER JOIN, as any non-matching values fall out of the result.
January 6, 2014 at 7:33 am
EXCEPT and INTERSECT were added in SQL2005.
January 5, 2014 at 11:11 pm
The other way to do it is to use a Matrix in SSRS. You could base your report on a stored procedure that accepts the date range you want...
January 5, 2014 at 7:31 pm
Grant Fritchey has posted at least a few database maintenance videos on YouTube. Definitely worth watching if you're not really comfortable with backup/restore. Absolutely something to practice at...
January 5, 2014 at 7:24 pm
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
Viewing 15 posts - 3,196 through 3,210 (of 3,479 total)