Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
INSERT SELECT FROM
Message
From
13/08/2009 07:51:46
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01417743
Message ID:
01417821
Views:
71
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform