Skip to content
Advertisement

SQL query return no rows

acid tran_id tran_date tran_particular tran_amt part_tran_type
ab500 m1 01-01-2022 123:qwe 10 C
ab500 m5 10-01-2022 124:qse 20 C
ab500 m16 11-01-2022 123:pyh 10 D

I have the above table named htd. I am trying to fetch the result where tran_particular is unique before the “:”

Final output looking for:

acid tran_id tran_date tran_particular tran_amt part_tran_type
ab500 m5 10-01-2022 124:qse 20 C

But below query returns no rows:

Advertisement

Answer

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement