× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Dieter,

What about "constraint awareness", a technology that checks constraints and
handles them in a special way?
Check constraint awareness and RI awareness were both introduced within the
SQE in Release V5R3M0.

Mit freundlichen Grüßen / Best regards

Birgitta Hauser

"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"


-----Ursprüngliche Nachricht-----
Von: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] Im Auftrag von
dieter.bender@xxxxxxxxxxxx
Gesendet: Friday, 19. November 2010 21:03
An: Midrange Systems Technical Discussion
Betreff: Re: time/date as key fields

... as far as I understand the paper, its related to SQL Server and as far
as I know, referential constraints with DB2/400 imply the needed access
pathes, but are not treated in a special way. I would recommend referential
constraints, but this would only ensure, that you don't forget to establish
the needed access pathes, but would have no further performance impacts
(besides programmer performance!!!)

D*B


--------------------------------------------------
From: <rob@xxxxxxxxx>
Sent: Friday, November 19, 2010 8:16 PM
To: "Midrange Systems Technical Discussion" <midrange-l@xxxxxxxxxxxx>
Subject: RE: time/date as key fields

Alas, work blocks that website and flashes up a screen that the thought
police are coming after me.


Rob Berendt
--
Group Dekko
Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com





From: "Schutte, Michael D" <Michael_Schutte@xxxxxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Date: 11/19/2010 02:03 PM
Subject: RE: time/date as key fields
Sent by: midrange-l-bounces@xxxxxxxxxxxx



Yes I have.



http://naikvinay.wordpress.com/2010/10/22/a-check-and-foreign-key-constraint
-improves-query-performance/


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [
mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Friday, November 19, 2010 12:53 PM
To: Midrange Systems Technical Discussion
Subject: RE: time/date as key fields

I've ran into that issue before:
http://archive.midrange.com/midrange-l/200912/msg00564.html
Can you just run the ADDPFCST against the parent?

Have you read anywhere that the constraints help querying?



Rob Berendt
--
Group Dekko
Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com





From: "Schutte, Michael D" <Michael_Schutte@xxxxxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Date: 11/19/2010 11:52 AM
Subject: RE: time/date as key fields
Sent by: midrange-l-bounces@xxxxxxxxxxxx



I've started with new applications. Makes writing sql select statements a

lot easier since I only need to join on one field.

But in a current project I'm looking to create a unique key on file
created with DDS. The file in DDS was created with a unique key on
Company and Product. However, SQL doesn't recognize it as a unique key
and I cannot use it when creating foreign key constraints link other table

to it. So on this file I created a new unique key with the same key
fields as the DDS file in the test system. It shouldn't take long to
create in production, problem is I think nobody can be accessing the file
at the time of the build.

I'm also curious. I'm wanting to create foreign keys from new SQL tables
for this new project to this master file. Should be okay to do correct?
I'm believing with the foreign key constraint would make gathering data
later faster. There would be no for SQL to look for access path between
the two because it already exists.





-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [
mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Richard Schoen
Sent: Friday, November 19, 2010 9:42 AM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: time/date as key fields

A combination of _GENUUID, Verns timestamp routine and job info would most

likely guarantee uniqueness :-)

Otherwise an Identity field in the database indeed guarantees it.

Curiousity question:

How many of you are using Identity fields in databases for new
applications ?

In the past we always created the base key such as Customer Number, Order
Number and that was the primary key. Now I think the wisdom is to always

use an identity field for primary key as well as Customer Number, Order
Number, etc.... as indexes.

Would like to hear thoughts ?.....

Regards,
Richard Schoen
RJS Software Systems Inc.
Where Information Meets Innovation
Document Management, Workflow, Report Delivery, Forms and Business
Intelligence
Email: richard@xxxxxxxxxxxxxxx
Web Site: http://www.rjssoftware.com
Tel: (952) 736-5800
Fax: (952) 736-5801
Toll Free: (888) RJSSOFT


------------------------------

message: 9
date: Fri, 19 Nov 2010 15:07:43 +0100
from: <dieter.bender@xxxxxxxxxxxx>
subject: Re: time/date as key fields

... it depends, maybe for referential constraints, if there are database
relations.
BTW: genUUID on AS/400 is only most likely unique!!! Best choice would be
an
identity column, if uniqueness is needed.

D*B


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.