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
CREATE TABLE client_p (client_id number (20) primary key, name_client varchar2 (32), surname_client varchar2 (64), patronymic varchar2 (32), date_of_birth date, phone_number varchar2 (32), email varchar2 (64), address varchar2 (64) ); CREATE TABLE vehicle_m (car_number_v varchar2 (16) primary key, car_make varchar2 (32), car_model varchar2 (64), year_of_production number, mileage number, price_v number,city varchar2 (64), body_type varchar2 (32), transmission varchar2 (16), body_color varchar2 (32) ); CREATE TABLE contract (contract_id number primary key, date_con date, term_con number, advance_amount number, monthly_payment number, first_payment number, vechile_con varchar2 (16) NOT NULL, client_con number, last_payment_amount number, last_payment_date date, CONSTRAINT contract_vehicle_m_fk FOREIGN KEY (vechile_con) REFERENCES vehicle_m(car_number_v), CONSTRAINT contract_client_p_fk FOREIGN KEY (client_con) REFERENCES client_p(client_id) ); CREATE TABLE bought_vehicles (bought_vehicle_id number primary key, car_number_b varchar2(16) NOT NULL, ransom_amount number, date_bou date, CONSTRAINT bought_vehicles_vehicle_m_fk FOREIGN KEY (car_number_b) REFERENCES vehicle_m(car_number_v) ); CREATE TABLE crashes (crash_id number primary key, date_cr date, description_cr varchar2 (255), car_number_cr varchar2 (16), CONSTRAINT crashes_vehicle_m_fk FOREIGN KEY (car_number_cr) REFERENCES vehicle_m(car_number_v) ); CREATE TABLE repairs (repair_id number primary key, date_rep date, price number, car_number_rep varchar2 (16) NOT NULL, discription_rep varchar2 (255), CONSTRAINT repairs_vehicle_m_fk FOREIGN KEY (car_number_rep) REFERENCES vehicle_m(car_number_v) );
SQL
Server:
MariaDB 11.4
MariaDB 11.5
MariaDB 10
MariaDB 10 Sakila (ReadOnly)
MySQL 5.7
MySQL 5.7 Sakila (ReadOnly)
MySQL 8.0
MySQL 8.0 Sakila (ReadOnly)
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