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