Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. articles. downloads. faq. members. files. rss.
 From: Cetin Basoz
  Where is Cetin Basoz?
 Izmir
 Turkey
 Cetin Basoz
 To: solomon sackey
  Where is solomon sackey?
 texas
 Texas - United States
 solomon sackey
Subject: RE: Prefix Record No: in a Select Statement
Thread ID: 169824 Message ID: 169850 # Views: 1 # Ratings: 0
Version: Visual FoxPro 6 Category: Databases, Tables and SQL Server
Date: Saturday, April 26, 2008 10:02:21 AM         
   



> >
> > No, I assumed that's a field name in your table since you included this column in the table in your original question.
> > --
> > Eric den Doop
> > www.foxite.com - The Home Of The Visual FoxPro Experts
>
>
> Can the
RECNO()
be used in a
select
statement?

Yes and no.
Yes you can use it as long as the select is done from a single table.
No, you can't when there are joins and the VFP version is 6. In that case you might first do individual selects per table in the join adding recno() as a field. ie:

select recno() as CustRow, * from customer into cursor rowCustomer nofilter
select recno() as OrderRow, * from orders into cursor rowOrders nofilter
select * from rowCustomer inner join rowOrders on rowCustomer.cust_id = rowOrder.cust_id


Cetin Basoz

ENTIRE THREAD

Prefix Record No: in a Select Statement Posted by solomon sackey @ 4/26/2008 6:45:35 AM
RE: Prefix Record No: in a Select Statement Posted by Eric den Doop @ 4/26/2008 8:26:49 AM
RE: Prefix Record No: in a Select Statement Posted by solomon sackey @ 4/26/2008 9:24:05 AM
RE: Prefix Record No: in a Select Statement Posted by Eric den Doop @ 4/26/2008 9:26:33 AM
RE: Prefix Record No: in a Select Statement Posted by solomon sackey @ 4/26/2008 9:35:32 AM
RE: Prefix Record No: in a Select Statement Posted by johnvou vasquez @ 4/26/2008 9:54:07 AM
RE: Prefix Record No: in a Select Statement Posted by Cetin Basoz @ 4/26/2008 10:02:21 AM
RE: Prefix Record No: in a Select Statement Posted by tushar @ 4/26/2008 11:56:04 AM
RE: Prefix Record No: in a Select Statement Posted by Jun Tangunan @ 4/26/2008 12:22:38 PM
RE: Prefix Record No: in a Select Statement Posted by Anders Altberg @ 4/26/2008 7:23:07 PM
RE: Prefix Record No: in a Select Statement Posted by Zaheer Ahmed @ 4/26/2008 8:45:06 AM
RE: Prefix Record No: in a Select Statement Posted by Mike Yearwood @ 4/26/2008 6:58:13 PM
RE: Prefix Record No: in a Select Statement Posted by Patrick McGreevy @ 5/1/2008 2:08:12 AM
RE: Prefix Record No: in a Select Statement Posted by Mike Yearwood @ 5/1/2008 3:07:40 AM
RE: Prefix Record No: in a Select Statement Posted by Anders Altberg @ 5/1/2008 12:37:05 PM
RE: Prefix Record No: in a Select Statement Posted by Mike Yearwood @ 5/1/2008 1:36:42 PM