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

  • SEARCH
  • Home
  • 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 8155099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:34:16+00:00 2026-06-06T16:34:16+00:00

I have a SSIS project that queries a database and get item level data.

  • 0

I have a SSIS project that queries a database and get item level data.

The data should be exported to two flat files, one being a summary file,
and the second one a details file. Both files are linked using a index (string)
column that is generated during the SSIS dataflow.

Now i basically want a “distinct index” of the detail data for the summary file.
It is however not a plain aggregate, some columns are strings and instead of a count
I want something like “first(fieldname)” (like in SSRS).

Any suggestions how to do this?

Thanks!

  • 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-06T16:34:18+00:00Added an answer on June 6, 2026 at 4:34 pm

    First is just something like ‘Select TOP 1 * from aggregate’.
    There is no problem if you can use below query on your source.
    If not you need to emulate this somehow in your data flow. (Lookups, Merge Joins etc.)

    Here is example in sql:

    select a.id, (select top 1 b.name from tableA b where a.id = b.id)
    from tableA a
    group by id
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an SSIS package that queries data from a view using an SQL
I have an SSIS 2008 package that reads data from an Access database (OLEDB
I have simple SSIS package which reads data from flat file and insert into
I have a project that runs some code on SSIS in SqlServer 2005 and
I have a nightly SSIS process that exports a TON of data from an
I have a SSIS package that reads from a flat file source. The target
I have a Visual Studio 2005 BIDS project that exports about 30 database tables
I have ssis package in that I'm taking values from flat file and insert
I have an ssis package that imports a view from one database into different
I have an SSIS package that loads data in a table. How do I

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.