Changes between Version 15 and Version 16 of WikiStart/AdvancedReports
- Timestamp:
- 01/29/24 17:36:57 (12 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiStart/AdvancedReports
v15 v16 357 357 DECLARE correct_student_id INT; 358 358 SET correct_student_id = 11111; 359 DECLARE c_subject VARCHAR(255); 360 SET c_subject = 'Bazi na podatoci'; 359 361 360 362 WITH SubjectBooks AS ( 361 363 SELECT 362 364 rb.book_id, 363 rb.book_title, 365 sbb.book_title, 366 sbb.book_edition, 364 367 ba.author_id, 365 368 a.author_name … … 367 370 recommended_book AS rb 368 371 JOIN 372 subject_at_term AS sat ON 373 rb.term_subject_id = sat.term_subject_id 374 AND rb.term_type = sat.term_type 375 AND rb.starting_year = sat.starting_year 376 AND rb.finishing_year = sat.finishing_year 377 AND rb.student_id = sat.student_id 378 JOIN 379 subject_book AS sbb ON rb.book_id = sbb.book_id 380 JOIN 369 381 book_author AS ba ON rb.book_id = ba.book_id 382 JOIN 383 author AS a ON ba.author_id = a.author_id 370 384 WHERE 371 rb.subject_name = 'Bazi na podatoci'385 sat.subject_name = c_subject 372 386 AND rb.student_id = correct_student_id 373 387 ) … … 376 390 sb.book_id, 377 391 sb.book_title, 392 sb.book_edition, 378 393 sb.author_id, 379 394 sb.author_name