1. informacje
    1. Leszek Kwaśniewski
      1. leszek.kwasniewski@abcdata.pl
    2. egzamin
      1. 70-433
    3. student
      1. P@ssw0rd
    4. hyper v
      1. Pa$$w0rd
    5. skróty
      1. p alt + p ctrl + break
      2. ctrl + alt + end
  2. start
    1. tools
      1. SQL Server Management Studio
      2. SQL Server Comfiguration Manager
      3. SQL Server Profiler
      4. Database Engine Tunning Advisor
      5. Business Intelligence Development Studio
    2. engine components
      1. protocols
      2. relational
      3. storage
      4. SQLOS
        1. API
    3. server components
      1. engine
      2. analysis
      3. reporting
      4. integration
    4. objects
      1. tables
        1. contain data
      2. views
        1. automat
        2. virtual table
        3. select statment
      3. indexes
        1. posortowane
        2. lokalizacja
        3. structure
      4. triggers
        1. wyzwalacze
        2. na tabelach zdarzenia
          1. insert
          2. update
          3. delete
      5. procedures
        1. logika
      6. constraints
        1. unikalnosc
        2. relacje kluczy obcych
        3. domena dopuszczalnych wartości
        4. zachowanie reguł
      7. rules
    5. data types
      1. exact numerics
        1. int
        2. bigint
        3. smallint
        4. decimal
        5. numeric
        6. money
        7. smallmoney
      2. unicode character strings
        1. ASCI
        2. ciagi znakowe - ąść
      3. approximate numerics
      4. binary strings
      5. date and time
      6. otrher data types
      7. character strings
      8. my data types
        1. connect with claass
    6. statements
      1. DML
        1. manipulating
          1. insert
          2. update
          3. delete
      2. DCL
        1. control
          1. grant
      3. DDL
        1. definition
          1. create
      4. TCL
        1. transactional control
          1. begin
          2. commit
          3. rolback
      5. DQL
        1. select statments
          1. select
    7. operators
      1. arithmetic
        1. +
        2. -
        3. *
        4. /
      2. assginment
        1. =
      3. comparison
        1. =
        2. <
        3. >
        4. <>
        5. !
        6. >=
        7. <=
      4. logical
        1. and
        2. or
        3. not
      5. strong concatenation
        1. +
    8. LAB
      1. logowanie
        1. server type
        2. server name
          1. instancja
          2. podajesz nazwe
          3. .
          4. komputer lokalny
          5. domyslna
          6. .\instancja\
        3. authentication
          1. windows
          2. sql server
          3. zapisane w instancji sqlowej i tam sprawdzane
      2. obsługa
        1. ctrl + alt + l
          1. solution
          2. rozwiazania
        2. new / project / sql server scripts
        3. solution / new solution
        4. queries / new query
          1. use...
          2. wskazujesz baze
          3. F5
          4. execute
          5. zapisz zapytanie
          6. SQLCMD
          7. wywolwanie zapytan
          8. select @@version; select user_id; go
  3. select
    1. *
      1. nie wydajne, bo trzeba odpytac kolejne kolumny
    2. lepiej listowac kolumny
    3. predicate
      1. null
        1. porownanie null z nullem?
          1. null <> null
        2. wartosc nieokeslona
    4. comparison
      1. <>, !=
      2. contains
        1. zawiera
        2. przy tekscie
      3. freetext
      4. %
        1. dowolny znak
      5. _
        1. lokalizacja jednego znaku
    5. operator
      1. any, between, in, like, or, some
    6. index
      1. dla optymalizacji
    7. isnull(MaxQty,0)
    8. coalesce
      1. szuka po koleji wartosci nie null
    9. nullif
      1. jesli rowne kolumny to zwroc null
    10. if exists
      1. jesli oddaje jakiekolwiek zapytanie
    11. LAB
    12. aggregate
      1. compute
      2. compute by
      3. having
      4. count
      5. avg
        1. a null?
          1. ilosc wierszy
          2. is null
      6. max
      7. min
      8. some
    13. grupowanie
      1. group by
      2. group by + having
      3. group by rollup
        1. suma koncowa dla wszystkich
      4. group by cube
        1. rozne polaczenia
    14. rankingi
      1. rank
      2. dense_rank
      3. row_number
      4. ntile
    15. transpozycja
      1. pivot
      2. unpivot
    16. join
      1. inner join
        1. wiersze w jednej i drugiej
      2. outer join
        1. left
        2. right
        3. full
      3. cross join
        1. wszystkie
      4. self join
    17. union all
      1. łączenie
      2. liczba kolumn taka sama
  4. ciekawe
    1. pivot
      1. transpozycja
  5. widoki systemowe
    1. sys.obcjects
    2. sys.tables
    3. sys.views
  6. widoki
    1. create view