Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

convert ms access sql staement to oracle sql statement
Hi,

I currently have a ms access update query that runs
perfectly well and quicly in access however I now need to add this query
to convert this qeryu to oracles equivelant sql syntax and add it to the end
of an oracle sql script.

Unfortunately Im not having much success although i seem to be able to
convert it to a working oracle sql. it takes hours to run the statement in
oracle where as in access it runs in seconds

any help is appreciated.

Ms Access sql :

UPDATE (PRO_STY_TPRICES INNER JOIN PRO_STYLE_COLOURS ON PRO_STY_TPRICES.
STY_ID = PRO_STYLE_COLOURS.STY_ID) INNER JOIN  PRO_TST_RV3X_RPT_WRK
 ON
(PRO_STYLE_COLOURS.SEASON =  PRO_TST_RV3X_RPT_WRK
.SEASON) AND
(PRO_STYLE_COLOURS.STY_NUM =  PRO_TST_RV3X_RPT_WRK
.STY_NUM) AND
(PRO_STYLE_COLOURS.STY_QUAL =  PRO_TST_RV3X_RPT_WRK
.STY_QUAL) AND
(PRO_STYLE_COLOURS.BF_MAT_CHAR_VAL =  PRO_TST_RV3X_RPT_WRK
.BF_MAT_CHAR_VAL)
SET  PRO_TST_RV3X_RPT_WRK
.MKD_DATE = pro_sty_tprices.new_active_date,
 PRO_TST_RV3X_RPT_WRK
.MKD_PRICE = pro_sty_tprices.new_tprice
WHERE (((PRO_STY_TPRICES.NEW_ACTIVE_DATE) Is Not Null));

Oracle SQL :
update pro.tst_rv3x_rpt_wrk x
set(x.mkd_date, x.mkd_price) =
(Select a.new_active_date, a.new_tprice
from pro.sty_tprices a, pro.style_colours b
where a.sty_id=b.sty_id
and b.bf_mat_char_val = x.bf_mat_char_val
and b.season = x.season
and b.sty_num = x.sty_num
and b.sty_qual = x.sty_qual
and a.new_active_date is not null
)

Report this thread to moderator Post Follow-up to this message
Old Post
ian m via webservertalk.com
08-31-05 02:28 PM


Re: convert ms access sql staement to oracle sql statement
ian m via webservertalk.com  (forum@webservertalk
.com)  writes:
> I currently have a ms access update query that runs perfectly well and
> quicly in access however I now need to add this query to convert this
> qeryu to oracles equivelant sql syntax and add it to the end of an
> oracle sql script.
>
> Unfortunately Im not having much success although i seem to be able to
> convert it to a working oracle sql. it takes hours to run the statement in
> oracle where as in access it runs in seconds

Without knowledge about the tables, their sizes and the and indexes it is
impossible to tell.

But, stop! don't post that information as a reply to this post. There is
one more thing that is wrong with your post: you are posting to a newsgroup
for SQL Server. What is truth on SQL Server may not be good on Oracle.
So try comp.databases.oracle instead.

--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp


Report this thread to moderator Post Follow-up to this message
Old Post
Erland Sommarskog
09-01-05 01:23 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

Microsoft SQL Server forum archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 10:55 AM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006