bookmate game
en
Walter Shields

SQL QuickStart Guide

Повідомити про появу
Щоб читати цю книжку, завантажте файл EPUB або FB2 на Букмейт. Як завантажити книжку?
  • Marija Stojanovićцитує2 роки тому
    SELECT
    *
    FROM
    invoices
    INNER JOIN
    customers
    ON
    invoices.CustomerId = customers.CustomerId
  • Marija Stojanovićцитує2 роки тому
    joins allow us to access fields from different tables.
  • Marija Stojanovićцитує2 роки тому
    ices with customer names.

    A JOIN clause merging both of these tables together would look like this:

    SELECT
    *
    FROM
    invoices
    INNER JOIN
    customers
    ON
    invoices.CustomerId = customers.CustomerId
  • Marija Stojanovićцитує2 роки тому
    When querying with dates, use the same operators used when querying with numbers: =, >, <, BETWEEN, etc.
  • Marija Stojanovićцитує2 роки тому
    When querying for dates, it is important to first take a look at how the date is stored in the table you are querying
  • Marija Stojanovićцитує2 роки тому
    WHERE
    InvoiceDate = '2009-01-03 00:00:00'
  • Marija Stojanovićцитує2 роки тому
    WHERE
    BillingCity NOT LIKE '%T%'
    ORDER BY
    Total
  • Marija Stojanovićцитує2 роки тому
    WHERE
    BillingCity LIKE '%T%'
    ORDER BY
    Total
  • Marija Stojanovićцитує2 роки тому
    SELECT InvoiceDate, BillingAddress, BillingCity, Total FROM invoices WHERE BillingCity LIKE 'T%' ORDER BY Total

    Počinje sa T -like'T%'

  • Marija Stojanovićцитує2 роки тому
    Wildcard characters will always be enclosed in single quotation marks. Without quotation marks, % is an arithmetic operator known as modulo,
fb2epub
Перетягніть файли сюди, не більш ніж 5 за один раз