Quantcast
Channel: Select rows from table having specific values depending on another values in the same table - Database Administrators Stack Exchange
Browsing all 2 articles
Browse latest View live

Answer by Akina for Select rows from table having specific values depending...

SELECT t1.*FROM mytable t1WHERE t1.Tr_type = 7 /* AND another conditions by Userpin list, TrDate, etc. */ AND NOT EXISTS ( SELECT NULL FROM mytable t2 WHERE t1.Userpin = t2.Userpin /* AND another...

View Article



Select rows from table having specific values depending on another values in...

I need to be able to select all Userpin that have tr_type 7 only but if there is tr_type 7 and 8 in other row ignore 7 and 8 example:Userpin TrDate Time1 Tr_type4555 12-02-2020 7:30 74555 12-02-2020...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images