473,659 Members | 2,602 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

References to Cardinality in index tables - what is meant by this?

MLH
Cardinality?

I hear it spoken of by MySQL users. Does it
matter to MS Access if MySQL tables are
attached via ODBC?
Nov 13 '05 #1
5 4925

"MLH" <CR**@NorthStat e.net> wrote in message
news:7b******** *************** *********@4ax.c om...
Cardinality?

I hear it spoken of by MySQL users. Does it
matter to MS Access if MySQL tables are
attached via ODBC?


As far as I know, MyODBC is the _only_ way to access MySQL tables from
Access. Perhaps there is an ADODB data provider, but I haven't heard about
it.
Nov 13 '05 #2
MLH
Thanks, Larry. Long time, no talk to. How have you been?
My question was vague. Allow me to rephrase. I was wondering
about cardinality in MySQL tables, and what significance it
might have to me and my MS Access application housing
the attached tables.

xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxx
On Tue, 07 Sep 2004 02:29:20 GMT, "Larry Linson"
<bo*****@localh ost.not> wrote:

"MLH" <CR**@NorthStat e.net> wrote in message
news:7b******* *************** **********@4ax. com...
Cardinality?

I hear it spoken of by MySQL users. Does it
matter to MS Access if MySQL tables are
attached via ODBC?


As far as I know, MyODBC is the _only_ way to access MySQL tables from
Access. Perhaps there is an ADODB data provider, but I haven't heard about
it.


Nov 13 '05 #3
MLH <CR**@NorthStat e.net> wrote:
Cardinality?

I hear it spoken of by MySQL users. Does it
matter to MS Access if MySQL tables are
attached via ODBC?


Seems to me this is two questions.

From point 8 on http://www.sqlteam.com/item.asp?ItemID=122

"Cardinalit y helps us further understand the nature of the relationship between the
child entity and the parent entity. The cardinality of a relationship may be
determined by asking the following question: "How many instances of the child entity
relate to each instance of the parent entity?". There are four types of cardinality:
(1.) One to zero or more (common cardinality), (2.) One to one or more (P
cardinality), (3.) One to zero or one (Z cardinality), and (4.) One to exactly N (N
cardinality)."

I'd have trouble thinking of any situations where it was anything but #1. Well, ok
#2 a lot of time times as most often you are going to have child records. But #1
will exist for a few moments in time until you add the child record.

There's nothing like this in Access. I don't know for sure about SQL Server but I
doubt it. And given that case 2 is a subset of 1 and 3 or 4 are so rare it's not
worth having this specified in the database engine.

Now to me if MySQL supports this specification on the join and you break it you are
going to get some kind of error reported back to Access. Whatever and however that
works. I'd say try it and see what happens.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 13 '05 #4
"MLH" wrote
Thanks, Larry. Long time, no talk to. How have you been?
Still hangin' in there.
My question was vague. Allow me to rephrase. I was wondering
about cardinality in MySQL tables, and what significance it
might have to me and my MS Access application housing
the attached tables.


I answered the part that I knew something about, which was connecting via
ODBC. <G>

Tony has covered the definition of cardinality very well. I've never seen it
raised as an issue in any newsgroup article about Access and MySQL, nor in
the documentation about MySQL that I downloaded.

Larry Linson
Microsoft Access MVP
Nov 13 '05 #5
MLH
Thanks. I'll have to digest it all.
xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxx

On Tue, 07 Sep 2004 22:02:52 GMT, Tony Toews <tt****@teluspl anet.net>
wrote:
MLH <CR**@NorthStat e.net> wrote:
Cardinality ?

I hear it spoken of by MySQL users. Does it
matter to MS Access if MySQL tables are
attached via ODBC?


Seems to me this is two questions.

From point 8 on http://www.sqlteam.com/item.asp?ItemID=122

