خرید بک لینک

Vote count: 0

in my query:

select t1.id, case when (t1.a) like 'app%' then 'fruit' end as 'Fruits', case when (t1.a) like 'car%' then 'veggie' end as 'Veggies'

here is how my output is:

id Fruits 1 fruit 1 2 veggie 2

I see that in the output, I get two rows, one with a match 'fruit'/'veggie' and one with null. Why is the query retuing a null row as well? Sorry if my example is not that great. Basically I am trying to create 2 more columns with some text identifiers.

asked 33 secs ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 28 فروردين 1395 ساعت: 4:31

صفحه بندی