From 5aeddd561cc9e4514c1f1722429120e9b032352c Mon Sep 17 00:00:00 2001 From: jnbao96 Date: Mon, 29 Jun 2026 17:19:45 +0200 Subject: [PATCH] SQL June 29 DONE --- .DS_Store | Bin 0 -> 6148 bytes files_for_lab/.DS_Store | Bin 0 -> 6148 bytes files_for_lab/Solutions_260629.sql | 18 ++++++++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 .DS_Store create mode 100644 files_for_lab/.DS_Store create mode 100644 files_for_lab/Solutions_260629.sql diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..3ef0119d2c7528865aea96a0644adb6aaf141974 GIT binary patch literal 6148 zcmeHKPfrs;6n_Inwji=Vi(oX_*oz4Sfr#1|LoFDs9w0735U}ocr)6ck)9h}kNJx6t z#1G&H@B?__$i<^q4_^EN9z1)|H-8%bDM! za7^@I^#|eoyquB_W$8jBB1Z^CC_?xTS5iLh`w_ z!f(3XT4S=O_k7=letlqYXdpF^PN#=2j*MO!yO8vD;;5rNCa!8|Dl?+;4>^SnhC zx{=HL)%6f*FGRFj@XHKG+(yb5YP>64ra_2!DrRNFvux@u_<0sZth#Cif#p|deusPV zY`BocfbvXYY_n#ST)&c;{ULeH&!6_{ZauX)e%BgUUSQ$E{hAU*2v+Jk77D+LN3aONK7%WWIfYG$XhDg81OyFn K6*KTp8Tbv-Hty>H literal 0 HcmV?d00001 diff --git a/files_for_lab/.DS_Store b/files_for_lab/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..664a35c4a7d32cdfaab96fe13ec6cf7889f64499 GIT binary patch literal 6148 zcmeHKyH3ME5S)V)k!V~}-WNp5ADpaEQ1bzRfdXL>A)t51XT$6Rgyp2AK(o^B`1W@0 z$5;bDIf);z>fmiH$M9;L9CV_w!|rr8CnS{F{mX+j1qL_Yu2^IDKO|LelyR>n@dh8 z#cyZ6dO1o9RFnczV6MPvEIaG}7xW|Z|D2?i6p#Y{N`bQ4UF~|lQufxx%UQ3j^c(uO pvDV8OycH9@6?0*&`21I0wP)_P#3|6}%sZW^9|6-vCI$XNfiI!e9K!$r literal 0 HcmV?d00001 diff --git a/files_for_lab/Solutions_260629.sql b/files_for_lab/Solutions_260629.sql new file mode 100644 index 0000000..f7201b7 --- /dev/null +++ b/files_for_lab/Solutions_260629.sql @@ -0,0 +1,18 @@ +select client_id FROM client where district_id = 1 LIMIT 5 +select client_id from client where district_id = 72 order by client_id DESC limit 1 +select amount from loan order by amount limit 3 +select DISTINCT status FROM loan order by status +SELECT loan_id from loan order by payments desc limit 1; +SELECT account_id, amount from loan order by account_id ASC LIMIT 5 +SELECT account_id from loan where duration = 60 order by amount +SELECT DISTINCT k_symbol from `order` +SELECT order_id from `order` where account_id=34 +Select DISTINCT account_id from `order` where order_id BETWEEN 29540 and 29560 +SELECT amount from `order` where account_to = 30067122 +SELECT trans_id, date, type, amount from trans where account_id = 793 order by date DESC LIMIT 10 +SELECT district_id, count(*) from client where district_id < 10 GROUP by district_id order by district_id +SELECT type, count (*) from card GROUP by type order by count(*) DESC +SELECT account_id, sum(amount) from loan group by account_id order by sum(amount) DESC LIMIT 10 +Select date, count(*) FROM loan where date <930907 group by date order by date desc +SELECT date, duration, count (*) FROM loan where date BETWEEN 971200 and 971231 GROUP by date , duration order by date , duration +SELECT account_id, type, sum(amount) from trans where account_id = 396 group by type \ No newline at end of file