Can I get metadata with SQL queries ??

Can I get relationships between tables in MS Access using SQL statements ??

Actually, you might be able to get what you need out of DatabaseMetaData class.
DatabaseMetaData meta = connection.getMetaData();perhaps using:
public ResultSet getCrossReference(String primaryCatalog,
                                   String primarySchema,
                                   String primaryTable,
                                   String foreignCatalog,
                                   String foreignSchema,
                                   String foreignTable)
                            throws SQLException
Retrieves a description of the foreign key columns in the given foreign key table that reference the primary key columns of the given primary key table (describe how one table imports another's key). This should normally return a single foreign key/primary key pair because most tables import a foreign key from a table only once. They are ordered by FKTABLE_CAT, FKTABLE_SCHEM, FKTABLE_NAME, and KEY_SEQ.

Similar Messages

  • Generate ER Diagram with Sql Queries ?

    Hi Expertie,
    I am new to Oracle Sql Developer Data Modeler.
    I am having doubt in Oracle Sql Developer Data Modeler. Can we create ER Diagram with sql queries ?
    Ex: select Ename, EAge, Eemail, ESalary, DDept, Dname, Estatus from Emp E join Dept D on E.EmpId = D.Empid
          Where EAge in (20, 25, 30, 35)
    Please provide me the answer and suggestion. It will be greatful for me.
    Thanks & Regards
    Bhaskar

    Yes, you can engineer your physical model to a logical one, then you'll have an ERD as well. It's a right-click on the model I believe.
    To be more specific, if you relational model is loaded, you can use the button in the toolbar that looks like a double-blue-arrow, or you can mouse-right-click on your relational model in the tree. This will engineer your model to a logical one. You'll then have your ERD.
    Edited by: Jeff Smith SQLDev PM on Apr 29, 2013 9:53 AM

  • Links with sql queries to practice

    Hi all,
    Can someone give me the links with sql queries for practice to preparing for OCP
    Thanks
    Shekar.

    Hi,
    Can u repost?? as its very difficult to understand ur problem.
    Vasu Natari.

  • Hi, I've recently bought an iPad2 and can't get connected with AppStore or iTunes, when I tap on these icons a grey page pops up saying is loading but never opens the page, no failure message is displayed, it just keep saying is loading. Apparently it is

    Hi, I’ve recently bought an iPad2 and can’t get connected with AppStore or iTunes, when I tap on these icons a grey page pops up saying is loading but never opens the page, no failure message is displayed, it just keep saying is loading.
    Apparently it is not an issue with wifi since Safari, You Tube and Maps work well, I’ve tried some of the tips, e.g. log off/on my Id, change password but no one worked.
    Your help will be highly appreciated.
    Thank you.
    Luis.

    Try a reset. Hold the Sleep and Home button down for about 10 seconds until you see the Apple logo. Ignore the red slider.

  • Can I get help with podcasts?  When I try to open the podcasts, itunes crashes, says "itunes has detected a problem and must close", or the spanish equivalent since my xp is in spanish.  everything else works fine, it even downloads podcasts and syncs.

    Can I get help with podcasts?  When I try to open the podcasts tab, itunes crashes, says "itunes has detected a problem and must close", or the spanish equivalent since my xp is in spanish.  everything else works fine, it even downloads podcasts and syncs.

    The only other thing I can suggest is to use the Repair option for iTunes.
    Download the iTunes programme (do not uninstall your current iTunes) and then "install" the new copy. At some stage you should see an option to "install" or "Repair". Take the Repair option.
    Once you've done that, if you still have a problem, I don't know what else to suggest, except to search through the discussions to see if anyone else has had the problem and managed to fix it.

  • Since I installed Lion, I can't get online with ichat - shows ichat as offline or disconnected when I open the app.

    Since I installed Lion, I can't get online with ichat - shows ichat as offline or disconnected when I open the app.

    Hi,
    Also try turning Off Face Time
    Open Face Time
    Go to the Preferences
    Set it to Off.
    Also make sure your router has the Time and Date/Time Zone set as this upsets Face Time which in turn upsets IChat
    9:28 PM      Tuesday; August 16, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • I have problem with my iphone 4s my battery is not keeping charge. how can I get help with this one. it is less than a year that I purchased this cell.

    I have problem with my iphone 4s my battery is not keeping charge. how can I get help with this one? it is less than a year that I purchased this cell.

    I would like to know the answer to that one.  I realized this was happening just after upgradeing my iOS to 6.  Then when I looked up my purchase date, I was about 5 days past my one year warranty.  So I'm dead in the water.  Apple will replace the battery, but it will be about $80+.  I took it to the Apple store, and they checked a bunch of stuff, but said that it seemed ok.  I'm debating getting a battery for a more reasonable price off of ebay.  But if it's the iOS thats draining the battery, then I'm not going to be able to help it.  I wish I knew a better way to tell if its the battery, the phone, or the iOS.

  • How can I get help with pending songs that have taken over 12 hours to fully download?

    How can I get help with pending songs that have taken over 12 hours to fully download?

    You can only suspend service for 3 months at a time (with or without payment) and only twice a year.

  • How. Can I get help with illegal iTunes charges on my credit card,for things I did not order. Chuck

    How can I get help with illegal iTunes charges on my credit card for things I did not order. chuck

    Same answer as last times you asked the same question:
    iTunes adding charges to my credit card fog things I did not order. What can I do about it. Chuck

  • How can i get apps with out using credit card info because i do not have a card ?

    how can i get apps with out using credit card info because i do not have a card ?

    Yo Chris. I've been following your answers to different threads and quite frankly, you're very keen in answering everybody regarding this stupidity that Apple has brought upon its customers. Kudos to you. But the problem is, most of the time, in some devices, your solution doesn't work because the NONE option is not there. The same goes for me.
    Meanwhile, I found a temporary workaround for the iPhone 4s, iPad 2 and iPod Touch 4th Gen.
    Register a free Apple ID from the iCloud Settings.
    Go to Settings>iCloud>Account>Tap Payment Information on the Storage Plan Category.
    Fill in the other boxes and choose "None" on Credit Card Information.
    That's it! Hope I helped those who still couldn't find the "None" Option.
    Must be running IOS 5.0.1 though, else there would be no iCloud.

  • Can I get away with 150ppi?

    Hi,
    Im designing a poster (A3). As I know 300ppi is the acceptable standard for high quality printing but Its not a simple task to find materials in that resolution. What you think…can I get away with 150 ppi instead? This poster is for educational proposes only.
    Thank
    S

    150 ppi will not hold < 12 pt type very well. Of course a raster doc won't hold it well at all if you're printing to a low linescreen.
    All answers depend on your exact printing process.
    But if you can keep the elements in your design that should be vector (traditionally logos and type) as vector, then cheating to 150 ppi will be OK.
    I would create your document at the highest image resolution and upsample files. No sense in throwing away info on the files that have it. Of course I don't have to upsample much as I never steal from the internet and retch high-quality images. So someone else might be able to speak to the advantage/disadvantage of this.
    J

  • I don't have a good good disc for the mac box set can i get it with it my serial no.

    I don't have a good good disc for the mac box set can i get it with it my box number?

    If this is a new box you just bought ad the disk is bad, Apple will replace it for you.  OTOH, if you have lost the disk or it has become damaged over time, that is your responsibility, and though I don't speak for Apple, I'd be very surprised if you had any option other than buying another copy.

  • What kind of video intro can I get away with?

    I would like to have a video of about the size and quality of this apple Final Cut Studio NAB video.
    http://www.apple.com/finalcutstudio/action/?movie=nab
    Only not nearly as long. Well under a minute for sure! Can I get away with this in iweb with autoload setup for the initial splash screen of my website. I'll be using a .mac account.
    Is there a way to make it have some type of loading indicator and a skip past intro thing? Will it take 3 days to load? Advise? Thanks!

    Hello John,
    The biggest factor on whether people will watch your movie intro is dependent on their connection speed. If all your viewers have cable/dsl then it probably isn't a problem, if you are getting lots of low speed visitors then they won't take the time to let it load—probably.
    If you don't already have Statcounter ( http://www.statcounter.com/ ) and or Goggle Analytics ( http://www.google.com/analytics/ ) you should get both. This will allow you to monitor your visitor demographic, giving you the ability to design your site to the needs of the majority.... plus it is fun to see hits come in from across the country and around the world.
    Any how, I degress. Even if all your users have fast connection speeds you will probably have better luck with a flash movie which yields a higher quality to lower size ratio then the Quicktime format. Plus, more people have flash installed on their computers then Quicktime. If you don't have a flash converter you can get a resonably priced conveter at http://www.verticalmoon.com/products/video2swf/video2swf.htm
    The only problem with using flash (I currently still use Quicktime) is that you will have to add your movies in post publish. Hope that helps.
    Kind Regards,
    —Eric
    Ash Films
    http://web.mac.com/ekashley
    G4   Mac OS X (10.4.9)  

  • How can I get this thru SQL ?

    Hi,
    I am having following sample data
    NUMRUB FORMAT
    1 X(02)
    2 9(02)
    3 9(08)
    4 X(20)
    5 9(01)
    6 X(03)
    7 9(1)
    8 X(02)
    9 9(02)
    I want output in following way
    NUMRUB FORMAT NewFormat Start Position
    1 X(02) 2 1
    2 9(02) 2 3
    3 9(08) 8 5
    4 X(20) 20 13
    5 9(09) 9 33
    6 X(03) 3 41
    7 9(1) 1 44
    8 X(02) 2 45
    9 9(02) 2 47
    How can I get this thru SQL ?
    Pl guide me.
    thanks & regards
    PJP

    SQL> create table mytable (numrub,format)
      2  as
      3  select 1, 'X(02)' from dual union all
      4  select 2, '9(02)' from dual union all
      5  select 3, '9(08)' from dual union all
      6  select 4, 'X(20)' from dual union all
      7  select 5, '9(09)' from dual union all
      8  select 6, 'X(03)' from dual union all
      9  select 7, '9(1)' from dual union all
    10  select 8, 'X(02)' from dual union all
    11  select 9, '9(02)' from dual
    12  /
    Tabel is aangemaakt.
    SQL> select numrub
      2       , format
      3       , to_number(regexp_replace(format,'(X|9)\((.*)\)','\2')) "NewFormat"
      4       , nvl
      5         ( sum(to_number(regexp_replace(format,'(X|9)\((.*)\)','\2')))
      6           over (order by numrub rows between unbounded preceding and 1 preceding)
      7         , 0
      8         ) + 1 "Start Position"
      9    from mytable
    10   order by numrub
    11  /
        NUMRUB FORMA  NewFormat Start Position
             1 X(02)          2              1
             2 9(02)          2              3
             3 9(08)          8              5
             4 X(20)         20             13
             5 9(09)          9             33
             6 X(03)          3             42
             7 9(1)           1             45
             8 X(02)          2             46
             9 9(02)          2             48
    9 rijen zijn geselecteerd.Regards,
    Rob.

  • HT204088 My credit card was charge with out my approval, how can I get support with the issue?

    My credit card was charge with out my approval, how can I get support with the issue?

    If it's a purchase that appears on your purchase history (and not a temporary store holding charge which is made each time that you add or change your credit card details) and nobody else has access to your account and/or devices, then you can either try the 'report a problem' link from your purchase history to contact iTunes Support : http://reportaproblem.apple.com
    Or you can try contacting iTunes Support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

Maybe you are looking for

  • How to select same descendant members from different hierarchies?

    Hi All,  please help, how it is possible to select same values for only the same hierarchy member names from different hierarchies? Example: L1          #L1          L2          #L2          Value A          #A          a1          #a1          7 A  

  • After 1.2.0 Bluetooth not working

    After the initial update to 1.2.0 my Motorola H710 bluetooth stopped connecting to the pre. I waited and got the update now to 1.2.1 but it still doesn't connect. I have to remove it then find it then pair it up again to connect. Very frustrating. Po

  • ABAP program for BAPI and convert DB into XML

    ABAP program for BAPI and convert DB into XML Thank you, Regards, Jagrut BharatKumar Shukla

  • How to bind Links Detail Button to an object?

    Hi, As per the WebCenter Dev Guide, we can create link from "Any object to which you bind the custom JSF components, such as the Links Detail Button". How to bind Link Details Button to an object? TIA

  • INcorrect photo icons on albums

    I havea folder (call it "Main") on my computer with subfolders (Call them "Fold1, Fold2, Fold3". These are synching nicely to my iphone and the three folders are showing as albums in the photos app. However, in the main view in Photos on teh phone, t