Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
INSERT SELECT FROM
Message
De
13/08/2009 07:51:46
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01417743
Message ID:
01417821
Vues:
70
>I have 3 tables - Campuses, Departments, and CampusDepartments
>
>After I do the inserts for the campuses and departments, how can I do a SELECT INTO so that each department will be linked to each campus in the CampusDepartments?
>
>Thanks
select campuses.campusId, Departments.DepartmentID
into CampusDepartments
from Campuses
cross join Departments
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform