Skip to content

Instantly share code, notes, and snippets.

@zabetak
Last active December 2, 2021 12:48
Show Gist options
  • Save zabetak/e353b78467fffdd4e5c7540527745b1c to your computer and use it in GitHub Desktop.
Save zabetak/e353b78467fffdd4e5c7540527745b1c to your computer and use it in GitHub Desktop.
String/Decimal representative queries
ID Query
Q1 select decimal_col=string_col from dec_str_tbl
Q2 select decimal_col='12000000000000000000' from dec_str_tbl
Q3 select decimal_col=12000000000000000000.5BD from dec_str_tbl
Q4 select decimal_col=12000000000000000000.5 from dec_str_tbl
Q5 select string_col=12000000000000000000.5BD from dec_str_tbl
Q6 select string_col=12000000000000000000.5 from dec_str_tbl
Q7 select string_col='12000000000000000000.0' from dec_str_tbl
Q8 select 12000000000000000000.5BD='12000000000000000000' from dec_str_tbl
Q9 select 12000000000000000000.5='12000000000000000000' from dec_str_tbl
Q10 select 12000000000000000000.5BD=12000000000000000000 from dec_str_tbl
Q11 select decimal_col+string_col from dec_str_tbl
Q12 select decimal_col+'0.08' from dec_str_tbl
Q13 select decimal_col+0.08BD from dec_str_tbl
Q14 select decimal_col+0.08 from dec_str_tbl
Q15 select string_col+0.08BD from dec_str_tbl
Q16 select string_col+0.08 from dec_str_tbl
Q17 select string_col+'0.08' from dec_str_tbl
Q18 select '12000000000000000000'+12000000000000000000.5BD from dec_str_tbl
Q19 select '12000000000000000000'+12000000000000000000.5 from dec_str_tbl
Q20 select 12000000000000000000.5BD+12000000000000000000 from dec_str_tbl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment