473,385 Members | 1,353 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Creating a summary table for a yes/no page vote

Hi, Im trying to create a summary page for a vote on pages in ASP.Net and having trouble writing the SQL to do this.

Each page has a "was this helpfull YES or NO" which when an option is chosen the result saved into a database table along with a numerical ID for the page and the section of the site that the page is in.

On the summary page it needs to add up all the yes votes and no votes and tally them up next to there page in each section.

Thank you
Nov 23 '07 #1
2 1127
nateraaaa
663 Expert 512MB
Are you saving the selection as a bit field or a char field in your database table?

Nathan
Nov 23 '07 #2
All the variables are saved as numbers, so each area and page has a number reference and the votes are saved as a number variable as well 1 for yes and 0 for no.

Something like this;

Area Page Vote
1 1 1
1 2 1
4 1 0
2 2 0
2 2 0
1 1 1
3 3 1
4 1 0

In the summary this would be counted and sorted like bellow

Area Page Yes No
1 1 2 0
1 2 1 0
2 2 0 2
3 3 1 0
4 1 0 2
Nov 23 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Andrew Westgarth | last post by:
Hi all, i'm struggling with a page idea I have. I need to write a page with an A to Z list of available schools in the area. I only want to display the letters in the A to Z which have school...
0
by: msnews.microsoft.com | last post by:
Hello All, I created a control and it is not showing up in my Web Page? I am new to this. Can somebody please explain what I am doing wrong. Thanks Anand Ganesh Here is my control code....
3
by: Brian Cryer | last post by:
I posted this question recently to microsoft.public.dotnet.languages.vb but didn't get any answer. I'm hoping that someone here will be able to help me. I'm working on a project using VB.NET...
2
by: rodchar | last post by:
hey all, i was wondering how you would do this. i have a webform with a summary page on it. The summary page tells you the followng: # of Employees Unchanged # of Employees Underwriting #...
4
by: Nathan Benefield | last post by:
I currently have a spreadsheet tracking votes on legislation in a matrix type format. It is something like this Name Act1 Veto1 Act1A Jones yes No Yes Johnson Yes ...
4
by: tshad | last post by:
I am trying to set up an Image authorization where you type in the value that is in a picture to log on to our site. I found a program that is supposed to do it, but it doesn't seem to work. ...
1
by: kret | last post by:
Hi, this is my first post so first of all I would like to say hello :) Now getting to my problem. In my job I have to create an ActiveX control in .NET 1.1 that can be lunched from IE....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.