Skip to content

Explain Starcounter SQL usage in Db.SQL with examples #89

@mmnosek

Description

@mmnosek

Type of issue:

Db.Sql documentation is not clear enough. It suggests, that it's possible to use whole Starcounter SQL, but does not explain how to use particular parts. For example:

  • SELECT e, d FROM Employee e JOIN Department d ON e.Department = d works fine in Admin, but how to make it useful in Db.SQL? What it should return and how to access it?
  • SELECT e.LastName, e.FirstName FROM Employee e FETCH 5 - how to use it in Db.SQL?

The question is what if we are returning more than one object in a row (ex. 1) or it's not an object at all (ex. 2). Users expect that all of our SQL works fine in DB.Sql, but it's not obvious how to use it.

Link to relevant page:

  1. https://docs.starcounter.io/guides/database/querying-using-sql/
  2. https://docs.starcounter.io/guides/SQL/joins/

@joozek78 @miyconst - any comments?
cc @Mackiovello

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions