If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > JAVA > Covering/Disjointeness on a View

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-16-09, 09:03
mrioso mrioso is offline
Registered User
 
Join Date: Jul 2009
Posts: 4
Covering/Disjointeness on a View

Hi everybody.

I am a student and working on a project that works on db schemas.

My problem is now, that I have to create views on given entities and determine wheter it covers the parent relation or it is disjoint with its siblings.

All this must be done by just looking at the metadata ..


Any ideas ?

Thanks in advance!!
Reply With Quote
  #2 (permalink)  
Old 07-16-09, 09:36
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
yeah
my idea is to examine the metadata for what ever SQL engine you are using
understand that data, understand how that engine defines its structure, tables indexes and so on.
usually the data you want is in the schema.
in MySQL its information_schema
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #3 (permalink)  
Old 07-16-09, 09:41
mrioso mrioso is offline
Registered User
 
Join Date: Jul 2009
Posts: 4
Hey healdem.

Thank you for your quick response.

That is exactly what I am doing right now. The JDBC driver for MySQL. Postgres, Oracle (the ones that I am using) gives me the metadata.

I just don't know how to use that data to make assumptions on the type of view.
Reply With Quote
  #4 (permalink)  
Old 07-16-09, 09:53
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
so either track down the documentation for that db

or

create a series of tables which have the features you want and examine the meta data, spot the differences, analyse what settings your db uses to define relationships, foreign keys datatypes and so on.
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #5 (permalink)  
Old 07-16-09, 10:27
mrioso mrioso is offline
Registered User
 
Join Date: Jul 2009
Posts: 4
Quote:
Originally Posted by healdem
so either track down the documentation for that db

or

create a series of tables which have the features you want and examine the meta data, spot the differences, analyse what settings your db uses to define relationships, foreign keys datatypes and so on.

Good idea. I will try.

Thank you!!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On