This is probably a very n00bish question, but I haven't been able to find much. Its hard to do a search on SQL top. I'm looking for a way to get only the first n records back from a SELECT statement. I've seen 'SELECT TOP
FROM tbl', but VFP says the statement is invaild, which leads me to believe that top is a vender function, rather then an SQL standard. Is there a way to do this, with out having a program that loops, ie
Thanks![[hourglass] [hourglass] [hourglass]](/data/assets/smilies/hourglass.gif)
Code:
SELECT * FROM tbl;
for i = 0 to n
do some stuff
next
Thanks
![[hourglass] [hourglass] [hourglass]](/data/assets/smilies/hourglass.gif)