Click here to Skip to main content
15,890,670 members
Please Sign up or sign in to vote.
1.27/5 (4 votes)
SQL
insert into  ETiP LEFT OUTER JOIN TIMP where
  TIMP.tid = ETiP.tid and ETiP.amount = '0' .left outer join EMP
  ETiP.emp_id = EMP.em_id
Posted
Updated 25-Jul-12 0:10am
v2
Comments
Santhosh Kumar Jayaraman 25-Jul-12 6:13am    
give your table structure. What to insert inside ETiP?

to insert data in table,

follow this syntax

Insert into
TABLE-NAME ( COLUMN-NAME1, COLUMN-NAME2,... )
values (VALUE1,VALUE2,...)

example

Insert into
ETip(TipId,TipDesc)
values(1,'hello')

Happy Coding!
:)
 
Share this answer
 
Hi...

Can u please try like below query.


SQL
update ETiP set amount='0' from ETiP a  join TIMP b on a.tid=b.tid 
 
Share this answer
 
join is used with select statement only.. u cant use join using insert
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900