Viewing 15 posts - 991 through 1,005 (of 1,228 total)
Jeff Moden (12/11/2010)
Digs (12/11/2010)
All I need is a guru to spend 1 sec of his...
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
December 11, 2010 at 12:38 pm
bickling77 (12/11/2010)
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
December 11, 2010 at 12:36 pm
Digs (12/11/2010)
I remember the more friendly days...I am sure as hell NOT doing home work, I am an old fart struggle with TSQL !:cool:Come on be kind !
Hey Digs, I...
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
December 11, 2010 at 12:30 pm
Thanks for being candid.
Try something like this to start:
SELECT p.*, '#' AS '#', s.* -- # is a 'wall' between s-columns and p-columns - a dev trick
FROM PROGRAM p
INNER JOIN...
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
December 11, 2010 at 11:34 am
Check out ROW_NUMBER() in BOL.
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
December 11, 2010 at 11:10 am
GilaMonster (12/11/2010)
ChrisM@home (12/11/2010)
What's surprising me, today, is the number of folks lurking in here - you're not all avoiding the Christmas crowds now are you?
Spent the morning doing a SAN...
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
December 11, 2010 at 11:08 am
Consuming the joins from the WHERE clause into ansi-style joins shows that your query will produce a cartesian product:
--CREATE VIEW PROG_LINEUP AS
SELECT DISTINCT
S.PROGTIME AS "SHOWTIME",
S.PROGNAME AS "PROGRAM TITLE",
C.CHNUM...
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
December 11, 2010 at 11:00 am
Craig Farrell (12/10/2010)
WayneS (12/10/2010)
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
December 11, 2010 at 9:52 am
ix_goog? Sounds familiar - take a peek at this[/url].
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
December 11, 2010 at 9:44 am
The source table is small (at this point, assume it will grow) so I'd do some preprocessing into a temp table then query from that, something like:
SELECT seq = ROW_NUMBER()...
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
December 11, 2010 at 7:05 am
Please provide ddl (CREATE TABLE...) script and dml (INSERT INTO...) script which when run will create and populate a table with a few rows of representative data.
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
December 11, 2010 at 6:09 am
mtillman-921105 (12/6/2010)
ChrisM@home (12/6/2010)
mtillman-921105 (12/6/2010)
ChrisM@home (12/6/2010)
Traitor.
Ha! 'Not sure what you mean by that. Traitor to FoxPro? If you mean FoxPro, I really liked it, but keeping a job...
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
December 6, 2010 at 2:30 pm
mtillman-921105 (12/6/2010)
ChrisM@home (12/6/2010)
Traitor.
Ha! 'Not sure what you mean by that. Traitor to FoxPro? If you mean FoxPro, I really liked it, but keeping a job using FoxPro...
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
December 6, 2010 at 1:44 pm
Traitor.
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
December 6, 2010 at 1:28 pm
You're checking the first six characters are digits, so why not:
WHERE LEFT(RCD.Variable4, 4) BETWEEN '5011' AND '7999'
which can potentially make use of an index?
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
December 6, 2010 at 12:49 pm
Viewing 15 posts - 991 through 1,005 (of 1,228 total)