https://antibiotiqueaugmentin.com/surdosage-augmentin-bebe/
× This is the optional Forum header for the Suggestion Box.

WHERE clause

  • daalouw
  • daalouw's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 6 months ago #1043

Hello.

Before I purchase this software, I want to ensure that it can perform a WHERE clause based on the current user's userid that is logged in.

I have a table that contains several rows for each of my users. Key to the table is "date" and "userid". So, I want to pull back the most current row of data for my user.

Can this software do that?

Regards
daalouw

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #1044

Hi,

yes, you can do this with Table JX.

If you didn't have date it would be more easier, you would just write in admin area in where section (article that contains this grid is in registered area)

WHERE id=@user_id

You can also write something like this:
WHERE id=@user_id AND latest=True
(if you have column latest that describes the latest row for each user)

But if you don't have the latest column you can create sql view that filters only latest row for each user:

Something like this:

CREATE VIEW myLatestDataForEachUser AS
SELECT id, max(dateColumn)
FROM myTable
GROUP BY id


You display then this view with Table JX and write in WHERE section of admin area:
WHERE id=@user_id

Best regards,
Viljem

Please Log in or Create an account to join the conversation.

Moderators: tomaz
Time to create page: 0.131 seconds

Contact Us

Contact us on Discord

Contact us on Facebook