3zwkxp9qa 

   
   

Output:

Tables_in_sandbox_db
employees
Field	Type	Null	Key	Default	Extra
employee_id	int	YES		NULL	
first_name	varchar(20)	YES		NULL	
last_name	varchar(25)	YES		NULL	
email	varchar(25)	YES		NULL	
phone_number	varchar(20)	YES		NULL	
hire_date	date	YES		NULL	
job_id	varchar(10)	YES		NULL	
salary	int	YES		NULL	
commission_pct	int	YES		NULL	
manager_id	int	YES		NULL	
department_id	int	YES		NULL	
employee_id	first_name	last_name	email	phone_number	hire_date	job_id	salary	commission_pct	manager_id	department_id
1	anjali	attri	abc@gmail.com	5678987634	1999-06-12	aa11	1000000	20000	10	5
2	mahesh	sahu	def@gmail.com	3478987634	1998-08-14	ms12	1500000	25000	8	4
3	komal	singh	xyz@gmail.com	2367987634	2000-04-22	ks13	2000000	30000	10	5
4	ankita	chaudhary	mno@gmail.com	3734737547	1997-11-23	ac14	1800000	40000	8	4
5	garima	jain	gfh@gmail.com	3278954634	1999-06-12	gj15	4000000	80000	10	5
6	sudhir	patel	yud@gmail.com	8976543021	2000-10-05	sp16	3000000	50000	6	3
employee_id	manager_id	salary
1	10	1000000
2	8	1500000
3	10	2000000
4	8	1800000
5	10	4000000
6	6	3000000
m	count(employee_id)
10	3
8	2
6	1
h	count(employee_id)
2000-10-05	1
2000-04-22	1
1999-06-12	2
1998-08-14	1
1997-11-23	1
maxrange	minrange
4000000	1000000
employee_id
6
5
max(salary)	department_id
4000000	5
1800000	4
3000000	3
employee_id	salary
1	1000000
2	1500000
4	1800000
3	2000000
6	3000000
first_name	REVERSE_firstname
anjali	ilajna
mahesh	hseham
komal	lamok
ankita	atikna
garima	amirag
sudhir	rihdus
manager_id	employee_id	department_id
10	1	5
8	2	4
10	3	5
8	4	4
10	5	5
6	6	3
employee_id	salary	salary_values
1	1000000	low
2	1500000	mid
3	2000000	high
4	1800000	mid
5	4000000	high
6	3000000	high

ERROR 1054 (42S22) at line 21: Unknown column 'day' in 'where clause'

MySQL online editor

Write, Run & Share MySQL queries online using OneCompiler's MySQL online editor and compiler for free. It's one of the robust, feature-rich online editor and compiler for MySQL. Getting started with the OneCompiler's MySQL editor is really simple and pretty fast. The editor shows sample boilerplate code when you choose language as 'MySQL' and start writing queries to learn and test online without worrying about tedious process of installation.

About MySQL

MySQL is a open-source, free and very popular relational database management system which is developed, distributed and supported by Oracle corporation.

Key Features:

  • Open-source relational database management systems.
  • Reliable, very fast and easy to use database server.
  • Works on client-server model.
  • Highly Secure and Scalable
  • High Performance
  • High productivity as it uses stored procedures, triggers, views to write a highly productive code.
  • Supports large databases efficiently.
  • Supports many operating systems like Linux*,CentOS*, Solaris*,Ubuntu*,Windows*, MacOS*,FreeBSD* and others.

Syntax help

Commands

1. CREATE


Example


2. ALTER


Example


3. TRUNCATE


4. DROP


5. RENAME


6. COMMENT

Single-Line Comments:


Multi-Line comments:


DML Commands

1. INSERT


Note: Column names are optional.

Example


2. SELECT


Example


3. UPDATE


Example


4. DELETE


Example


Indexes

1. CREATE INDEX


  • To Create Unique index:

2. DROP INDEX


Views

1. Create a View


2. How to call view


3. Altering a View


4. Deleting a View


Triggers

1. Create a Trigger


2. Drop a Trigger


Stored Procedures

1. Create a Stored Procedure


2. How to call Stored procedure


3. How to delete stored procedure


Joins

1. INNER JOIN


2. LEFT JOIN


3. RIGHT JOIN


4. CROSS JOIN



© Copyright 2025 One Compiler Pvt. Ltd. | Privacy Policy | Terms & Conditions