Retrieve Objects Uploaded By a specific user

Hi, i have a table called offers
and lot of users registered
I want to fetch offers uploaded by a specific user by its “name” column which i made in BackendlessUser Table,
how can i achieve that, thanks in advance
@mark-piller
@vladimir-upirov

Hi Mohammed,

Just to confirm, the BackendlessUser table has a relation column pointing to the Offer table? Is it a one to many relationship?

Regards,
Mark

@mark-piller there no relation between the tables

Then how are the offers correlated to the users?

each user have an account and can upload offers by him self i want to show to every user the offers he uploaded not another people’s offers

@mark-piller i have made a column called “user name” in BackendlessUser table
i want to filter offers like for example whereClause "username = ‘john’ "

@mark-piller

It is not clear to me how the offers correlate to users at the database level. Normally it is done through relation columns, but you said there is no relation column.

@mark-piller in Users Table i created a column called “username”
so, every user has name, what i want to do is i want to filter offers from offers table by the username in BackendlessUser table
like if value of column username in BackendlessUser table is “A” then show objects from offers table that are only uploaded by “A”
is it possible or not?

Do you already have objects in both tables?

Of course

Do the Offer records have a value in the ownerId column?

Yep

One option is to load offers with the following where clause

ownerId = ‘objectId value of the user’

that is a good solution, thanks mark