Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select top N
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01000762
Message ID:
01000770
Views:
16
Never mind. If I remove TOP 180, it still returns just 48 records. Weird.

>Hi everybody,
>
>Do you know why this code
>
>* Get the unassigned accounts
>	SELECT TOP m.lnNumAccounts TRANS.cTrans_Pk, ;
>		Trans_Employees_Queues.cTrans_Employees_Queues_Pk, 0 AS iAssigned, ;
>		SPACE(16) AS cCommission_Owner_UsGrLink_fk, ;
>		SPACE(16) AS cqueue_names_fk ;
>		FROM mmVisCollect!TRANS INNER JOIN mmVisCollect!Trans_Employees_Queues ;
>		ON TRANS.cTrans_Pk = Trans_Employees_Queues.cTrans_fk ;
>		WHERE ISNULL(Trans_Employees_Queues.cCommission_Owner_UsGrLink_fk) ;
>		AND Trans_Employees_Queues.cqueue_names_fk = m.lcQueue_Names_Fk ;
>		ORDER BY TRANS.tDate_Received ;
>		INTO CURSOR curAccounts READWRITE
>
>would return only 48 records when lnNumAccounts = 180?
>
>Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform