Fist time using SQL and already confused. I have a table :
A | B
--------
a | 6
b | 10
c | 12
I want to filter it by using string comparison, but getting the value of the second column :
myNum = SELECT B WHERE A ='a'
At the end I want the value of myNum to be 6.
Just can't get it right... any help would be very appreciated!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With