Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
allan_houston
Starting Member
18 Posts |
Posted - 2006-07-11 : 16:14:27
|
| Hello everybodySince I've just begun working with SS 2000(yes, 2000) I got a question about UPDATE statement.I come from Linux/MySQL world and this is possible in MySQL:update emp inner join dept on emp.deptno=dept.deptnoset emp.comm=320where dept.loc='CHICAGO' and emp.sal=1600My QA was complaining about this piece of SQL.How can I solve this one?Kind regardsA.H. |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2006-07-11 : 16:17:14
|
| update e set comm = 320from emp einner join dept don e.deptno = d.deptnowhere d.loc = 'CHICAGO' and e.sal = 1600Tara Kizeraka tduggan |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-07-12 : 02:21:25
|
quote: Originally posted by allan_houston Hello everybodySince I've just begun working with SS 2000(yes, 2000) I got a question about UPDATE statement.I come from Linux/MySQL world and this is possible in MySQL:update emp inner join dept on emp.deptno=dept.deptnoset emp.comm=320where dept.loc='CHICAGO' and emp.sal=1600My QA was complaining about this piece of SQL.How can I solve this one?Kind regardsA.H.
This type of syntax is available in ACCESS. But in sql server use the method Tara suggestedMadhivananFailing to plan is Planning to fail |
 |
|
|
allan_houston
Starting Member
18 Posts |
Posted - 2006-07-12 : 03:21:31
|
| Thx Tara and thx madhivanan for the follow up.It works. |
 |
|
|
|
|
|