Results 1 to 5 of 5

Thread: How to fetch records from multiple tables in a database ?

  1. #1
    Join Date
    Dec 2010
    Posts
    37

    How to fetch records from multiple tables in a database ?

    I am reading this forum since along time and taking benefits of it , but I have never posted any of the queries before, this for the for the first time that I am posting a query on the forum , I am actually a student and I am pursuing a course of Data base administrator , it is quite easy as far as the simple queries are concerned about the queries about the queries which are used to fetch the records from multiple tables , it would be a great help if anyone provides any sort of help.

  2. #2
    Join Date
    May 2009
    Posts
    511

    Re: How to fetch records from multiple tables in a database ?

    Yes you an definitely do that, it can be done with the help of the concept of joins, I will explain you with an example . Suppose you are maintaining multiple tables and you have a table named as Employee and and another table named as Employee details, the first table contains employee's official information and the second table contains about his salary details, so if you want to fetch the record of the employees whose salary is more than any particular amount say 15000 per month then you will have to use this concept.

  3. #3
    Join Date
    May 2009
    Posts
    511

    Re: How to fetch records from multiple tables in a database ?

    Yes for that you will have to use the SQL join concept for that purpose . If you think that you are new to queries , joins can be a intimidating theory. There are many dissimilar sorts of joins and apparently small information obtainable that give details and compare them. But after you grasp a few fundamental concepts, you will not find it that much difficult to do it practically.

  4. #4
    Join Date
    May 2009
    Posts
    637

    Re: How to fetch records from multiple tables in a database ?

    While the definitions and explanations in this thread seems to be simple and does not include complex logic, so it would be better for you to begin with easier concept . JOIN is a query clause that can be utilized with the statements such as SELECT, UPDATE, and DELETE . You can also called them as data query statements to at the same time influence rows from multiple tables.

  5. #5
    Join Date
    Apr 2009
    Posts
    569

    Re: How to fetch records from multiple tables in a database ?

    Joined tables should each comprise at least one column in both tables that hold similar data. For instance, if you want to connect a Employee table and a Salary table, they both must hold a general element, such as a Employee ID column, to provide as a key on which the data can be coordinated. Tables can be joined on more than one fields so long as the fields have the ability to provide similar information.

Similar Threads

  1. External Tables in database
    By Cayden in forum Software Development
    Replies: 4
    Last Post: 17-02-2010, 11:02 PM
  2. Possibility to filter the records in a Database
    By Elbanco in forum Software Development
    Replies: 3
    Last Post: 06-11-2009, 09:21 PM
  3. Database Advantages Multiple Tables
    By G. Kushal in forum Software Development
    Replies: 3
    Last Post: 27-08-2009, 09:30 AM
  4. Replies: 2
    Last Post: 30-07-2009, 10:03 PM
  5. How to Extract Particular Records from the Database?
    By Sukhvinder in forum Software Development
    Replies: 2
    Last Post: 26-01-2009, 06:28 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,282,990.58554 seconds with 17 queries