can we fetch common records from two tables?

Answer

The below statement could be used to get data from multiple tables, so, we need to use join to get data from multiple tables.

Syntax :

 

SELECT tablename1.colunmname, tablename2.columnname    
FROM tablename1  
JOIN tablename2  
ON tablename1.colunmname = tablename2.columname
ORDER BY columnname;  

All sql queries Questions

Ask your interview questions on sql-queries

Write Your comment or Questions if you want the answers on sql-queries from sql-queries Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---