"Cardinalit y helps us further understand the nature of the relationship between the
child entity and the parent entity. The cardinality of a relationship may be
determined by asking the following question: "How many instances of the child entity
relate to each instance of the parent entity?". There are four types of cardinality:
(1.) One to zero or more (common cardinality), (2.) One to one or more (P
cardinality) , (3.) One to zero or one (Z cardinality), and (4.) One to exactly N (N
cardinality) ."

I'd have trouble thinking of any situations where it was anything but #1. Well, ok
#2 a lot of time times as most often you are going to have child records. But #1
will exist for a few moments in time until you add the child record.

There's nothing like this in Access. I don't know for sure about SQL Server but I
doubt it. And given that case 2 is a subset of 1 and 3 or 4 are so rare it's not
worth having this specified in the database engine.

Now to me if MySQL supports this specification on the join and you break it you are
going to get some kind of error reported back to Access. Whatever and however that
works. I'd say try it and see what happens.

Tony


Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
6725
by: Vissu | last post by:
Hi All, We have one column with low cardinality, 4 or 5 unique values across 50 mil rows. Our query has this colunmn as a predicate. Binary index is not helping. I am tempted to create bitmap index but the general myth is there could be lot of contentions. We have a highly active OLTP system with concurrent DMLs.
0
1564
by: Dathan Vance Pattishall | last post by:
------=_NextPart_000_00A7_01C34644.9C21B100 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Say I have column A with 10000 distinct values column B and C with 2 distinct values and for simplicity sake the column type is an int. If I wanted a composite key why should I make the order of the key A,B,C
2
10445
by: Rizyak | last post by:
-----Cross posted on comp.databases.ms-sqlserver and microsoft.public.sqlserver.programming----- Can someone please explain cardinality to me? I am having a problem with an insert from a webpage. When a user adds a venue with an event I need both tables to populate. Currently only the event table populates the right info and the venue does not. I am using SELECT SCOPE IDENTITY to get the last inserted venue to associate with each...
2
4681
by: Ihug | last post by:
I have a database table with approx 3 million rows. There are 9 indexes on this table. The command: SHOW INDEX FROM TRAN; Returns results as expected with all indexes some valid "Cardinality" values. After a period of time or a series of events (unknown to me) the statistics for one or more indexes shows a NULL value in the cardinality.
7
5947
by: janet | last post by:
HI, We had some data which had low cardinality (86) , the count for that table is 9 million rows. How to optimize query which involve joining this table on that column? I'm not sure if dynamic bitmap Index Anding would help ....but how to let DB2 use it?
2
2305
by: Brad | last post by:
I have one of those seemingly simple questions that evades/confuses me. I've created an assembly with bass classes (classes meant to be inherited in other assemblys). In a secondary assembly (my business layer) I created a class which inherits from a base class in the first assembly....so far so good. If I create a third assembly (my UI layer) and add reference in it to the business layer and I access a public variable in the business...
2
3391
by: rloef | last post by:
I have a 5.0.15 database with a table with a few million rows and 408 different dates in a date field. If I do 'SHOW INDEXES IN TABLENAME' the output says the cardinality of the DATE index is 568289. I take it this is right, but other indexes in the table have cardinalities that sort of look more in line with what I expect; DATE just appears to be wrong. Is it? I'm trying to re-write some queries to narrow searches quicker by using...
2
5530
by: uwcssa | last post by:
is there a way to see the actual (not just estimated) cost and cardinality at each plan operator? SQL Server and Oracle has such feature but I failed to find a way in DB2 yet (up to V9.5)
0
927
by: db2admin | last post by:
hello, I have compressed table 442992 rows and when i run explain plan on this table for some SQL using this table, i see table scan and cardinality on top of table node as 18458. I am new to compression and do not understand why cardinality is not the actual number of rows but 18458. here is the piece of explain plan. table ABC.XYZ is the table i am talking about ( right most in plan )
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8341
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8751
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8630
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6181
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4342
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1982
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.