cancel
Showing results for 
Search instead for 
Did you mean: 

Select From Select

Former Member
2,706

I have a select statement: Select * from A key join B where B.something = something I only want the columns from A to be returned - is this possible without listing all the column names?

Accepted Solutions (0)

Answers (2)

Answers (2)

jeff_albion
Advisor
Advisor

I only want the columns from A to be returned - is this possible without listing all the column names?

Yes:

Select A.* from A key join B where B.something = something
Breck_Carter
Participant

12 seconds! ...you beat me by 12 seconds 🙂

Former Member
0 Kudos

How simple - thanks very much!!!!

jeff_albion
Advisor
Advisor

So close! The good news is that it's the same answer - a rarity in SQL re-writes. 🙂

Breck_Carter
Participant

Select A.* from A key join B where B.something = something