Anonymous

Not logged in

  • Log in
SQLZoo

Hacks Reference

From SQLZoo

Namespaces

  • Page
  • Discussion

More

  • More

Page actions

  • Read
  • View source
  • History
SQL HACKS

Hack 10 Converting subqueries into joins

Hack 11 Converting aggregate subqueries into joins

Hack 14 Generate Combinations

Hack 16 Search for a String across columns

Hack 24 Multiply Across a Result Set

Hack 25 Keep a running total

Hack 25.5 Splitting and combining columns

Hack 26 Include the rows your JOIN forgot

Hack 30 Calculate the maximum/minimum of two fields

Hack 33 Get values and subtotals in one shot

Hack 50 Combine tables containing different data

Hack 51/52 Display rows as columns

Hack 55 Import Someone Else's Data

Hack 62 Issue Queries Without Using a Table

Hack 63 Generate rows without tables

Hack 70 Combine your queries

Hack 72 Extract a subset of the results

Hack 78 Break it down by Range

Hack 88 Test two values from a subquery

Hack 98 Find and stop long running queries

Hack 100 Run SQL from a Web Page

Retrieved from "https://sqlzoo.net/w/index.php?title=Hacks_Reference&oldid=2391"

Navigation

  • SELECT basics
  • quiz
  • SELECT from world
  • quiz
  • SELECT from nobel
  • quiz
  • SELECT in SELECT
  • quiz
  • SUM and COUNT
  • quiz
  • JOIN
  • quiz
  • More JOIN
  • quiz
  • Using NULL
  • quiz
  • Self JOIN
  • quiz

Reference

  • NoSQL zoo
  • SELECT
  • Functions
  • SELECT .. WHERE
  • SELECT .. GROUP BY
  • SELECT .. JOIN
  • SELECT .. SELECT
  • INSERT .. VALUES
  • INSERT .. SELECT
  • UPDATE
  • DELETE
  • CREATE TABLE
  • CREATE VIEW
  • CREATE INDEX
  • DROP
  • ALTER
  • UNION
  • LEFT JOIN
  • NULL

Wiki tools

Wiki tools

  • Special pages

Page tools

Page tools

    User page tools

      More

      • What links here
      • Related changes
      • Printable version
      • Permanent link
      • Page information
      • Page logs
      • Powered by MediaWiki
      • This page was last modified on 24 July 2012, at 14:34.
      • Privacy policy
      • About SQLZoo
      • Disclaimers