This message was deleted.
# troubleshooting
s
This message was deleted.
v
what is the requirement? Can you paste a sample query here?
u
@Vijay Narayanan like row 1 … queryId = a, query = b row 2 … queryId = a, query = null groupBy queryId and get first non null value in this case b maybe Earliest() ? might be answer?
v
what are you ordering on? You could use a having clause to filter out nulls in the inner query and then pick one row from that result in the outer query
u
@Vijay Narayanan there is case that row 1 … queryId = a, query = b, colA= null row 2 … queryId = a, query = null, colA=test in this case i need to get value from row1 and row2
v
should the output be one row a,b,test or two separate rows?
u
@Vijay Narayanan thanks one row
v
Copy code
elect col1,earliest(col2,16) filter (where col2<>'null'),EARLIEST(col3,16) filter (where col3 <>'null') from test2  group by col1
u
got it … thank you i will use earliest
@Vijay Narayanan filter(where col2 is not null) Solver the problem and got table what i want thank you