Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > SQL Language
|
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language 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 September 10th, 2004, 12:53 AM
Registered User
 
Join Date: Sep 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey u do have views in Access right instead of the temp table store the result in the view and then query the view( i.e you save the query that you write on the access these themselves act as views)

Query the saved query which would act as a temp table

Hope this helps:D

Rgds
pratap


 
Old October 26th, 2004, 06:01 PM
Registered User
 
Join Date: Oct 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

http://www.codeproject.com/cs/databa..._databases.asp

 
Old October 27th, 2004, 10:02 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 196
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The following works in Access - I tried it.

Modify the ParentChild table as follows.

id int identity not null
father int null
mother int null
description varchar(100) null

Query

SELECT ParentChild.description AS Name, ParentChild_1.description AS Father, ParentChild_2.description AS Mother
FROM (ParentChild LEFT JOIN ParentChild AS ParentChild_1 ON ParentChild.father = ParentChild_1.id) LEFT JOIN ParentChild AS ParentChild_2 ON ParentChild.mother = ParentChild_2.id;

Best wishes,



Rand





Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Into Parent Child Table prasanta2expert Access VBA 3 November 8th, 2007 11:18 AM
parent child connect s2mo SQL Server 2005 1 February 20th, 2007 07:16 AM
Parent - Child Combo babloo81 BOOK: Professional Jakarta Struts 0 April 27th, 2005 01:54 PM
Parent - Child Combo babloo81 JSP Basics 0 April 27th, 2005 01:46 PM
Update parent table with the sum of child table gbrown SQL Language 2 November 9th, 2004 07:53 AM





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