Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: help me

  1. #1
    Junior Member
    Join Date
    Jul 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default help me

    Dear All,

    how to select row in java

    I have 2 table

    1) select t.din, t.name from debitur t
    __________
    DIN | NAME
    —————–
    001 James
    001 John
    —————–

    select t.din, t.nilai from transaksi t
    _________
    DIN | NILAI
    —————–
    001 9500
    001 7500
    001 8000
    —————-

    Results to be:
    _________________
    DIN | NAME | NILAI
    —————————---
    001 James 9500
    001 John 7500
    001 8000
    —————————



    Thanks & Regards
    Ridwan
    Last edited by ridwan_uka; July 17th, 2010 at 05:41 PM.

  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: help me

    Based upon what you posted this seems more an SQL question than a java specific question. To select across tables, you can use primary and foreign keys along with the JOIN keyword. As is, the tables look a bit confusing to achieve what you wish to achieve easily without knowing more about the database organization. You can try to organize it post-query using some arrays and such. Without any more information and code that's about all one can recommend.