SQL query approach for matching multiple colums from one table to one - Microsoft Community


hi there,

just general question on best approach sql code. want create query value in 2 columns , compare value value in 1 column in table. don't ask me why tables set way, lol. i'm trying pull data.

here's basic set illustration , code ---can advise if best approach getting desired results?

p.s. not sure if forum handles sql questions?

thanks in advance everyone!

select * from
orders a, lookup b

'filter results show ordernos either status of size or color of item discontinued
(a.size=b.attrib_value , b.status="discontinued")
or (a.color=b.attrib_value , b.status="discontinued");

we appreciate time responding information need direct right forum. suggest post query in msdn forum comprised of specialists , developers can provide advanced assistance , answers specific concern.

regards.



Office / Unknown/other / Windows 10 / Unknown/other



Comments

Popular posts from this blog

Can't Sign-in to OneDrive - Microsoft Community

Shared mailbox permissions - Microsoft Community

Outlook 2016 for Mac - Multiple Issues, Error 17884 - Microsoft Community