SQLize
Online
/
PHPize Online
/
SQLtest Online
A
A
A
Share
Donate
Blog
Popular
Donate
A
A
A
Share
Blog
Popular
SQLize.online is a free online SQL environment for quickly running, experimenting with and sharing code.
You can run your SQL code on top of the most popular RDBMS including MySQL, MariaDB, SQLite, PostgreSQL, Oracle and Microsoft SQL Server.
SQL code:
Upload
Copy
Format
Clear
SELECT s.student_id, student_name, gender, mobile_number, email_address, birth_date, qualification, r.registration_id, registration_date, discount, c.course_id, course_name, cf.fee_id, fee_mode, gst, fees_amount, (fees_amount * (1 + gst / 100)) AS total_fees_before_discount, (fees_amount * (1 + gst / 100)) - discount AS total_fees_after_discount, ( SELECT SUM(p.payment_amount) FROM tblstudent_payments p WHERE p.registration_id = r.registration_id ) AS total_paid_fees, ( (fees_amount * (1 + gst / 100)) - discount - ( SELECT SUM(p.payment_amount) FROM tblstudent_payments p WHERE p.registration_id = r.registration_id ) ) AS remaining_fees, p.payment_date, payment_mode, p.payment_amount, p.payment_description FROM tbltraining_courses c JOIN tbltraining_course_fees cf ON c.course_id = cf.course_id JOIN tbltraining_course_topics ctopic ON c.course_id = ctopic.course_id JOIN tbltraining_topics tp ON ctopic.topic_id = tp.topic_id JOIN tbltopic_contents ct ON tp.topic_id = ct.topic_id JOIN tblstudent_registrations r ON cf.fee_id = r.fee_id JOIN tblstudent_details s ON s.student_id = r.student_id LEFT JOIN tblstudent_payments p ON r.registration_id = p.registration_id
SQL
Server:
MySQL 5.7
MySQL 5.7 Sakila (ReadOnly)
MySQL 8.0
MySQL 8.0 Sakila (ReadOnly)
MariaDB 11.5
SQLite 3
SQLite 3 Preloaded
PostgreSQL 10 Bookings (ReadOnly)
PostgreSQL 11
PostgreSQL 12
PostgreSQL 13
PostgreSQL 14
PostgreSQL 15
MS SQL Server 2017
MS SQL Server 2019
MS SQL Server 2022
MS SQL Server 2022 AdventureWorks (ReadOnly)
Firebird 4.0
Firebird 4.0 (Employee)
Oracle Database 19c (HR)
Oracle Database 21c
Oracle Database 23c Free
SOQOL
Version
ER Diagram
Preserve result
Stuck with a problem?
Got Error?
Ask ChatGPT!
Result:
Copy
Clear