Author Topic: Displaying specific rows  (Read 748 times)

Offline zenith

  • Full Member
  • ***
  • Posts: 40
  • Forum Citizenship: +1/-0
Displaying specific rows
« on: 27 Apr 2006 05:24:11 am »
hi i have a query

I have a table with 10 rows i need to display only 1st 5 when a user A logs in and remaining 5 when user B logs in how do i go about it

Cheers  ???

Offline rjcressw

  • Associate
  • **
  • Posts: 4
  • Forum Citizenship: +0/-0
Re: Displaying specific rows
« Reply #1 on: 16 May 2006 11:11:24 am »
I do not believe this is possible from a reporting standpoint (if I understand what you are trying to do correctly) as it would require you to write information BACK to the database.  SQL is non-procedural, and will return the same results every time you run a query (if the data has not changed).

Offline bdybldr

  • Global Moderator
  • Statesman
  • *****
  • Posts: 275
  • Forum Citizenship: +7/-1
Re: Displaying specific rows
« Reply #2 on: 19 May 2006 06:36:17 am »
zenith,
Are you trying to accomplish this in ReportStudio?  Is there some logic to the sort sequence in the table?  In other words will the rows always be returned in the same order.

It seems that you should be able to add a column to the table, "rownum".  Then, in you report create a case statement for user_id and filter the data based on user.

Sorry to be so vague.  We need more information about your requirements.