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 941299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:05:56+00:00 2026-05-15T22:05:56+00:00

I am not very experienced with either programming or scripting database queries, and I

  • 0

I am not very experienced with either programming or scripting database queries, and I have seem to come to rely on further manipulation of results from a database instead of spending time writing a more complete query that would achieve my final objective.

In fact in some cases I am completely changing the nature of the results by combining values on columns and deleting rows. It just seems easier to manipulate in code in a loop rather than writing a more involved query.

Of course most of the times I can write the query and I get the results back from the server exactly how I want to consume it. But there are those occasions where I run the results for further filtering, because I just don’t know how to do it in sql but coding seems pretty straight forward.

  • 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-05-15T22:05:57+00:00Added an answer on May 15, 2026 at 10:05 pm

    It depends. Generally, you should let the database do things databases are good at – filtering, sorting, and joining data. Complex post-query transformations of data (business logic) you should generally be doing in your application code, and not in the query, especially since debugging these things can really be awful in SQL, but relatively pain-free in application code.

    If you are fully confident that your datasets are always going to be very small (let’s say… less than a few hundred records) and your manipulations always rather simple, then doing your manipulations in your application code rather than SQL will probably make no difference in overall performance or maintainability.

    On the other hand, if you datasets have the possibility of growing very large some day (you should definitely test this out – fill your tables with dummy data to test this!) then you run the risk of writing application code that is unbearably clunky and probably uses monster amounts of memory to do things that the database would be much better doing for you. At this point you might need to look into what manipulations the database can do more efficiently versus the application code, and divide the workload up as appropriately as possible. Doing so would require testing and analysis on your part of both the data and the manipulations you’re working with.

    The final answer? Decide based on your needs how to appropriately split up the work that can be done effectively by the database server (in SQL) and can be done efficiently and cleanly in your application code.

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

Sidebar

Related Questions

I'm not very experienced in C#, done some small stuff with it, but it's
I'm not very experienced with JavaScript, but this code was similar to what I
I'm a long time developer but not very experienced with DNS. Here's my problem:
Building a Django app on a VPS. I am not very experienced with setting
Forgive me if this is a stupid question. I am not very experienced with
I am not a very experienced C++ programmer, i get a warning when i
Question related to PHP memory-handling from someone not yet very experienced in PHP: If
In a similar vein to my previous question - I'm not a very experienced
I'm not a a very experienced Windows developer, so I hope this all makes
I'm very new to AD LDS and experienced but not qualified with SSAS, so

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.