+ Reply to Thread
Results 1 to 4 of 4

Excel to SQL [PostgreSQL]

  1. #1
    Registered User
    Join Date
    11-19-2018
    Location
    USA
    MS-Off Ver
    2010
    Posts
    22

    Excel to SQL [PostgreSQL]

    I am busy converting an Excel report into SQL. SAMPLE_Mapping_.xlsx
    I am getting the Fact data from a SAP source. I assigned primary keys to identify each of these rows as unique in the SQL table.
    I filter on "Account" column in the SQL table and Source.Account in the excel sheet for "30101020".
    source.png

    And in SQL

    SOurce2.png

    SOurce3.png.

    When i filter per unique code, i get multiples which are duplicates and it should not be.
    How do i ensure that i dont get any duplicates
    source4.png
    , but also that my figures(money) are correct?

    When i use "ORDER BY "Source data.Company Code"", i get unique primary keys, but the "Amount in Company Code Currency" will include different figures.
    Please Login or Register  to view this content.
    Last edited by 6StringJazzer; 11-13-2023 at 08:57 AM. Reason: cleaned up format of images

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2505
    Posts
    27,282

    Re: Excel to SQL

    What database are you using?
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    11-19-2018
    Location
    USA
    MS-Off Ver
    2010
    Posts
    22

    Re: Excel to SQL

    I am using Postgres.
    I get a unique flow of data when i use "ORDER BY "Source data.Company Code""
    o.png

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2505
    Posts
    27,282

    Re: Excel to SQL

    This is not an Excel question. Not really a question about any Microsoft product. I'll move the question.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to connect postgreSQL in excel by VBA
    By m_vishal_c in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-22-2021, 09:14 AM
  2. Run postgresql pg dump automatically from Access
    By jaryszek in forum Access Tables & Databases
    Replies: 0
    Last Post: 07-03-2018, 08:23 AM
  3. [SOLVED] Connect to postgresql VBa
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-23-2018, 02:04 PM
  4. Relinking multiple tables from external postgresql database
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-22-2018, 05:54 AM
  5. Postgresql help with left join
    By tfagan1978 in forum Access Tables & Databases
    Replies: 0
    Last Post: 03-15-2018, 10:37 AM
  6. Variable in postgreSQL query
    By StopDreaming in forum Access Tables & Databases
    Replies: 1
    Last Post: 03-28-2016, 02:21 PM
  7. A report in excel which pulls data from postgresql db
    By bhavikumehta in forum Access Tables & Databases
    Replies: 1
    Last Post: 04-20-2013, 12:27 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1