SQL SELECT Statement

SHOW Table:

select * from employeeinfo;

name age address salary
Komal 25 Mumbai 5000
Ramesh 35 Delhi 4500
Kaushik 31 Indore 10000
Hardik 22 Hyderabad 8500
Aishwarya 28 Bangalore 6500
Akshaya 29 Delhi 5000

SELECT Statement:

SELECT * from employeeinfo where name=’Ramesh’;

name age address salary
Ramesh 35 Delhi 4500

SELECT name,age from employeeinfo;

name age
Komal 25
Ramesh 35
Kaushik 31
Hardik 22
Glory 28
Akshaya 29

Leave a Reply

Your email address will not be published. Required fields are marked *