Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

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.8k171175
accept rate: 25%

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
32.5k5417261050
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:

×69

question asked: 23 May '13, 16:25

question was seen: 2,340 times

last updated: 23 May '13, 17:09