Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-12426 Simba ODBC and JDBC drivers for SQL-92
  3. MB-13821

Define convention for handling duplicate column names

    XMLWordPrintable

Details

    • Technical task
    • Resolution: Won't Fix
    • Major
    • None
    • cbq-DP4, cbq-alpha
    • query
    • Security Level: Public
    • None

    Description

      From Simba:

      The following query returns the error "Duplicate result alias customerId.":

      “select purchases.customerId, customer.customerId from purchases join customer on keys purchases.customerId”

      This is not a viable solution for many BI tools. The equivalent SQL-92 syntax is perfectly valid because the column names are prefixed by the table: "select purchases.customerId, customer.customerId from purchases inner join customer on purchases.customerId"

      The above query can work if aliases are appended to the column names. i.e. “select purchases.customerId AS customerId1, customer.customerId AS customerId2 from purchases join customer on keys purchases.customerId”

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Prerna.Manaktala Prerna Manaktala (Inactive)
            colm Colm Mchugh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty