Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 5th, 2006, 11:54 AM
Friend of Wrox
 
Join Date: May 2005
Location: , , .
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
Default left outer join

I have the following query which has 3 left outer join
The UserID field exist in 2 tables questions table and answers table
I want the field userID in the questions table but the other one is shown when I output it.
How can I display the userID from the questions table???



RS1.Open "select *,(SELECT COUNT (*) from Exp_Answers WHERE Exp_questions.ID = Exp_Answers.QID ) AS REC_COUNT from Exp_questions left outer join Exp_Users on Exp_Questions.UserID=Exp_Users.UserID left outer join Exp_Category on Exp_Category.CatID=Exp_Questions.CatID left outer join Exp_SUBCategory on Exp_SubCategory.SubID=Exp_Questions.SubID left outer join Exp_Answers on Exp_Answers.QID=Exp_Questions.ID where Exp_Questions.QID=" & intQID ,Conn,3,3

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LEFT vs LEFT OUTER joxa83 SQL Server 2005 3 September 18th, 2008 03:13 AM
left outer join keyvanjan Classic ASP Basics 1 April 15th, 2006 05:37 AM
left outer join 2 or 3 tables in ms access keyvanjan Classic ASP Basics 2 February 2nd, 2006 06:42 PM
left outer join 2 or 3 tables in ms access keyvanjan SQL Server ASP 0 January 30th, 2006 03:33 AM
Left Outer Join with Crystal navinkumar1 Crystal Reports 0 October 21st, 2004 01:02 PM



All times are GMT -4. The time now is 08:30 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.