Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to know how mapping is done between two tables .Can I use "full join" for that??

What I have tried:

I TRIED USING FULL JOIN THERE BUT IT DOESN'T SHOW MAPPING BETWEEN TWO TABLES IN SQL
Posted
Updated 31-Aug-22 21:55pm
Comments
Maciej Los 31-Aug-22 14:52pm    
Do NOT shout!

What do you mean by "SHOW MAPPING"? JOINs combine multiple tables to execute a query using related data. In order for a JOIN to work, the tables have to have some column(s) in common, or "related".

If want some help with this, you're going to have to show your table structures with some sample data and your SELECT query.
 
Share this answer
 
v2
This CP article might help Visual Representation of SQL Joins[^]

Alternatively, if you are trying to determine how the database is designed and which columns are foreign keys you can use this tool - SQL Server Database Diagram Tool in Management Studio[^] or you can use the system tables to get that information out e.g. sys.foreign_key_columns (Transact-SQL) - SQL Server | Microsoft Docs[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900