www.webdeveloper.com
Results 1 to 2 of 2

Thread: Querying two tables into an ASP page

  1. #1
    Join Date
    Aug 2004
    Posts
    17

    Querying two tables into an ASP page

    I have just started using databases and would like to be able to use two tables in my query rather than just one. Currently I have

    fp_sQry="SELECT * FROM ""External Jobs"""
    This allows me to select the fields I want from that table to show up on my ASP page using this code.

    <%=FP_FieldVal(fp_rs,"Title")%>
    I want to add a second table into the above query that would allow me to select from another table, still in the same DB. What would I append to the Query to make this happen?

    Thank you,

    Scuba

  2. #2
    Join Date
    Nov 2003
    Posts
    655
    Insufficient info.

    My guess is that you're probably going to want to do a JOIN, but it's impossible to say for sure with the info given.

    Also, you should specify the columns of interest rather than using * (the exception is when you use COUNT).

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles