Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Database > SQL Language
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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
DRM-free e-books 300x50
Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 30th, 2004, 04:45 AM
Registered User
 
Join Date: Jun 2004
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to handle 2 queries, nestled in each other?

Hello,

first of all, sorry for my bad english. :)

The problem I have at work is part of an Overdue Letter in Access.
The system we work with is Olib and is running on an Oracle database.

There are a few tables that we have to use.
First we have to look in the table 'Borrowers' if there are borrowers with an overdue book(s) and a fine to pay.
For all the users we find in this table we have to look in 'Copies' to find out what books they have lend from us.
The first querie is:
"Select borrower, fname From borrowers Where and b.curbal > 0 and b.curodues > 0"

When we have the result of this queries (for ex. 7 barcodes of people) we have to look for each of the barcodes wich books they have lend here.

Select copynro From copies Where "The barcode of the borrower from the 1st querie" = borbarcode"

I hope you see my problem, if not I will try to explain it further more.

Kind regards,

Vandael Tim

  #2 (permalink)  
Old December 4th, 2004, 11:13 AM
Friend of Wrox
 
Join Date: Nov 2003
Location: Lehigh Acres, FL, USA.
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

can you post you table structure and or column names



Jaime E. Maccou
Applications Analyst
Database Programmer
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to handle several attributes? sebhoff XSLT 2 March 20th, 2007 02:47 AM
How to Handle SessionTimeout prankur ASP.NET 1.0 and 1.1 Professional 2 January 16th, 2006 01:45 PM
How to handle...? chawnu Pro PHP 1 December 8th, 2005 05:14 AM
Combining Queries or results from 2 queries Ford SQL Server 2000 24 November 7th, 2005 08:54 PM
How to handle this error Maxood Classic ASP Databases 2 June 27th, 2004 02:57 PM



All times are GMT -4. The time now is 05:48 AM.


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