Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-1837

Need to extend and clean-up SQL++ and AQL Primers (101s)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Might add some/all of these, as well as maybe drop the stuff about hints.
      USE TinySocial;

      – Find chirps whose referred topics list includes "iphone"
      – using the SQL++ IN operator

      SELECT VALUE cm
      FROM ChirpMessages cm
      WHERE "iphone" IN cm.referredTopics;

      – Find chirps whose referred topics list includes "iphone"
      – using existential quantification in SQL++

      SELECT VALUE cm
      FROM ChirpMessages cm
      WHERE SOME rt IN cm.referredTopics SATISFIES rt = "iphone";

      – Print a topic-ordered list of the user name/referred topic
      – pairs for Chirp messages

      SELECT DISTINCT cm.user.screenName, rt
      FROM ChirpMessages cm, cm.referredTopics rt
      ORDER BY rt;

      Attachments

        Activity

          People

            dtabass Michael J. Carey
            dtabass Michael J. Carey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: