
28-Jul-2006, 08:36 AM
|  | Guest | | | | | | | | | | Re: Primary Keys Which says a bit more about you really.
David is not here to spoon feed you or anyone else, if he chooses not to
answer that is his prerogative. For you to make a totally unrelated Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/13100-primary-keys.html
conclusion from that shows either fallible logic on your part or a
determination to appear foolish.
-- Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13100
Terry Kreft
"Jamie Collins" wrote in message
news:1153141231.915566.175460@p79g2000cwp.googlegr oups.com...
>
> David W. Fenton wrote:
> > > Please do take the time take the time to enumerate the differences
> > > FOR JET
> >
> > No.
>
> I therefore conclude there are none.
>
> Jamie.
>
> --
>
Do share your immediate thoughts or reactions on this issue? We value your views! Login Now! or Sign Up Today! to share your views with us.. Gurfateh! | 
28-Jul-2006, 08:36 AM
|  | Guest | | | | | | | | | | Re: Primary Keys
David W. Fenton wrote:
> But it's still not a non-unique *index*. It's just a non-unique
> field participating in a compound index.
I can't make up my mind whether you are confused, deliberately trying
to confuse the point or just have a confusing way with the English
language .
I think I may have mislead you by this:
....
start_date DATETIME DEFAULT NOW() NOT NULL,
end_date DATETIME,
....
I intended for start_date values to have no time element and for
end_date to be one granule of time before the next contiguous time
duration i.e.
....
start_date DATETIME DEFAULT DATE() NOT NULL,
CONSTRAINT salary_start_date__closed_period
CHECK (
HOUR(start_date) = 0
AND MINUTE(start_date) = 0
AND SECOND(start_date) = 0
),
end_date DATETIME,
CONSTRAINT salary_end_date__open_period
CHECK (
HOUR(end_date) = 23
AND MINUTE(end_date) = 59
AND SECOND(end_date) = 59
), ...
not to mention constraints to ensure non-overlapping periods for the
same employee, contiguous periods, ensuring the salary amount changes
between contiguous periods, etc but I wanted to keep it simple.
I'll try and be clear: my aim is to create a clustered index on
start_date (rather than not creating a not non-unique index on nothing ).
To get a clustered index in Jet, I must leverage the PRIMARY KEY
syntax.
Defining a PRIMARY KEY *constraint* causes the engine to create a
(non-maintained) clustered *index*.
My start_date column has no time elements i.e. all start dates commence
at midnight, making it suitable for clustering.
My start_date column is not unique in the table because more than one
employee can start receiving a salary amount effective on the same day. Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13100 Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13100
To use start_date in the PK I need to append (i.e. to the right in the
PK definition) additional column(s) that will 'uniqueify' the
start_date column; this could be an autonumber column (if used) or
employee_number.
Beyond start_date it really doesn't matter which columns are included
as long as the compound is unique; put another way, I don't care that
the engine needs something as a 'tie breaker' for when the start_dates
coincide, I just want them to be clustered together.
I hope you can now understand my point and that any reply is a lot less
confused/confusing than your previous one.
Jamie.
-- | 
28-Jul-2006, 08:36 AM
|  | Guest | | | | | | | | | | Re: Primary Keys
Terry Kreft wrote:
> David is not here to spoon feed you or anyone else,
Hey, plenty of people come here to get spoon fed. Why not me ?
> if he chooses not to
> answer that is his prerogative.
Not replying is one thing but for him to post back to say he is not
going to answer me...?
> For you to make a totally unrelated
> conclusion from that shows either fallible logic on your part or a
> determination to appear foolish.
Terry, I'm merely suspicious of someone who repeatedly takes the time
to say (quote), "I'm not going to take the time to enumerate the many
differences."
I genuinely believe the man is bluffing. You no doubt recall the last
time we had this attitude from him
(http://groups.google.com/group/micro...9225a5a30a2caa)
i.e. he alludes that he 'knows something' but won't deign to post it.
I'm sure everyone knows I'm not afraid of being made to look foolish .
> Which says a bit more about you really.
I hope the message about me is, 'I will assert this position until
someone can show me I'm wrong.' Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13100
I don't think there is much credit in saying (paraphrasing), 'I know
you are wrong but I will not attempt to demonstrate it.' Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13100
Jamie.
-- | 
28-Jul-2006, 08:36 AM
|  | Guest | | | | | | | | | | Re: Primary Keys
Terry Kreft wrote: Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13100
> David is not here to spoon feed you or anyone else
Actually, rather than the flippancy of my original reply, I think I Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13100
should address that point.
I don't expect to be spoon fed, rather I would like people provide
something substantial (code demonstration, link to a MSDN article, etc)
to back up their assertions. I usually do so up front and always do so
when challenged, and humble pie is often dish of the day.
David has not even put up his short list, let alone tried to make it
stand up.
I'm put in mind of Fermat: "I have a truly marvellous proof of this
proposition which this margin is too narrow to contain."
Jamie.
-- | 
28-Jul-2006, 08:36 AM
|  | Guest | | | | | | | | | | Re: Primary Keys But that's David's choice whether he supplies that or not, you are free to
make any inference you like from his failure to reply but if you post that
inference then you leave yourself open to challenge. Your concluding remark
was not a reasonable conclusion from David's refusal to answer.
-- Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13100
Terry Kreft
"Jamie Collins" wrote in message
news:1153146556.387676.104580@h48g2000cwc.googlegr oups.com... Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13100
>
> Terry Kreft wrote:
>I would like people provide
> something substantial (code demonstration, link to a MSDN article, etc)
> to back up their assertions. I usually do so up front and always do so
> when challenged, and humble pie is often dish of the day.
>
> David has not even put up his short list, let alone tried to make it
> stand up.
>
>
> Jamie.
>
> --
> | 
28-Jul-2006, 08:36 AM
|  | Guest | | | | | | | | | | Re: Primary Keys Jamie Collins wrote:
> I genuinely believe the man is bluffing. You no doubt recall the last
Ummm, David Fenton bluffing? He very commendably doesn't stoop to flame
wars, so you must be talking about his Access/Jet/VBA knowledge. In Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13100Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13100
which case, all due respect to you, Jamie, I'm afraid I'd have to
conclude your belief is erroneous. 8)
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me | 
28-Jul-2006, 08:36 AM
|  | Guest | | | | | | | | | | Re: Primary Keys "Jamie Collins" wrote
> I genuinely believe the man is bluffing. You
> no doubt recall the last time we had this
> attitude from him Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13100
As Tim has said, "Your belief is erroneous." Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13100
David does not "tolerate fools gladly" and his words are sometimes sharper
than I might write, but he "knows his stuff" when it comes to Access and
Jet.
Larry Linson | 
28-Jul-2006, 08:36 AM
|  | Guest | | | | | | | | | | Re: Primary Keys "Terry Kreft" wrote in Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13100
news:ui7QTFcqGHA.3820@TK2MSFTNGP05.phx.gbl:
> But that's David's choice whether he supplies that or not, you are
> free to make any inference you like from his failure to reply but
> if you post that inference then you leave yourself open to
> challenge. Your concluding remark was not a reasonable conclusion
> from David's refusal to answer.
The reason I won't is that it would be rehashing material that's Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13100
been posted every time the topic of natural vs. surrogate keys has
come up. I don't see any point in posting something that would just
duplicate information that's been posted here dozens of times.
--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/ | 
Support Us! Become a Promoter! | | Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh! | (View-All)
Members who have read this thread : 0
| | There are no names to display. | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Tools | Search | | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is On | | | | » Gurbani Jukebox | Listen to Gurbani while surfing SPN! | » Active Discussions | | | | | | | ਨਾਮਾ Today 06:37 AM 2 Replies, 53 Views | | | | | | | | | | | | | | | | | | | | | | | » Books You Should Read... | | | |