You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@b4s36t4 What you need to look at is the file njord/src/sqlite/query.rs which is the QueryBuilder for SELECT operations.
This one can be quite difficult/complex to implement if you are not sure from the get-go. Since with SQL you can do subqueries to pick data from multiple tables and combine them into a result table. At this moment, I'm not sure how that would be implemented. But feel free to explore the code. Maybe you don't need to come up with the whole solution, perhaps a proposed solution.
Otherwise, if this is too hard, I would suggest looking into other parts of Njord. Maybe you can start with a less big task, just fixing possible bugs, docs or refactor some parts you feel should be named differently etc.
An example of SQL that should be possible to generate is:
-- Query with JOIN inside a subquerySELECTc.customer_id, c.customer_name, oe.order_idFROM customers c
JOIN (
SELECTo.order_id, o.customer_idFROM orders o
JOIN order_details od ONo.order_id=od.order_idWHEREod.product_id=123
) AS oe
ONc.customer_id=oe.customer_id;
INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN to combine rows from two or more tables based on a related column between them.
The text was updated successfully, but these errors were encountered: