Hi! Could we please enable some services and cookies to improve your experience and our website?

SQLize | PHPize | SQLtest

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

A A A
Login    Share code      Blog   FAQ
Copy Format Clear
create table emp(empno int(4)primary key,empname varchar(30) NOT NULL,age int,designation varchar(40),sal decimal(12,2)); insert into emp values(1,'udita singh',28,'s/w eng.',75000); insert into emp values(2,'kiran ambekar',25,'project man.',12000.75); insert into emp values(3,'priya mehta',35,'analyst',68000.00); select * from emp; select * from emp where age>30 and sal>50000; select empname, designation, sal from emp order by empname desc; select max(sal) from emp; select designation,count(*) from emp group by designation having count(*)=1; insert into emp values(4,'nuatan ambekar',25,'project man.',21000.75); select * from emp;

Stuck with a problem? Got Error? Ask AI support!

Copy Clear