Skip to content

Tag: sql

Pentaho Transpose column to rows

I have this table in Pentaho. I would like to have my data like this Is there a way to unpivot like this with Pentaho or perhaps a SQL query? Answer Yes, you could use SQL or Pentaho. With Pentaho you use the step Row denormaliser. To use the Row denormaliser, you need to previously sort your rows by the

Display the previous date for a user in an additional column

I have a list of users and a list of review dates corresponding to each user, the user can have multiple reviews relating to them. What I need to do is create an additional column that shows me the users previous review date, if they don’t have a previous review I need it to be null. An example of the

FULL OUTER JOIN (or UNION) on 2 tables

I’m facing a SQL request issue. I’m not a SQL expert and I would like to understand my mistakes. My use case is to get all records of the first table + records of the second table that are not present in the first table. I’ve got 2 tables like this : First table “T-Finance par jalon ZO…