on 2013 May 23 5:25 PM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
12 seconds! ...you beat me by 12 seconds 🙂
So close! The good news is that it's the same answer - a rarity in SQL re-writes. 🙂
Select A.* from A key join B where B.something = something
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
11 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.