Quantcast
Channel: SCN : All Content - SAP on Oracle
Viewing all articles
Browse latest Browse all 2104

Want to fetch data from a query

$
0
0

I have two tables A and B and I want to show some of the column from both the tables.

Table A: column names

Customer_name

Customer_id

Customer_Address

 

Table B: Column names:

Customer_id

Customer_service_type

Service_charges

service_category

 

Customer_id is the primary key. Now I want below column.

Customer_name

Customer_id

service_category

Customer_service_type


but the condition is: If Customer_service_type is IN  ('ABC', 'BCA') then a 'Y' will be printed and for others and Null Customer_service_type a 'N' will be printed.


Please let me know how to show that.



Viewing all articles
Browse latest Browse all 2104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>