Skip to main content
edited title
Link
McNets
  • 23.9k
  • 11
  • 50
  • 89

How to select the rows from the samefilter splitting a column that have the same piece of stringvalue?

deleted 13 characters in body
Source Link
McNets
  • 23.9k
  • 11
  • 50
  • 89

I´m a newbie in the SQL world and I code with just the simple insert, select, delete and update.

So... I have a table with a column named "market" that has a list of cryptocoins... like this...

market
-------
EOS/ETH    
EOS/BTC
XMR/BTC
LTC/BTC
DASH/ETH
...

I need to select * from this table where the string before the '/' is equal to each other but after the '/' goes ETH and BTC.:

  • the string before the '/' is equal to each other but after the '/' goes ETH and BTC.
  • There is a column named exchange that I want to filter too. In this example would be all this coins where exchange = 'bittrex'

In this example the result would be:

EOS/ETH 
EOS/BTC

Can anyone help?

I´m a newbie in the SQL world and I code with just the simple insert, select, delete and update.

So... I have a table with a column named "market" that has a list of cryptocoins... like this...

market
-------
EOS/ETH    
EOS/BTC
XMR/BTC
LTC/BTC
DASH/ETH
...

I need to select * from this table where the string before the '/' is equal to each other but after the '/' goes ETH and BTC.

In this example the result would be:

EOS/ETH 
EOS/BTC

Can anyone help?

I´m a newbie in the SQL world and I code with just the simple insert, select, delete and update.

So... I have a table with a column named "market" that has a list of cryptocoins... like this...

market
-------
EOS/ETH    
EOS/BTC
XMR/BTC
LTC/BTC
DASH/ETH
...

I need to select * from this table where:

  • the string before the '/' is equal to each other but after the '/' goes ETH and BTC.
  • There is a column named exchange that I want to filter too. In this example would be all this coins where exchange = 'bittrex'

In this example the result would be:

EOS/ETH 
EOS/BTC

Can anyone help?

deleted 13 characters in body
Source Link
McNets
  • 23.9k
  • 11
  • 50
  • 89

I´m a newbie in the SQL world and I code with just the simple insert, select, delete and update.

So... I have a table with a column named "market" that has a list of cryptocoins... like this...

market
-------
EOS/ETH    
EOS/BTC
XMR/BTC
LTC/BTC
DASH/ETH
...

I need to select * from this table where the string before the '/' is equal to each other but after the '/' goes ETH and BTC.

In this example the result would be:

EOS/ETH 
EOS/BTC

Can anyone help?

Thank you

I´m a newbie in the SQL world and I code with just the simple insert, select, delete and update.

So... I have a table with a column named "market" that has a list of cryptocoins... like this...

market
-------
EOS/ETH    
EOS/BTC
XMR/BTC
LTC/BTC
DASH/ETH
...

I need to select * from this table where the string before the '/' is equal to each other but after the '/' goes ETH and BTC.

In this example the result would be:

EOS/ETH 
EOS/BTC

Can anyone help?

Thank you

I´m a newbie in the SQL world and I code with just the simple insert, select, delete and update.

So... I have a table with a column named "market" that has a list of cryptocoins... like this...

market
-------
EOS/ETH    
EOS/BTC
XMR/BTC
LTC/BTC
DASH/ETH
...

I need to select * from this table where the string before the '/' is equal to each other but after the '/' goes ETH and BTC.

In this example the result would be:

EOS/ETH 
EOS/BTC

Can anyone help?

Source Link
Loading