Linux Fun
The WHERE clause can be enhanced to be more selective. Operators that can appear in WHERE conditions include: =, <> ,< ,> ,>= ,<= IN BETWEEN…AND… LIKE IS NULL AND, OR, NOT Example 1 Find the student ID of all math majors with more than 30 credit hours. SELECT STUID FROM STUDENT WHERE MAJOR = […]
Example 1 Retrieve all information about students (‘*’ means all attributes) SELECT * FROM STUDENT; STUID LNAME FNAME MAJOR CREDITS S1001 Smith Tom History 90 S1010 Burns Edward Art 63 S1015 Jones Mary Math 42 S1002 Chin Ann Math 36 S1020 Rivera Jane CIS 15 S1013 McCarchy Owen Math 9 Example 2 Find the last […]
The DML component of SQL is the part that is used to query and update the tables (once they are built via DDL commands or other means). By far, the most commonly used DML statement is the SELECT. It combines a range of functionality into one complex command. Used primarily to retrieve data from the […]
TABLES CREATE TABLE Define the structure of a new table Format: CREATE TABLE tablename ({col–name type [(size)][constraint],…}); The ‘constraint’ clause in the CREATE TABLE statement is used to enforce referential integrity. Specifically, PRIMARY KEY, FOREIGN KEY, and CHECK integrity can be set when you define the table. The syntax for key and check constraints is […]
Many database management systems support some version of structured query language (SQL). In some DBMSs (i.e., ORACLE) SQL is the primary data manipulation interface. Consequently, SQL is a very important topic. The purpose of this document is to introduce you to the major SQL statements and to show you how they work. This document will […]
Manajemen Struktur Basis Data Tanggung jawab DBA dalam menangani struktur basisdata adalah : Merancang skema DBA biasanya tidak terlibat dalam perancangan basisdata mulai dari awal. Oleh karena itu, setiap terjadi perubahan struktur basisdata yang berpengaruh pada skema / relasi antar tabel harus selalu dicatat Mengawasi terjadinya redundancy Redundancy dapat terjadi pada dua hal, yaitu performance […]
Manfaat basisdata bagi pemakai bukan pada sistem basisdatanya melainkan pada isinya, serta hasil-hasil dari query yang dihasilkan oleh program. Apabila selama dalam proses penerapan sistem ada perubahan basisdata, maka perubahan dan ujicoba dilakukan pada basisdata cadangan, agar tidak mengganggu sistem yang berjalan. Manajemen aktifitas data merupakan tugas dari DBA. Disamping itu, DBA juga bertugas untuk […]
Sebagai sarana untuk meyakinkan bahwa nilai-nilai data dalam sistem basis data selalu benar, konsisten, selalu tersedia. Dapat dilakukan dengan cara : Pastikan bahwa nilai-nilai data adalah benar sejak dimasukkan pertama kali Membuat program untuk mengecek keabsahan data pada saat dimasukkan ke komputer Penolakan / pembatalan aksi (cancelation) Pengisian nilai kosong pada field tertentu (nullify) Penjalaran […]
Performansi / kecepatan operasi ke basis data ditentukan oleh : DBMS yang digunakan Arsitektur perangkat keras yang menjadi platform Jumlah pemakai yang terlibat Volume data Tingkat kompleksitas operasi basis data Cara penulisan aplikasi Hal-hal yang perlu dipertimbangkan pada saat melaksanakan program Memanfaatkan Indeks Primer Sedapat mungkin memanfaatkan indeks primer / sekunder dalam setiap proses query […]
Pertimbangan dalam menentukan perangkat lunak pembangun aplikasi basis data, antara lain: Kecocokan Antara DBMS dan Development Tools Perangkat lunak yang dipilih harus dapat menjamin tersedianya fasilitas yang dapat digunakan untuk berinteraksi dengan DBMS secara penuh. Contoh : DBMS Development tools MS-SQL server MS Visual Basic Borland Interbase Borland Delphi CA-OpenIngres CA-OpenRoad Oracle Developer 2000 Dukungan […]