Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Training1
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
CREATE TABLE tblMahasiswa ([NIM] varchar(13), [Nama] varchar(57)) ; CREATE TABLE tblMataKuliah ([Id] varchar(13), [MataKuliah] varchar(57)) ; CREATE TABLE tblMahasiswaMatakuliah ([NIM] varchar(13), [MataKuliahId] varchar(13)) ; INSERT INTO tblMahasiswa ([NIM], [Nama]) VALUES ('003','Agus'), ('001','Budi'), ('002','Iwan') ; INSERT INTO tblMataKuliah ([Id], [MataKuliah]) VALUES ('013','Kalkulus'), ('012','Algorithma'), ('011','Aljabar Linear') ; INSERT INTO tblMahasiswaMatakuliah ([NIM], [MataKuliahId]) VALUES ('001','011'), ('001','012'), ('001','013'), ('002','012'), ('002','013'), ('003','013') ; --SELECT * FROM tblMahasiswa --SELECT * FROM tblMahasiswaMatakuliah --SELECT * FROM tblMatakuliah SELECT * FROM tblMahasiswa WHERE Nama='Agus' ORDER BY NIM --LEFT JOIN tblMahasiswaMatakuliah ON tblMahasiswa.NIM=tblMahasiswaMatakuliah.NIM --LEFT JOIN tblMatakuliah ON tblMatakuliah.Id=tblMahasiswaMatakuliah.MataKuliahId
View schema
Execution time: 0,03 sec, rows selected: 1, rows affected: 12, absolute service time: 0,19 sec, absolute service time: 0,2 sec
edit mode
|
history
|
discussion
NIM
Nama
1
003
Agus