Quantcast
Channel: Oracle, MySQL, Sybase, Informix and other databases
Viewing all articles
Browse latest Browse all 1350

get data from multi table with one id in data base

$
0
0

i am using oracle database

i am having empid as a unique value

by using empid i want to take data from multi table 

i use this code

SELECT * FROM TABLE1,TABLE2,TABLE3,TABLE4,TABLE5,TABLE6 WHERE EMPID='0011' AND TABLE1.EMPID = TABLE2.EMPID AND TABLE2.EMPID = TABLE3.EMPID AND TABLE3.EMPID = TABLE4.EMPID AND TABLE4.EMPID = TABLE5.EMPID AND TABLE5.EMPID = TABLE6.EMPID

BUT its not working please tell me any correction or any new code for it.........


Viewing all articles
Browse latest Browse all 1350

Trending Articles



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