If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Pervasive.SQL > Pervasive SQL Bug?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-25-03, 04:01
AJV AJV is offline
Registered User
 
Join Date: Feb 2003
Posts: 9
Pervasive SQL Bug?

The following query works fine:

Select ProdName as AliasName1
from Product p, Machines m
where p.MachineID = m.MachineID
and AliasName1 = 'TEST'

But the following self join does not work:

Select p1.ProdName as AliasName1
from Product p1, Product p2
where p1.MachineID = p2.MachineID
and AliasName1 = 'TEST'

Pervasive produce an error:
"Invalid Column Name p1"

WHY????
Any suggestion to overcome the problem please...
Reply With Quote
Reply

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On