Viewing 15 posts - 1 through 15 (of 31 total)
Brilliant. That's fixed it.
Thanks very much 🙂
January 27, 2009 at 9:31 am
Jeff Moden (1/27/2009)
January 27, 2009 at 6:40 am
Hi guys. Still cant get to the bottom of this. This is how im calling the SP:
exec [uspSearchProduct] @ListID=23,@OrderBy=N'Price',@OrderByDESC=1,@Page=0,@Pages=@p5 output,@RowsPerPage=10,@SearchString=N''
Definitely an integer value being passed.
Thanks again.
January 27, 2009 at 5:04 am
Adi Cohn (1/26/2009)
You have to put your parameter in side parentheses (e.g. SELECT TOP (@ReturnNumber ) feProduct.ProductID, etc etc etc)Adi
hey my friend.
OK i tried that and it generates the...
January 26, 2009 at 7:12 am
Brilliant stuff.
Thanks for the swift reply. Much appreciated.
January 26, 2009 at 5:43 am
Brilliant.
Thanks very much for your help GilaMonster! Top lady!
January 22, 2009 at 7:22 am
sam.bailey (1/22/2009)
The trick is in the order by! One ascending & one descending...
Ahhh ok mate, sorry i didn't notice one was asc and the other desc.
Is there any difference in...
January 22, 2009 at 5:52 am
GilaMonster (1/22/2009)
gavin.duncan (1/22/2009)
OK, I'm trying to write query which will return the rows 2-10 from a table. Essentially the top ten, minus the top result.
Row_Number is what you're looking for....
January 22, 2009 at 5:46 am
hi sam.
yeah i can see where your coming from. However i still don't understand this. The nested sub-query is going to bring you back the top 10 which is fair...
January 22, 2009 at 5:41 am
sam.bailey (1/22/2009)
Would something like this work??SELECT TOP 9 *
FROM mytable a
WHERE a.mycolumn IN (SELECT TOP 10 *
FROM mytable b
ORDER BY mycolumn)
ORDER BY mycolumn DESC
Hi sam, cheers for the...
January 22, 2009 at 5:29 am
Brilliant guys.
Thanks for the help, much appreciated.
January 21, 2009 at 9:18 am
Hi mate, cheers for the reply.
Is it not the case that would bring back a random 4 rows but not necessarily from the top 10?
Cheers.
January 21, 2009 at 9:10 am
Hi there, thanks very much for the swift response.
Basically im looking to pull 4 random products from a product table, however these four products should be in the top 10...
January 21, 2009 at 8:52 am
Hi Steveb, thanks again.
I need all the fields.........but its only distinct ReviewId's im interested in.
June 24, 2008 at 10:20 am
[ReviewID] is an integer field on the base table which the view is looking at.
June 24, 2008 at 10:09 am
Viewing 15 posts - 1 through 15 (of 31 total)