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?

asked 23 May '13, 16:25

AustinDrum's gravatar image

AustinDrum
31113
accept rate: 0%


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
permanent link

answered 23 May '13, 16:55

Jeff%20Albion's gravatar image

Jeff Albion
10.7k171174
accept rate: 24%

1

12 seconds! ...you beat me by 12 seconds :)

(23 May '13, 16:56) Breck Carter
Replies hidden

How simple - thanks very much!!!!

(23 May '13, 17:00) AustinDrum
2

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

(23 May '13, 17:04) Jeff Albion
Comment Text Removed

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

permanent link

answered 23 May '13, 16:56

Breck%20Carter's gravatar image

Breck Carter
25.6k427586844
accept rate: 20%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×48

question asked: 23 May '13, 16:25

question was seen: 838 times

last updated: 23 May '13, 17:09