Hi,
I'm trying to convert all the queries in Access database and the queries in the VB program to T-SQL(sql server) format. This is because we are moving the database from access to sql server. I need to know how to change the following queries to t-sql:
1.UPDATE table1 AS a RIGHT JOIN table2 AS b ON (a.inv=b.inv) AND (a.pro=b.pro) SET a.pro = b.pro, a.inv = b.inv, a.chp = b.chp;
2.UPDATE(table1 AS a INNER JOIN table2 AS b ON a.inv=b.inv)
INNER JOIN table3 AS c ON a.pro=c.pro SET a.up=b.up*c.prc
WHERE a.inv> #" & date1 & "#;"
3.UPDATE table1 AS a INNER JOIN table2 AS b ON
Format(a.in,"mm/yy"
=Format(b.in,"mm/yy"
SET a.pro =b.pro;
Any help would be great.
Thanks,
Srim
I'm trying to convert all the queries in Access database and the queries in the VB program to T-SQL(sql server) format. This is because we are moving the database from access to sql server. I need to know how to change the following queries to t-sql:
1.UPDATE table1 AS a RIGHT JOIN table2 AS b ON (a.inv=b.inv) AND (a.pro=b.pro) SET a.pro = b.pro, a.inv = b.inv, a.chp = b.chp;
2.UPDATE(table1 AS a INNER JOIN table2 AS b ON a.inv=b.inv)
INNER JOIN table3 AS c ON a.pro=c.pro SET a.up=b.up*c.prc
WHERE a.inv> #" & date1 & "#;"
3.UPDATE table1 AS a INNER JOIN table2 AS b ON
Format(a.in,"mm/yy"
Any help would be great.
Thanks,
Srim