how to display more than two tables content without using join.? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

how to display more than two tables content without using join.?

31st Jul 2016, 3:30 AM
Er Aniket Jagadale
Er Aniket Jagadale - avatar
7 Answers
+ 2
instead of join we can use , for example if we want salary from employees and city from customers where name is same select employees.salary,customers.city from employees,customers where employees.name=customers.name;
31st Jul 2016, 6:36 AM
uNcoMMon_nAMe
+ 1
By using the union all we can join the two table tables
31st Jul 2016, 1:55 PM
reddy
reddy - avatar
+ 1
by equating the same field like customers.id=seller.id from both the tables customers and seller
31st Jul 2016, 6:30 PM
MOHAMMAD AAQIB
MOHAMMAD AAQIB - avatar
+ 1
Ya you can either use union or enter a subquery as per ur requirements
1st Aug 2016, 3:55 AM
Keshav Yadav
Keshav Yadav - avatar
+ 1
Union or union all
6th Aug 2016, 10:20 AM
Padma Napan
Padma Napan - avatar
+ 1
Correct @lipi
3rd Sep 2016, 11:04 AM
Vishal Pawar
0
u can use union or union all if the two table has the same number of columns
31st Jul 2016, 7:46 AM
ashwath nm
ashwath nm - avatar