Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET 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 April 18th, 2007, 12:00 AM
Registered User
Join Date: Apr 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to PankajGarg10
Default sql query in vb.net 2005

HI there,
  I am using MS-Access . There in the database , I have three tables.
 First table contains two fields namely customerid , custome_name.
Second table contains again the two fields namely productid and product_name.
Third table contains productid , customerid , address.
Is there any way to calculate the customer name , product name , address with in a single query.
Any help will be appreciated.
Thank You.

Old April 23rd, 2007, 04:16 AM
Friend of Wrox
Join Date: Aug 2004
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post

Try something like this

Table1: tblCustomer
Table2: tblProduct
Table3: tblDetail

select customer_name as 'Customer Name',product_name as 'Product Name', address as Address
 from tblCustomer a,tblProduct b,tblDetail c where
a.customerid = c.customerid and b.productid = c.productid


Fortune favours the brave, so don't regret on missed oppurtunities.
Old May 3rd, 2007, 06:23 AM
Authorized User
Join Date: Apr 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to tarduk2004

same as the above

TarDuk - A Memory Beyond The Life.

Similar Threads
Thread Thread Starter Forum Replies Last Post
reg conn to sql server 2005 from vb.net 2005.. veda SQL Server 2005 2 July 1st, 2008 12:16 AM
VB 2005 Parameter Query mrmarkt Visual Basic 2005 Basics 0 November 25th, 2007 11:31 AM
SQL query in vb.net 2005 Amy18 Visual Basic 2005 Basics 3 May 2nd, 2007 11:13 PM
how to pass sql query to crystal through vb.net dranjithreddy Crystal Reports 0 June 7th, 2005 05:15 AM
How can I pass sql query through vb.net to crystal sachinbashetti Crystal Reports 0 May 14th, 2005 01:47 AM

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