Hi,
Need Suggestion for a query

user_id source
I need all user_id having source value=1,2
but source 2 user should have url like '%facebook%'

WHERE user_id = 1
OR (user_id = 2 AND source LIKE '%facebook%')

If that's not what you mean, show some sample data and required result.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.