Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." 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 Basics 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 February 1st, 2005, 04:22 AM
Authorized User
Join Date: Aug 2004
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default Query???


  I am printing inventory report.
1. jobdetails:

   job_code style ship_date

2. inventory:

  job_acc_code(job_code + 3 digit code)
  codetype typefactor receivedQty issuedQty

I'm issuing this query to print the inventory

select job_acc_code,codetype,typefactor,sum(receivedqty-issuedqty) from inventory where (receivedqty>issuedqty) group by job_acc_code,codetype,typefactor

This is working fine.

But i need style from jobdetails table also corresponding to job_acc_code(6 digit job_code + 3 digit accessory code).

How can i get????

I'm using MSAccess.

Old February 1st, 2005, 08:55 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts

What do you mean: But i need style from jobdetails table

Old February 1st, 2005, 09:05 PM
Authorized User
Join Date: Aug 2004
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts


  Style also to be displayed from jobdetails table. My report should display...

job_acc_code Style Codetype, typefactor balance

Old February 2nd, 2005, 01:45 AM
Friend of Wrox
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts

    In your SQL, you must join to the JobDetails table.

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. amit_mande@yahoo.com 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.