adspace
How to create a view with data from multiple tables?
Answer Posted / Asha Sharma
To create a view with data from multiple tables in SQL Server, you can use the following example:
```sql
CREATE VIEW your_view AS
SELECT Table1.column1, Table2.column2
FROM Table1
INNER JOIN Table2 ON Table1.common_column = Table2.common_column;
```
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is clustered index
What is self contained sub query?
When should you use an instead of trigger?
How do I find query history in sql server?
Can we do dml on views?
How can you append an identity column to a temporary table?
Equi join and non equi join is possible with sql server?
What is acid mean in sql server?
Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?
What is an indexed view?
What is in place upgrade in sql server?
How efficient you are in oracle and SQL server?
How do I start sql server 2017?
List the ways in which dynamic sql can be executed?
Can one drop a column from a table?