SQL Server Dasar
SQL Server Dasar
Dasar Database
Mengenalkan Inti Basis Data
Relational Database Management System (RDBMS)
Adalah system penyimpanan data berbasis komputer yang elemen pokoknya adalah tabel-tabel yang
saling berhubungan satu sama lain, dengan masing-masing tabel memiliki kolom-kolom yang digunakan
sebagai tempat untuk menyimpan data/informasi.
Kardinalitas Relasi
Jumlah sebuah entitas pada suatu tabel yang berelasi dengan sejumlah entitas yang ada di tabel lain
yang berelasi dengan tabel yang pertama.
Banyak-ke-banyak
Satu-ke-banyak
Satu-kesatu
Normalisasi
Bentuk Normal Pertama : Menghilangkan atribut bernilai banyak (multivalues attribute)
Bentuk Normal Kedua : Menghilangkan ketergantungan fungsional (functional dependency)
Bentuk Normal Ketiga : Menghilangkan ketergantungan transitif (transitive dependency)
Boyce-Codd Normal Form : Menghilangkan semua anomali tersisa dari ketergantungan
fungsional
Bentuk Normal Keempat : Menghilangkan semua anomalidari ketergantungan banyak nilai
SQL Server
SQL Server Management Studio (SSMS)
Adalah kakas antarmuka pengguna berbasis GUI yang mapu mengkomunikasikan apa yang pengguna
harapkan ke engine dan basis data SQL Server. Default Database : master, tempdb, model, msdb
OTAP (Online Analytical Processing) : jarang berubah, tidak perlu index, tabel berukuran besar, tidak
ternormalisasi dan seperti gudang data (data warehouse).
Istilah Umum
Database Management System (DBMS)
DBMS is also used to perform administrative tasks on the databases and objects contained within the
database. DBMS is a collection of applications that allows users and other programs to capture and
analyze data by providing additional functionality like reporting services to help you create, deploy, and
manage reports for your organization.
A RDBMS is a software system designed to allow the definition, creation, querying, and updating of data
stored in relational databases. A few examples of RDBMS include; Microsoft SQL Server, Microsoft
Access, and MySQL
Database Server
Database Management System (DBMS) is used by the users to access the data stored in database files.
Databases are stored on database servers which are dedicated physical or virtual servers that host the
database files and provide high-level performance for users who are accessing the data.
A database server can have one default instance and several named instances of SQL Server. A SQL
Server instance is a copy of the sqlservr.exe program that runs as a Windows operating system service.
A combination of PRIMARY KEY and FOREIGN KEY constraints can be used to help enforce referential
integrity of your database. In addition to a foreign key referencing a primary key constraint, a foreign
key can also reference a UNIQUE constraint to help maintain referential integrity.
Triggers can also be used to enforce referential integrity, however being triggers require code they don’t
execute as quickly as table properties such as a primary key constraint.