Skip to content

SQL Result showing same value only once

maybe a simple question I am just not finding an answer for. Im having an MySQL result like Col1 | Col2 A | 1 A | 2 B | 1 I want it to output the following: Col1 | Col2 A | 1 …

ORACLE SQL – ALTER TABLE ORDER BY

I have a table with two columns “COL_A” and “COL_B” which I create by inserting one row at a time: COL_A COL_B 20200330 49 20200413 31 20200420 19 20200511 99 …

How to substring non constant strings?

I have the following query: With this query I try to associate the value of substring to my variable NUMERO_ORDINE when I find the “NR.” string in the Text column. Sometimes I don’t have the “NR.” string, so this query doesn’t work and I get wrong values from substring func…