-
IS left join the right way?
Hello everyone,
I have two tables.
Table1 has around 20000 rows. Table2 has 2500 rows.
fields in Table1:
sdq03
lin03
....
fields in table2
sb_code
ship_id
.....
I want to create a new table(lin03,shipid) based on the two table join together.
shipId in new table is if sdq3=sb_code and ship_id<>"" then shipId=table2.ship_id. else shipid=sdq03.
can I implement it with "select...into ". how to write SQl statement.
thanks in advance!
-
Phil Weber
http://www.philweber.com
Please post questions to the forums, where others may benefit.
I do not offer free assistance by e-mail. Thank you!
-
Similar Threads
-
By franklch in forum Database
Replies: 3
Last Post: 05-19-2005, 04:39 PM
-
By maxpenguin in forum Database
Replies: 2
Last Post: 04-13-2005, 06:01 AM
-
Replies: 1
Last Post: 09-24-2002, 12:31 AM
-
Replies: 0
Last Post: 03-18-2002, 10:25 AM
-
By John Pierson in forum Database
Replies: 9
Last Post: 01-18-2001, 01:10 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks