I have two tables in the database:
Tabela1 Id Nome Sexo 1 NomeA Macho 2 NomeC Fêmea
Tabela2 Id Nome Sexo 1 NomeB Macho 2 NomeD Fêmea
I would like to have the following result:
Id Nome Sexo Tabela 1 NomeA Macho Tabela1 2 NomeB Fêmea Tabela2 1 NomeC Macho Tabela1 2 NomeD Fêmea Tabela2
Notice that it is in alphabetical order of the two tables.
How could I make a SELECT on SQL Server to return a result like this?
Using Linq with Entity Framework , is it possible to do the same? (In this case you have db.Table1 and db.Table2 )