Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort based on properties and link's value criteria #359

Open
mehrdd opened this issue Feb 22, 2019 · 1 comment
Open

Sort based on properties and link's value criteria #359

mehrdd opened this issue Feb 22, 2019 · 1 comment

Comments

@mehrdd
Copy link

mehrdd commented Feb 22, 2019

Hi,
I have 2 main questions.

  1. Sorting: in SQL we could do something like this:
SELECT id, firstname, lastname, age ORDER BY age DESC LIMIT 10, 20

How can i do such thing with Concourse?

  1. Link-Search: If our data is:
[
    [
        'name' => 'John Doe',
        'department' => 'Engineering',
        'title' => 'Senior Software Engineer',
        'role' => 'Software Engineer - Backend',
        'manager' => Link::to_where('title = Director of Engineering'),
        'salary' => 10.00,
        'location' => 'Atlanta',
        'exempt' => True
    ],
    [
        'name' => 'Jane Doe',
        'department' => 'Engineering',
        'title' => 'Director of Engineering',
        'role' => 'Director',
        'manager_of' => Link::to_where('department = Engineering'),
        'salary' => 20.00,
        'location' => 'Atlanta',
        'exempt' => True
    ]
];
  • How can i search for all people, where their manager's salary is 20.00?
    Something like this:
SELECT * FROM people WHERE manager IN ( SELECT id FROM people WHERE title = 'Director of Engineering' AND salary = 20.00 ) ORDER BY name ASC

Thanks
Mehrdad

@mehrdd
Copy link
Author

mehrdd commented Apr 3, 2019

Any news?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant