‹ Back to Astro Data Lab
Welcome to the Data Lab User Forum
Toggle navigation
Login
Register
All Activity
Questions
Unanswered
Tags
Ask a Question
Why is it that SELECT TOP 10 (awin_image_r + awin_image_i) as saveme FROM des_dr1.main doesn't work but SELECT TOP 10 (awin_image_r - awin_image_i) as saveme FROM des_dr1.main , where the plus sign has been changed to a minus sign, does work using the web query interface?
0
votes
261
views
asked
Nov 5, 2018
by
SCHECHTER
|
261
views
answer
comment
Please
log in
or
register
to add a comment.
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Add answer
Cancel
1
Answer
0
votes
This has been fixed. Please try it again.
answered
Nov 5, 2018
by
datalab
(
20.7k
points)
ask related question
comment
This still doesn't work:
SELECT TOP 10 (awin_image_r + awin_image_i) as saveme FROM des_dr1.main
And this still does:
SELECT TOP 10 (awin_image_r - awin_image_i) as saveme FROM des_dr1.main
This also works:
SELECT TOP 10 (awin_image_r - awin_image_i*-1) as saveme FROM des_dr1.main
Should I just multiply numbers by -1 and subtract when I want to add.
This seems a bit kludegy to me. I'd have thought parser would know about addition.
Could you refresh the webpage and try it again?
Please
log in
or
register
to add a comment.
417
questions
434
answers
440
comments
637
users
Welcome to Data Lab Help Desk, where you can ask questions and receive answers from other members of the community.
Categories
All categories