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 > Order By In Left Join

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-02-03, 08:16
apap apap is offline
Registered User
 
Join Date: Dec 2002
Posts: 3
Problem Order By In Left Join

1. HOW CAN I USE " ORDER BY " IN A VIEW IN PERVASIVE DB?

2. I HAVE AN OUTER JOIN AND I WANT TO USE "ORDER BY " IN THE SELECT CLAUSE BEFORE THE JOIN TAKES PLACE. MY PROBLEM IS THE FOLLOWING IF THE "ORDER BY " IS WRITTEN AT THE END OF THE STATEMENT LIKE IN THE SCREEN BELOW IT IS VERY SLOW

" Select XXX,
CCC,
VVV,
ad1.BBB as ADSType,
NNN,
MMM,
KKK,
LLL
ad2.OOOas ADCountry
from Address
left join UDCValue ad1 on (ad1.UDCVID = 1 and ad1.UDCVLineNo = ADSTypeLineNo )
left join UDCValue ad2 on (ad2.UDCVID = 7 and ad2.UDCVLineNo = ADCountryLineNo)
order by Adid "

HOW CAN I SORT MY DATA AND AFTER MAKE THE JOINS.

Last edited by apap; 07-02-03 at 08:50.
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