SlideShare a Scribd company logo
1 of 1
Download to read offline
LATIHAN PRA UAS
Perhatihan table Mahasiswa, Matakuliah dan table Nilai, di bawah ini :
Mahasiswa Nilai
Nim Nama Jkl Nim Kd_mt nilai
101080201 AHMAD JUNAIDI L 101080201 TI00001 A
101080202 SAIFUL GUNAWAN L 101080201 TI00002 E
101080203 ANAM MA’RUF L 101080201 TI00003 C
101080204 ROBERT L 101080202 TI00001 B
101080202 TI00004 C
Matakuliah 101080203 TI00001 C
Kd_mt Nm_mt Sks 101080203 TI00002 A
TI00001 Kalkulus 3 101080203 TI00003 A
TI00002 Database Lanjut 3 101080203 TI00004 B
TI00003 Jaringan Komputer 2 101080204 TI00001 D
TI00004 Algo & Struktur Data 3 101080204 TI00004 C
Tuliskan Perintah SQL dan data hasilnya untuk permintaan Query berikut :
1. Buatkan Perintah SQL untuk membuat table-table di atas lengkap dengan Primary Key dan
foreign key dari tiap table. (urutan pembuatan table sangat mempengaruhi keberhasilan dalam
membuat table)
2. Tuliskan perintah untuk menginputkan data dari ketiga table di atas. (urutan penginputan table
sangat mempengaruhi keberhasilan dalam menginputkan data di table)
3. Tampilkan NIM, Nama Mahasiswa, matakuliah dan Nilai untuk semua mahasiswa !
4. Tampilkan NIM, Nama Mahasiswa, matakuliah dan Nilai untuk semua mahasiswa yang
Nilainya D atau E !
5. Tampilkan NIM, Nama Mahasiswa, matakuliah dan Nilai untuk semua mahasiswa yang
Nilainya di antara A dan C !
6. Tampilkan NIM, Nama Mahasiswa dan Nilai untuk kode matakuliah ’TI00004’ yang
mempunyai nilai A, B atau C !
7. Tampilkan NIM, Nama Mahasiswa untuk mahasiswa yang mengambil matakuliah ‘Database
Lanjut’ !
8. Tampilkan Nama mahasiswa yang mendapatkan nilai A dengan urutan descending !
9. Tampilkan kd_mt, nm_mt dan sks dari matakuliah yang diambil oleh mahasiswa ‘ROBERT’!
10. Tampilkan nama mahasiswa, nama matakuliah dan nilai untuk mahasiswa mendapat nilai D
atau E !
11. Tampilkan NIM, Nama Mahasiswa yang mengambil semua matakuliah yang ada !
12. Tampilkan NIM, Nama Mahasiswa yang lulus dari lebih dari 2 matakuliah ( Nilai A, B, C :
Lulus; nilai D, E : Tidak Lulus )

More Related Content

Featured

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 

Featured (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

uasPra uas db_lanjut

  • 1. LATIHAN PRA UAS Perhatihan table Mahasiswa, Matakuliah dan table Nilai, di bawah ini : Mahasiswa Nilai Nim Nama Jkl Nim Kd_mt nilai 101080201 AHMAD JUNAIDI L 101080201 TI00001 A 101080202 SAIFUL GUNAWAN L 101080201 TI00002 E 101080203 ANAM MA’RUF L 101080201 TI00003 C 101080204 ROBERT L 101080202 TI00001 B 101080202 TI00004 C Matakuliah 101080203 TI00001 C Kd_mt Nm_mt Sks 101080203 TI00002 A TI00001 Kalkulus 3 101080203 TI00003 A TI00002 Database Lanjut 3 101080203 TI00004 B TI00003 Jaringan Komputer 2 101080204 TI00001 D TI00004 Algo & Struktur Data 3 101080204 TI00004 C Tuliskan Perintah SQL dan data hasilnya untuk permintaan Query berikut : 1. Buatkan Perintah SQL untuk membuat table-table di atas lengkap dengan Primary Key dan foreign key dari tiap table. (urutan pembuatan table sangat mempengaruhi keberhasilan dalam membuat table) 2. Tuliskan perintah untuk menginputkan data dari ketiga table di atas. (urutan penginputan table sangat mempengaruhi keberhasilan dalam menginputkan data di table) 3. Tampilkan NIM, Nama Mahasiswa, matakuliah dan Nilai untuk semua mahasiswa ! 4. Tampilkan NIM, Nama Mahasiswa, matakuliah dan Nilai untuk semua mahasiswa yang Nilainya D atau E ! 5. Tampilkan NIM, Nama Mahasiswa, matakuliah dan Nilai untuk semua mahasiswa yang Nilainya di antara A dan C ! 6. Tampilkan NIM, Nama Mahasiswa dan Nilai untuk kode matakuliah ’TI00004’ yang mempunyai nilai A, B atau C ! 7. Tampilkan NIM, Nama Mahasiswa untuk mahasiswa yang mengambil matakuliah ‘Database Lanjut’ ! 8. Tampilkan Nama mahasiswa yang mendapatkan nilai A dengan urutan descending ! 9. Tampilkan kd_mt, nm_mt dan sks dari matakuliah yang diambil oleh mahasiswa ‘ROBERT’! 10. Tampilkan nama mahasiswa, nama matakuliah dan nilai untuk mahasiswa mendapat nilai D atau E ! 11. Tampilkan NIM, Nama Mahasiswa yang mengambil semua matakuliah yang ada ! 12. Tampilkan NIM, Nama Mahasiswa yang lulus dari lebih dari 2 matakuliah ( Nilai A, B, C : Lulus; nilai D, E : Tidak Lulus )