+ 1

Is that possible to select two table data in one sql query

24th Jun 2017, 10:49 AM
Anukul Singh
Anukul Singh - avatar
3 odpowiedzi
0
yes, Using inner join example: client(c_id,name,lastname) company(cmp_id,c_id,name) 1)selecting client name & company name SELECT client.name,company.name FROM client INNER JOIN company ON client.c_id =company.c_id WHERE...(if theres condition) note: on -> primary key = primary key
24th Jun 2017, 12:19 PM
Elie Douaihy
Elie Douaihy - avatar
0
u can get two tables information in a single query without using inner join also eg: select client.name , company.name from customers, company where client.c_id = company.c_id (<and> extra conditions )
27th Jun 2017, 9:29 AM
Anand K
0
Oracle use select a.column_name , b.column_name from company a , client b where....
28th Jun 2017, 2:10 AM
Icy Tee (Noah)
Icy Tee (Noah) - avatar