Skip to content

select comparing fields from the same table #48

@joaosn

Description

@joaosn

hi,
I tried something like this
SELECT * FROM produtos WHERE qt < minqt AND id_user = 2

$Produto->select()
->where('id_user',$id_user)
->where('qt','<','minqt')
->get();

Wouldn't that be right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions