At 08:50 PM 2/22/2002, you wrote:
>What about this hack?
>
>SELECT TOP 1
>         (SELECT TOP 1 TipID
>         FROM TIPS
>         WHERE TipTipCategoryLink = #Q_Tip.TipTipCategoryLink#
>         ORDER BY TipTitle ASC) As FirstTip,
>         (SELECT TOP 1 TipID
>         FROM TIPS
>         WHERE TipTipCategoryLink = #Q_Tip.TipTipCategoryLink#
>         ORDER BY TipTitle DESC) As LastTip
>FROM TIPS
>
>I tried the Last() and First() functions and they didn't work in Query
>Analyzer (on 7 and 2K).  Weird.

Ahhh, I didn't think of that, brilliant :-)

______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to