linking database column entries if a is this then b is that

R

Renae96

I need help in linking several columns. If the first column is on thing then
that determines the contents of 3 other columns. How do you link them?
 
S

Stefan Hoffmann

hi,
I need help in linking several columns. If the first column is on thing then
that determines the contents of 3 other columns. How do you link them?
This makes no sense.

The only thing I can imagine:

SELECT
firstColumn,
IIf(firstColumn=oneThing, columnA, columnD),
IIf(firstColumn=oneThing, columnB, columnE),
IIf(firstColumn=oneThing, columnC, columnF)
FROM
yourTable

mfG
--> stefan <--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top