tags:

views:

43

answers:

3
+2  Q: 

sql statement help

Hello,

I have a table which called people, and I have there 2 columns, name and age

How can i select the names with age above 15 for example ?

Thanks

+4  A: 
SELECT name FROM people WHERE age > 15
Mark Byers
That will get the people with an age of 16 and above. You want to use >= 15 to get the people with an age of 15 and above.
Guffa
+1  A: 
select name from people where age > 15
Alon
+2  A: 
SELECT name, age
FROM people
WHERE age >= 15
Anthony Faull
+1 for using the >= operator
Guffa