![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
#6
| |||
| |||
|
|
I figured it out, sorry, it is not very complex at all, SELECT * FROM table t where t.est < t.real; or also using HAVING clause somehow... |
#7
| |||
| |||
|
|
I figured it out, sorry, it is not very complex at all, SELECT * FROM table t where t.est < t.real; or also using HAVING clause somehow... |
#8
| |||
| |||
|
|
I figured it out, sorry, it is not very complex at all, SELECT * FROM table t where t.est < t.real; or also using HAVING clause somehow... |
#9
| |||
| |||
|
|
I figured it out, sorry, it is not very complex at all, SELECT * FROM table t where t.est < t.real; or also using HAVING clause somehow... |
#10
| |||
| |||
|
|
SQL question If I have a table like that ID | ESTIMATED_VAL | REAL_VAL xyz | 100 | 129 abc| 110 | 80 etc... I want a query that returns all underestimated values, so: if ESTIMATED_VAL < REAL_VAL return ID Something like that. Do you know how to write the SQL query? |
![]() |
| Thread Tools | |
| Display Modes | |
| |