The [[Invantive Studio/Repository/Concepts/Point in Time|point-in-time views]] show the data as it was at a chosen moment. They are queried as follows:
- Log on to the business layer of the application. A product does this itself; a script of Invantive Estate calls `bubs_session.set_session_info`, in the way [[Invantive Studio/Repository/Procedures/Log On to the Business Layer in a Script|Log On to the Business Layer in a Script]] shows for the repository, with the parameters listed in its specification.
- Set the moment for the session. In Invantive Estate, to look at the situation of one hour ago:
```sql
begin
bubs_session.set_point_in_time(sysdate - 1/24);
end;
/
```
- Query the point-in-time view instead of the current one. Its name is the name of the view with the first underscore replaced by `p`:
```sql
select *
from bubspfpt_r
```
A user of a product sets the moment as the "Date Reporting" of the context settings instead.