dbTalk Databases Forums  

Demo: Db For Dummies

comp.databases.object comp.databases.object


Discuss Demo: Db For Dummies in the comp.databases.object forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Neo
 
Posts: n/a

Default Re: Demo: Db For Dummies - 11-14-2004 , 05:08 PM






Quote:
Are you seriously considering changing the name of your product?
How about "Db for Idiots created by Dummies", or IDb (IdiotDb for
short).
Please show RM's script to model the equivalent things without NULLs
or redundancy (I won't ask you to normalize down to symbols as it
would make RM's solution impractical). Then I can decide whether or
not to rename it Db for Dummies.


Reply With Quote
  #12  
Old   
Neo
 
Posts: n/a

Default Re: Demo: Db For Dummies - 11-14-2004 , 05:20 PM






Quote:
... what is the purpose of these posts?
One will never know without attempting to accomplish the equivalent
with RM, that is model the equivalent things without NULLs or
redundancy (I won't ask you to normalize down to symbols as it would
make RM's solution impractical).


Reply With Quote
  #13  
Old   
Neo
 
Posts: n/a

Default Re: Demo: Db For Dummies - 11-14-2004 , 08:52 PM



While the XDb2 scripts appears simple enough for dummies, it creates
the equivalent of the following RM schema (actually it further
normalizes the name column of various tables, and then normalizes the
symbols across all names). I have used "->" notation instead of ID
values to make it easier to follow:

T_Person
name skin hair
---- -------------- ----
john ->black ->red,blue
mary ->white,smooth ->red,silky,smooth

T_Skin
ID
------
black
white,smooth

T_SkinColor (each skin can have any number of colors)
skin color
---- ------
->black ->black
->white,smooth ->white

T_SkinTexture (each skin can have any number of textures)
skin texture
------------ --------
->white,smooth ->smooth

T_Hair
ID
----------------
red,blue
red,silky,smooth

T_HairColor (each hair can have any number of colors)
hair color
------------------ -------
->red,blue ->red
->red,blue ->blue
->red,silky,smooth ->red

T_HairTexture (each hair can have any number of textures)
hair texture
------------------ -----
->red,silky,smooth ->silky
->red,silky,smooth ->smooth

T_Color
name
-----
red
blue
black
white

T_Texture
name
----
smooth
silky


That XDb2's simple script creates a schema similar to above can be
corroborated by looking at the same things in the tree view at
www.xdb2.com/example/ex005.asp

When one compares RM's script/queries to XDb2's, it is easy to see why
it is for Dummies, and RM is not.

Reply With Quote
  #14  
Old   
Marshall Spight
 
Posts: n/a

Default Re: Demo: Db For Dummies - 11-16-2004 , 12:35 AM



Quote:
I have dark brown hair, and I also have grey hair. Then, there
are shades. I smell a bad model.
Oh, please.


Quote:
Since I have dark brown hair and grey hair, what is my
hair_color?
Dark brown. Ask the Department of Motor Vehicles.

Can we talk about databases again now?


Marshall




Reply With Quote
  #15  
Old   
Neo
 
Posts: n/a

Default Re: Demo: Db For Dummies - 11-16-2004 , 10:59 AM



Quote:
what is the purpose of these posts?
To demo that XDb2 is for Dummies. While the XDb2 scripts appears
simple enough for dummies, it creates the equivalent of the following
RM schema (actually it further normalizes the strings in the name
columns of various tables, and then normalizes the symbols across all
strings). I have used "->" notation instead of ID values to make it
easier to follow. Not that RM can't, but if you're unable to post RM's
equivalent (normalized/NULL-less) script/queries, then XDb2 might be
for you

T_Person
name skin hair
---- -------------- ----
john ->black ->red,blue
mary ->white,smooth ->red,silky,smooth

T_Skin
ID
------
black
white,smooth

T_SkinColor (each skin can have any number of colors)
skin color
---- ------
->black ->black
->white,smooth ->white

T_SkinTexture (each skin can have any number of textures)
skin texture
------------ --------
->white,smooth ->smooth

T_Hair
ID
----------------
red,blue
red,silky,smooth

T_HairColor (each hair can have any number of colors)
hair color
------------------ -------
->red,blue ->red
->red,blue ->blue
->red,silky,smooth ->red

T_HairTexture (each hair can have any number of textures)
hair texture
------------------ -----
->red,silky,smooth ->silky
->red,silky,smooth ->smooth

T_Color
name
-----
red
blue
black
white

T_Texture
name
----
smooth
silky


For something more challenging try posting RM's equivalent
script/queries for the example post in thread titled "Demo: John, Mary
and R2D2" or at www.xdb2.com/example/ex113.asp


Reply With Quote
  #16  
Old   
Neo
 
Posts: n/a

Default Re: Demo: Db For Dummies - 11-16-2004 , 11:04 AM



Quote:
Are you seriously considering changing the name of your product?
How about "Db for Idiots created by Dummies", or IDb (IdiotDb for
short).
While the XDb2 scripts appears simple enough for dummies, it creates
the equivalent of the following RM schema (actually it further
normalizes the strings in the name columns of various tables, and then
normalizes the symbols across all strings). I have used "->" notation
instead of ID values to make it easier to follow. Not that RM can't,
but if you're unable to post RM's equivalent (normalized/NULL-less)
script/queries, then IDb may be appropriate.

T_Person
name skin hair
---- -------------- ----
john ->black ->red,blue
mary ->white,smooth ->red,silky,smooth

T_Skin
ID
------
black
white,smooth

T_SkinColor (each skin can have any number of colors)
skin color
---- ------
->black ->black
->white,smooth ->white

T_SkinTexture (each skin can have any number of textures)
skin texture
------------ --------
->white,smooth ->smooth

T_Hair
ID
----------------
red,blue
red,silky,smooth

T_HairColor (each hair can have any number of colors)
hair color
------------------ -------
->red,blue ->red
->red,blue ->blue
->red,silky,smooth ->red

T_HairTexture (each hair can have any number of textures)
hair texture
------------------ -----
->red,silky,smooth ->silky
->red,silky,smooth ->smooth

T_Color
name
-----
red
blue
black
white

T_Texture
name
----
smooth
silky


For something more challenging try posting RM's equivalent
script/queries for the example post in thread titled "Demo: John, Mary
and R2D2" (or at www.xdb2.com/example/ex113.asp)


Reply With Quote
  #17  
Old   
Neo
 
Posts: n/a

Default Re: Demo: Db For Dummies - 11-16-2004 , 11:09 AM



Quote:
what is the purpose of these posts?
To demo that XDb2 is for Dummies. While the XDb2 scripts appears
simple enough for dummies, it creates the equivalent of the following
RM schema (actually it further normalizes the strings in the name
columns of various tables, and then normalizes the symbols across all
strings). I have used "->" notation instead of ID values to make it
easier to follow. Not that RM can't, but your original solution fell
quite short. Could you post RM's equivalent (normalized/NULL-less)
script/queries?

T_Person
name skin hair
---- -------------- ----
john ->black ->red,blue
mary ->white,smooth ->red,silky,smooth

T_Skin
ID
------
black
white,smooth

T_SkinColor (each skin can have any number of colors)
skin color
---- ------
->black ->black
->white,smooth ->white

T_SkinTexture (each skin can have any number of textures)
skin texture
------------ --------
->white,smooth ->smooth

T_Hair
ID
----------------
red,blue
red,silky,smooth

T_HairColor (each hair can have any number of colors)
hair color
------------------ -------
->red,blue ->red
->red,blue ->blue
->red,silky,smooth ->red

T_HairTexture (each hair can have any number of textures)
hair texture
------------------ -----
->red,silky,smooth ->silky
->red,silky,smooth ->smooth

T_Color
name
-----
red
blue
black
white

T_Texture
name
----
smooth
silky


For something more challenging try posting RM's equivalent normalized
and NULL-less script/queries for the example post in thread titled
"Demo: John, Mary and R2D2" or at www.xdb2.com/example/ex113.asp


Reply With Quote
  #18  
Old   
Laconic2
 
Posts: n/a

Default Re: Demo: Db For Dummies - 11-16-2004 , 11:24 AM




"Neo" <neo55592 (AT) hotmail (DOT) com> wrote

Quote:
what is the purpose of these posts?

To demo that XDb2 is for Dummies.
Can those of us who are not dummies have a break???




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.