0

Where condition.

I want to know that whether we can test a condition from a column which is not there in the query or not.

6th Aug 2016, 10:05 AM
Sarthak Mathur
Sarthak Mathur - avatar
2 odpowiedzi
+ 5
You can perform a WHERE filter on columns that you have either: Selected FROM Added with JOIN Renamed or created using AS If you are selecting a select number of columns you are indeed able to filter on the columns you have not selected. example of above: SELECT `title`, `body`, `date` FROM news WHERE `author` = 'Steve' author is not returned in the result set but can be filtered on.
7th Aug 2016, 5:07 AM
Nathan “Grimston” Pipes
Nathan “Grimston” Pipes - avatar
0
Nathan answered all you need, Sathak! Greetings.
11th Aug 2016, 6:56 PM
Bruno Rizzato C. Pina
Bruno Rizzato C. Pina - avatar