You are correct.

Jim Ray




-----Original Message-----
From: Chapman, Katrina [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 16, 2000 1:50 PM
To: [EMAIL PROTECTED]
Subject: RE: Query a Query


I assume you are trying to do a previous/next function.  Am I right?

--K

-----Original Message-----
From: Ray, James A [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 16, 2000 1:42 PM
To: [EMAIL PROTECTED]
Subject: RE: Query a Query


Here is some more background.  Here is what I need to do.

You are record number 1

1. Grab like Fields 1 & 2 (this would include records 1 thru 3)
2. Advance to the next record and display the information (should be record
2)

That's why I have the Query doing a =,=, >=, >, but it does work.  I have
looked at Bens books and haven't seen a query that meets my needes.  

Thanks again for the help.

Example data

        Field 1         Field 2         Field 3         Field 4

1       ABCD            ABCD            1234            ABCD
2       ABCD            ABCD            1234            BCDE
3       ABCD            ABCD            12345           DESF
4       ABCDE           ABCDE           ABCD            ABCD


Jim Ray

-----Original Message-----
From: Brad Roberts [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 16, 2000 8:32 AM
To: [EMAIL PROTECTED]
Subject: RE: Query a Query


I don't know exactly what you are trying to do, but would a subquery work?

If you've got the Web Application Construction Book by Ben Forta (or any sql
book), it will explain subqueries.

Hope this helps,

Brad

-----Original Message-----
From: Ray, James A [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 16, 2000 10:54 AM
To: [EMAIL PROTECTED]
Subject: Query a Query


This is a wierd question, but I need to ask it.

Is there a way to query the results of a query?  There is a really reason
whey I need to do this.

Example

        <CFQUERY name="getRecord" datasource="DSTS" >
                SELECT  *
                FROM    DSTS.LLISTORAGE
                WHERE (ENDITEMPN = '#FORM.ENDITEMPN#') AND (ENDITEMSN =
'#FORM.ENDITEMSN#')
                ORDER BY  ENDITEMPN ASC,ENDITEMSN ASC
        </CFQUERY>

Next one

        <CFQUERY name="getRecord1" maxrows="1">
                SELECT  *
                FROM    getRecord
                WHERE (LLIPN >= '#FORM.LLIPN#') AND (LLISN > '#FORM.LLISN#')
                ORDER BY  LLIPN ASC,LLISN ASC
        </CFQUERY>


Thanks all

Jim Ray



----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to