Re: Mutivalued datatypes considered harmful
- From: "Albert D.Kallal" <PleaseNOOOsPAMmkallal@xxxxxxx>
- Date: Thu, 20 Jul 2006 10:38:40 GMT
As for the query (for selecting people with specific multiple hobbies),
wouldn't it be logical that the following would work:
select * from file where Hobby = "Fishing" and Hobby = "Chess"
I'm not quite sure what the resultant query would return though!! Using
standard RD theory, this would return two rows, with all the fields being
identical except for the "Hobby" field... I'm not a massive expert in
SQL, but wouldn't the "DISTINCT" modifier then restrict this to one row ?
If so I wonder what would happen to the Hobbies field!
Well, in normal systems, you don't have muti valued fields. what that
article FAILS TO MENTION is that the sql
in ms-access NOW SUPPORTS this....
So, the above query is perfectly legal!!!, and WILL WORK on multi-value
fields...
then presumably the SQL language needs modifying to cope
The sql in ms-access has been modified. Not only that, both the DAO, and ADO
object model have been also extended...
So, those people in the article were NOT aware that you can do this, and the
supposed problems of multi-value fields does work!!
As I point out in the other thread, in some ways, the sql extensions are
easier to use then the pick query language...
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@xxxxxxx
http://www.members.shaw.ca/AlbertKallal
.
- Follow-Ups:
- Re: Mutivalued datatypes considered harmful
- From: Simon Verona
- Re: Mutivalued datatypes considered harmful
- References:
- Mutivalued datatypes considered harmful
- From: Kevin Powick
- Re: Mutivalued datatypes considered harmful
- From: frosty
- Re: Mutivalued datatypes considered harmful
- From: Simon Verona
- Mutivalued datatypes considered harmful
- Prev by Date: Re: Mutivalued datatypes considered harmful
- Next by Date: Re: Mutivalued datatypes considered harmful
- Previous by thread: Re: Mutivalued datatypes considered harmful
- Next by thread: Re: Mutivalued datatypes considered harmful
- Index(es):
Relevant Pages
|
|