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

SQL documentation uses LEFT JOIN #444

Open
3 tasks done
fulldecent opened this issue Jun 24, 2024 · 0 comments
Open
3 tasks done

SQL documentation uses LEFT JOIN #444

fulldecent opened this issue Jun 24, 2024 · 0 comments
Labels

Comments

@fulldecent
Copy link

Describe the issue

On the page https://www.kimai.org/documentation/sql-examples.html

it shows several SQL queries.

Here is one example:

SELECT
    c.name as Customer,
    u.username as Username,
    u.alias as User,
    FORMAT(SUM(t.duration) / 3600, 0) as Duration
FROM
    kimai2_timesheet t
        LEFT JOIN kimai2_projects p on t.project_id = p.id
        LEFT JOIN kimai2_customers c on p.customer_id = c.id
        LEFT JOIN kimai2_users u on t.user = u.id
GROUP BY
    c.id, t.user, c.name, u.username, u.alias
;

This shows LEFT JOIN on projects and users. But it also seems from the GUI that those are required fields. If that is case then these should instead be JOIN instead.

I already tried

Kimai version

2

How do you run Kimai?

KIMAI CLOUD

Which PHP version are you using?

8.1

Logfile

No response

Screenshots

No response

@fulldecent fulldecent added the bug label Jun 24, 2024
@kevinpapst kevinpapst transferred this issue from kimai/kimai Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant