This is a good SQL editor:
https://www.tutorialspoint.com/execute_sql_online.php
Good online SQL compiler:
https://onecompiler.com/mysql/
try this online tool, it's free and support multilangs (SQL, MySQL, C, C++, PHP, Node, Deno, ..etc)
https://www.mycompiler.io/new/sql
-- try this for online sql (not sponsored)
https://www.programiz.com/sql/online-compiler/
-- 3 col view of whole page
-- left table schema
-- center query input + output
-- right table view
1234567891011
-- create a tableCREATE TABLE students ( id INTEGER PRIMARY KEY, name TEXT NOT NULL, gender TEXT NOT NULL);-- insert some valuesINSERT INTO students VALUES (1, 'Ryan', 'M');INSERT INTO students VALUES (2, 'Joanna', 'F');-- fetch some valuesSELECT * FROM students WHERE gender = 'F';
12
Create table sub (sub_id number (3) primary key, sub_name varchar2 (10), Sub_code number (3), sub_id number(3), foreign key (sub_id) references sub (sub_id));
12
CREATE TABLE EMPLOYEE(NAME VARCHAR2(20),EMAIL VARCHAR2(20),DOB date);INSERT INTO EMPLOYEE VALUES('ROHAN','rehangmailcom','20');