Re: Mutivalued datatypes considered harmful
- From: "Simon Verona" <nomail@xxxxxxxxxx>
- Date: Thu, 20 Jul 2006 14:33:03 +0100
I suspected that Access SQL would support such a syntax
Out of interest, and well off topic for this group - what would a sql query
return if you brought back the "hobbies" field in an sql query - say for
example to populate a datagrid? Would it return multiple rows (one for each
hobby?) or would it somehow convert the multi-value field into a single
"flat" field?
Also, are the extensions to Access SQL a "standard" or a Microsoft fudge to
make it work ?
Does Access now allow dependant multi-values (ie pick like) or would you
still need to normalise this?
I'm thinking that perhaps in the near future SQL may become a useful query
tool for MV (pick-like) databases without us having to try and normalise our
data first....
Regards
Simon
--
================================
Simon Verona
Dealer Management Service Ltd
Stewart House
Centurion Business Park
Julian Way
Sheffield
S9 1GD
Tel: 0870 080 2300
Fax: 0870 735 0011
"Albert D.Kallal" <PleaseNOOOsPAMmkallal@xxxxxxx> wrote in message
news:Q2Jvg.210348$iF6.143740@xxxxxxxxxxx
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: Albert D.Kallal
- 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
- Re: Mutivalued datatypes considered harmful
- From: Albert D.Kallal
- Mutivalued datatypes considered harmful
- Prev by Date: Re: Fault type is 11. Layer type is Query .in Universe.
- Next by Date: Re: ACTFAX
- Previous by thread: Re: Mutivalued datatypes considered harmful
- Next by thread: Re: Mutivalued datatypes considered harmful
- Index(es):
Relevant Pages
|