Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server ASP
|
SQL Server ASP Discussions about ASP programming with Microsoft's SQL Server. For more ASP forums, see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server ASP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 30th, 2006, 03:33 AM
Friend of Wrox
 
Join Date: May 2005
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
Default left outer join 2 or 3 tables in ms access

Hi,
I have the following query.
This query works perfect when working with ms sql but when I try to use it with access db I get syntax error.
How can I use it with access???
when there is one "left outer join" no problem but with more than 1 we have difficulty.

RS1.Open "select Top 5 *,Exp_Users.*,(SELECT COUNT (*) from Exp_Answers WHERE Exp_questions.QID = 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 where Exp_Questions.Status=1 order By Exp_Questions.Date_asked Desc" ,Conn,3,3









Similar Threads
Thread Thread Starter Forum Replies Last Post
More than 1 Left Join in MS Access tovipul21 Access 5 November 21st, 2008 05:58 PM
left outer join keyvanjan Classic ASP Basics 1 April 15th, 2006 05:37 AM
left outer join keyvanjan Classic ASP Professional 0 February 5th, 2006 11:54 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 with Crystal navinkumar1 Crystal Reports 0 October 21st, 2004 01:02 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.