Question: How to combine two queries to one in sql? I have two sql tables , where one is CARD_TRANSACTION and other RD_PASSENGERTYPE, the queries are

How to combine two queries to one in sql?

I have two sql tables , where one is CARD_TRANSACTION and other RD_PASSENGERTYPE,

the queries are here,

select passengertypekey from CARD_TRANSACTION where daykey = 15738 and id = '70750813';

select passengertypedesc from RD_PASSENGERTYPE where passengertypekey=1;

I want to combine both of them and get the passengertypedesc, i will pass the id and daykey to the query. please help

Thank you

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!