Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 9th, 2006, 08:35 PM
hharriel@gmail.com
Guest
 
Posts: n/a
Default Update Query won't update my values

Hi All,

I have created an update query related to high school course
information (name of course; credit hour; course description, etc.) I
am updating a master course information table. I am updating two fields
in the master table; course name and credit hour. When I run a test,
the course name updates fine. However, I have three different values
that can be in the credit hour files: .05, 1, and 2 (also there are
some records that don't have the credit hour information). The
majority of the credit hour field does not update. Some of the .05s
and the 1 values update, but very few (something like 20 out of 275
records). When running the test update, in the credit hour field, it
mostly puts zeros.

I have checked to make sure that the field criteria for the table I am
updating from and the table I am updating to (the master course table)
are the same; "number".

Any help you all could provide would help a whole lot,
Thanks,

  #2  
Old August 9th, 2006, 09:55 PM
Jeff L
Guest
 
Posts: n/a
Default Re: Update Query won't update my values

It would probably help if you could post your query you are running.


hharriel@gmail.com wrote:
Quote:
Hi All,
>
I have created an update query related to high school course
information (name of course; credit hour; course description, etc.) I
am updating a master course information table. I am updating two fields
in the master table; course name and credit hour. When I run a test,
the course name updates fine. However, I have three different values
that can be in the credit hour files: .05, 1, and 2 (also there are
some records that don't have the credit hour information). The
majority of the credit hour field does not update. Some of the .05s
and the 1 values update, but very few (something like 20 out of 275
records). When running the test update, in the credit hour field, it
mostly puts zeros.
>
I have checked to make sure that the field criteria for the table I am
updating from and the table I am updating to (the master course table)
are the same; "number".
>
Any help you all could provide would help a whole lot,
Thanks,
  #3  
Old August 9th, 2006, 10:55 PM
hharriel@gmail.com
Guest
 
Posts: n/a
Default Re: Update Query won't update my values

Here is the SQL:

UPDATE DISTINCTROW 97106courseIDs2 INNER JOIN dbo_R0004_COUR_COURSE ON
[97106courseIDs2].COUR_NAME = dbo_R0004_COUR_COURSE.COUR_NAME SET
dbo_R0004_COUR_COURSE.COUR_NAME = [97106courseID2].[cour_name],
dbo_R0004_COUR_COURSE.COUR_HRS_NUM = [97106courseID2].[cour_hrs_num]
WHERE (((dbo_R0004_COUR_COURSE.COUR_SCHL_ID)="97106"));

Thanks

Jeff L wrote:
Quote:
It would probably help if you could post your query you are running.
  #4  
Old August 10th, 2006, 04:25 AM
pietlinden@hotmail.com
Guest
 
Posts: n/a
Default Re: Update Query won't update my values

remove the DISTINCTROW keyword... the rest looks fine.

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles