Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-36075

Example of DISTINCT does not work

    XMLWordPrintable

Details

    Description

      https://mariadb.com/kb/en/getting-data-from-mariadb/ is an introductory tutorial. In it is an example of using "DISTINCT" in a query but the example does not seem to actually work (multiple hits for "Crime & Punishment" are shown instead of just one as the article indicates should result).

      The query in question is

      SELECT DISTINCT isbn, title
      FROM books
      JOIN authors USING (author_id)
      WHERE name_last = 'Dostoevsky'
      ORDER BY title;
      

      Attached is a script which creates the data from the examples and runs the query .

      Attachments

        Activity

          People

            greenman Ian Gilfillan
            jimav Jim Avera
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.