Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8689105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:33:20+00:00 2026-06-12T23:33:20+00:00

I don;t know SQL, so I am hoping that someone can provide me the

  • 0

I don;t know SQL, so I am hoping that someone can provide me the SQL to copy and paste in order to merge all of the different unit price fields into one field called “merged_unit_price”. Please note that many of the unit price values are null, so I would prefer that the null values don’t get merged.
Thank you very much in advance, Nathaniel

SELECT  p.ID AS Part_ID, 
    p.UNIT_PRICE, 
    d.UNIT_PRICE_1, 
    d.UNIT_PRICE_2, 
    d.UNIT_PRICE_3
FROM    tbl_local_SYSADM_PART AS p 
LEFT JOIN SYSADM_DISCOUNT_PRICE AS d 
ON p.ID = d.PART_ID;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T23:33:22+00:00Added an answer on June 12, 2026 at 11:33 pm

    First off in your query make sure to exclude the Null values from you dataset. Cant remember if Access SQL uses Null or Nothing, so try it one way and see if it errors out.

    SELECT  p.ID AS Part_ID, p.UNIT_PRICE, d.UNIT_PRICE_1, d.UNIT_PRICE_2, d.UNIT_PRICE_3
    FROM    tbl_local_SYSADM_PART AS p 
      LEFT JOIN SYSADM_DISCOUNT_PRICE AS d ON p.ID = d.PART_ID;
    WHERE p.UNIT_PRICE <> Nothing OR p.UNIT_PRICE_1 <> NOTHING OR p.UNIT_PRICE_2 <> NOTHING OR p.UNIT_PRICE_3 <> Nothing
    

    As well, i would suggest you learn more about SQL statements, in general and access, cause you have limited yourself to just 4 UNIT_PRICE‘s and will eventually have to increase your table field signature. If it were me, i would break this table into Join Table, so you can have multiple Part_ID‘s and multiple UNIT_PRICE‘s. Currently you are restricted with one Part_ID and figuratively just one UNIT_PRICE (counting the 4 price fields as 1 record).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good Morning Everyone, I am hoping that someone can help me with a problem.
I don't know SQL Geospatial new feature. I'm wondering if I can use to
I'm hoping someone can answer this question about an SQL query I'm tyring to
I have a SQL Record that has number that are all out of order
I have a problem that I can't resolve, and am hoping someone might have
So I don't know much about SQL or VBScript, much less putting the two
I am a beginner at SQL and I don't know much about Transact-SQL. I
Customer wants to move from SQL server to Sybase database. Don't know if LINQ
I'm getting an oracle 00911 error (illegal character). I'm hoping someone can help me
This could be a very basic problem, but I sort of don't know SQL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.