473,416 Members | 1,572 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

Convert Microsoft Access (JET SQL) to SQL Server (T-SQL)

hallo, I would like to convert this request from JET SQL into T sql

UPDATE [Import] INNER JOIN [Dat_XRate]
ON ([Import].[Mois] = [Dat_XRate].[Mois]
AND [Import].[annee] = [Dat_XRate].[annee]
AND [Dat_XRate].[CurS] = 'XOF'
AND [Dat_XRate].[CurD] = 'USD')
SET [Valusd] = ((([Valeur] / [Rate] + 0.5) * 100) \1) /100


It is very simple but each time I want to use a "INNER JOIN" in T SQL I got an error message
Thx for answer
Olivier
Mar 4 '10 #1
1 2702
ck9663
2,878 Expert 2GB
try this...

Expand|Select|Wrap|Line Numbers
  1.  
  2. UPDATE [Import] 
  3. SET [Valusd] = ((([Valeur] / [Rate] + 0.5) * 100) \1) /100
  4. FROM IMPORT
  5. INNER JOIN [Dat_XRate]
  6. ON ([Import].[Mois] = [Dat_XRate].[Mois]
  7. AND [Import].[annee] = [Dat_XRate].[annee]
  8. AND [Dat_XRate].[CurS] = 'XOF'
  9. AND [Dat_XRate].[CurD] = 'USD')
  10.  
  11.  

Happy Coding!!!

~~ CK
Mar 4 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Rich May | last post by:
Afternoon all, Apologies for cross-posting but as my query covers both Access and SQL Server I thought I'd send it both! I have inherited a project to migrate a fairly complex series of...
22
by: TC | last post by:
I have an Access database application with a lot of custom row functions written in VBA. In other words, a lot of queries contain calculated fields which use functions defined in the modules. I...
1
by: ken | last post by:
Hi, Lets say we have a form that displays time card entries based on the calendar control date on the form. So the user clicks on a date and the form filters the table where the time card entries...
5
by: Ted | last post by:
I am working on two versions of an application, one of which will be a windows forms application (which will need to be redistributable) and the other will be a web application. I have MS Visual...
2
by: Igor | last post by:
Can I convert .MDB file to SQL Server database or I need to develop SQL server database from begin, every table, every field?
15
by: Wes Groleau | last post by:
When I try to import from Access, the DTS wizard only allows me to import tables and queries. OK, I'm not surprised the "macros" and reports don't come over. But it executes each query, and...
13
by: SQL Learner | last post by:
Hi, I have a table with 8 millions records. Some of the fields needed to be parse and modified. Example, "ABC DEF" will be parsed into two fields "ABC" and "DEF". And If there is "123" in the...
1
by: rune | last post by:
Hi I'm trying to convert an SQL Query from Access to SQL Server. The Access Query goes like this: SELECT Format(EntryDate, 'ddd mm dd') AS FROM JournalEntries This query returns the name...
1
by: atp2k3 | last post by:
Hello all, I am new to convert PLSQL to TSQL. Any expertise in SQL, please help me to do convert the belowed PLSQL procedure to SP in SQL server. I really appreciate your time. Thanks in advance....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.