How to select multiple query ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to select multiple query ??

27th Aug 2016, 7:00 AM
Karthik b Kumar
Karthik b Kumar - avatar
3 Answers
+ 3
You have a few options you can select from multiple tables FROM table1, table2 The better way is to use JOIN, which you can find in the lessons.
28th Aug 2016, 4:23 AM
Nathan “Grimston” Pipes
Nathan “Grimston” Pipes - avatar
+ 2
select column_list from table_name; select column_list (another column list) from table_name(same table name) ;
27th Aug 2016, 7:57 AM
vignesh.S
vignesh.S - avatar
+ 1
example with JOIN: SELECT a.column_1, b.column_2 FROM table_1 a JOIN table_2 b ON (a.id=b.id) example with UNION: SELECT id, name FROM table_1 UNION SELECT id, name FROM table_2
28th Aug 2016, 8:45 AM
Andrei Berval
Andrei Berval - avatar