dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

Limit amount of data displayed in report - ms-sqlserver

This is a discussion on Limit amount of data displayed in report - ms-sqlserver ; I've been asked to created a dashboard that shows the top three items on a list when the query actually results in more than 3 items ....how do I limit result to just 3 items? -- Samyra...


Home > Database Forum > Microsoft SQL Server > ms-sqlserver > Limit amount of data displayed in report

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 09-10-2009, 01:20 PM
usenet
Guest
 
Posts: n/a
Default Limit amount of data displayed in report

I've been asked to created a dashboard that shows the top three items on a
list when the query actually results in more than 3 items ....how do I limit
result to just 3 items?
--
Samyra
Reply With Quote
  #2  
Old 09-10-2009, 02:54 PM
usenet
Guest
 
Posts: n/a
Default Re: Limit amount of data displayed in report

I'd modify the query to use the Top clause. Then the query will only return
the top 3 (or top whatever).

--
Bruce Loehle-Conger
MVP SQL Server Reporting Services

"Samyra" wrote in message
news:73149C71-A830-419D-BAD3-21AA0FC3BAD1@microsoft.com...
> I've been asked to created a dashboard that shows the top three items on a
> list when the query actually results in more than 3 items ....how do I
> limit
> result to just 3 items?
> --
> Samyra


Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 02:46 AM.