SELECT
CONCAT([a], [b]) AS [c]
WHERE
[a] = [b]
Assuming this is a SQL query, you define the columns to return in the select list, not the where clauses. The syntax would be something like this, but this query itself would be pretty useless:
SQL:SELECT CONCAT([a], [b]) AS [c] WHERE [a] = [b]
As @Armageus said, some context or a code sample would help a lot here.
If a=b then they are the same. Why do you need to return 2 things the same? Just return one of them (and you can name it C if you want but I don't see what difference that makes?)where a=b
rather than have return a,b
is it possible to have
where [a=b] as C
return it as C ?
I am matching a list from two variables. To return a list that have the same key values leaving out key values they don't have in common.If a=b then they are the same. Why do you need to return 2 things the same? Just return one of them (and you can name it C if you want but I don't see what difference that makes?)
Worked it out.This is possible in SQL without subqueries etc - you may have a better chance of getting an answer if you just post example data structure and what the end result you want. It's not 100% clear from your posts
Could you please explain how you resolved it? I say this for my past and future self, scrolling through countless forum posts about definitely common and simple issues that are declared solved without the solution postedWorked it out.
Could you please explain how you resolved it? I say this for my past and future self, scrolling through countless forum posts about definitely common and simple issues that are declared solved without the solution posted