Hello Experts, I am having problem in generating query in mysql. I am having two different values which I want to compare in database table's one field and want to retrieve one other field which is static amongst these two values. Lets say I have one field named stationId and I have two stationIds at the same time I want to compare and from that I want to retrieve one trainId which is unique between them if both of the comparison matched. How can I do this? Please help me. Thanks in advance.