Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. 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 Databases 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 27th, 2005, 09:43 PM
Authorized User
 
Join Date: Aug 2004
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default Query???

Hello,

   I have two tables

orders:
job_acc_code typefactor codetype orderqty
---------------------------------------------
05A020002 1 S 2124
05A020002 1 M 4248
05A020002 1 L 4248
05A020002 1 XL 2124
05A020001 2 002 125
05A020001 2 005 150
05A020003 3 0 5000

inventory:
job_acc_code typefactor codetype receiveqty
-----------------------------------------------
05A020002 2 S 1500
05A020002 2 M 1000
05A020002 2 S 500

I want to get the report showing all orderdetails and inventory what we have received(totalreceived)

Can anyone give me the query?

I want to get all the details from orderdetails table and details from inventory(sum(receiveqty)) group by job_acc_code,typefactor,codetype

thanks in advance








Similar Threads
Thread Thread Starter Forum Replies Last Post
Output Query to txt file from SQL Query everest SQL Server 2005 4 November 22nd, 2007 01:49 AM
how to make a query from an existing query raport SQL Language 3 November 13th, 2006 08:59 PM
I solved insert query.now see this Update Query. [email protected] VB.NET 2002/2003 Basics 2 September 21st, 2006 12:48 AM
Syntax error in query. Incomplete query clause. dispickle ADO.NET 3 April 16th, 2004 01:04 PM
Error on Make-Table Query In Union Query rylemer Access 1 August 20th, 2003 07:42 PM





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