Viewing 15 posts - 3,316 through 3,330 (of 3,484 total)
if you're not writing directly to the final table, you could use a SELECT DISTINCT instead of a plain SELECT and it would remove duplicates for you. It's more...
September 10, 2013 at 2:39 pm
he wasn't being snarky or anything like that.
he was just trying to point out that you need to provide enough information for the people here to understand your problem (your...
September 6, 2013 at 10:26 am
Could you post at least a partial table definition? It's hard to tell without an example.... so throw in a few insert statements too... enough so we know what...
September 6, 2013 at 2:50 am
If all you're looking at is fund prices over time, wouldn't that structure be more like this:
CREATE TABLE TickerPrice (
TickerID VARCHAR(10) NOT NULL,
SomeDate DATE NOT NULL,
...
September 5, 2013 at 11:28 pm
Good to know, because I almost did that. (See, some of us are still noobs making admittedly dumb mistakes...)
September 2, 2013 at 11:07 am
SQL Saturday is awesome! I saw Denny Cherry (covering for someone else) do a super basic presentation with his hands in his pockets the whole time. Saw Rick...
August 30, 2013 at 8:33 pm
Did you read Paul White's articles on the subject?
http://www.sqlservercentral.com/articles/APPLY/69953/
and
August 30, 2013 at 8:29 pm
Kevin,
I'm really good at making T-SQL mistakes. Is the presentation posted somewhere so I can learn from someone else's mistakes instead of just my own?
Thanks!
Pieter
August 28, 2013 at 9:06 pm
Just a thought... what if you used bcp or something to crank the resultset into either csv or Excel, and then used that as a source instead of the DB...
August 28, 2013 at 5:34 pm
Wouldn't you use JET4.0 instead of ACE? ACE is the filetype for Access 2007 and beyond.
August 28, 2013 at 4:18 pm
Cool! Thanks, Stefan!
Now to walk through it slowly (with the explanations) and see if I can learn to spot the pattern.
I think the fun part is the NOT EXISTS...
August 28, 2013 at 11:20 am
Here's a small subset of the data... that's actually intelligible. Apologies for any SQL errors.
CREATE TABLE #Course (
CourseID CHAR(7),
CONSTRAINT pkCourse PRIMARY KEY (CourseID));
CREATE TABLE #Prereq (
NextCourseID CHAR(7),
RequiresCourseID CHAR(7),
CONSTRAINT pkPrereq...
August 27, 2013 at 9:55 pm
I must have munged the SQL somewhere... it's not omitting the "next" courses for which a given student has some but not all of the prerequisites.
Here's the SQL I have,...
August 27, 2013 at 8:52 pm
okay, now to do something sane and create a subset of the two tables and make sure it works -- looks like it does, but I'm not sure yet. ...
August 27, 2013 at 10:33 am
So negate everything in parentheses, and then wrap a NOT around it (double negatives, my favorite!)
Makes sense... now, let me see if I can actually make it work!
Thanks!
August 26, 2013 at 8:48 pm
Viewing 15 posts - 3,316 through 3,330 (of 3,484 total)