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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:24:18+00:00 2026-05-26T03:24:18+00:00

I am stuck up in a pretty bad situation. I am having db columns

  • 0

I am stuck up in a pretty bad situation. I am having db columns such as mentioned below;

*  Season Name     People died (in US+UK+Asia)*
    Winter           98
    Fall             14
    Rainy            148
    Other            07

Now if there are no people who died in any of the season (say Fall season) then the row showing fall season is omitted. Hence the SP now returns the data something like;

*    Season Name     People died (in US+UK+Asia)*
     Winter           98
     Rainy            148
     Other            07

Problem: I need to assign the values (second column) to the variables. I am fetching the SP result in dataset. But i don’t know how to find the values that are not omitted (Winter, Rainy, Other as seen above) and assign them to their respective variables. In that case the variable for fall season would be assigned 0.

Let me know if there is any query.

please help!.

Regards

  • 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-26T03:24:18+00:00Added an answer on May 26, 2026 at 3:24 am

    You have a few options here, but if you don’t have database access (and from the comments above, it looks like you don’t):

    1. Find a query that lists all of the possible seasons. Use that query to instantiate a class that combines seasons and deaths, and then add each instance to an Enumerable of some sort. Use that Enumerable to populate your webpage.
    2. Talk to a DBA or someone on your DB team. I’m taking a stab in the dark here, but it sounds like your database has seasons listed in one table and deaths-per-season listed in another table. If I’m right, then whoever wrote this query performed an INNER JOIN from seasons to deaths-per-season instead of LEFT JOINing seasons to deaths-per-season, which would return all seasons regardless of whether or not they have any deaths.

    You could also add each season that you’re aware of to a const string[], but that’s a kludge to get around the fact that you don’t have easy database access. If you meet with a lot of resistance on this topic, try explaining that you need to display all of these seasons to the user and that you need the stored procedure updated.

    Good luck!

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

Sidebar

Related Questions

So im stuck on a few things in each part below, they are pretty
I am having a pretty bad night with this one. I have been running
I'm stuck with this pretty silly thing; I got a textfile like this; Hello::140.0::Bye
I have written a code and i'm pretty much stuck. In the following code,
I kind of stuck on how to implement this query - this is pretty
I realize this question is pretty basic, but I'm really stuck. I have a
Hi getting variable peformance & effect between firefox (pretty bad) chrome (ok) Sometimes this
I'm new to Guice and already stuck :) I pretty much copied classes GuiceConfig,
I'm pretty stuck on converting this to LINQ: SELECT COUNT(1) AS Registrations, YEAR(Join_date) AS
Im assembling a form validation script and Im pretty stuck on this: $(*).live('click', function(){

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.