473,396 Members | 1,998 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,396 software developers and data experts.

query variable string text with counts

I have a table with some 35000 records and I need some help sorting it
out.
The goal is to get counts of failures modes oraganized by serial
number. the table is set up roughly like this.
s/n failure
01 failure A description A
01 failure A description B
01 failure B description A
01 failure B description A
02 failure A description B
02 failure A description B
02 failure B description A

I can quite easily get a count of all unique failures (failure +
description)by s/n number is a crosstab query. This results with a
look of:
01 02
failure A description A 1
failure A description B 1 2
failure B description A 2 1

My problem occurs when I try to get counts strickly by failure. The
result I am looking for would appear as follows:
01 02
Failure A 2 2
Failure B 2 1

It should be noted that the failure field, which includes failure and
description) is a memo field with string anywhere from 100 to 3000
characters. Also, I know pretty much nothing of SQL and VB.
Any help is greatly appreciated.
Randy K
Nov 12 '05 #1
1 3100
Make a totals query that count the instances of each failure/description
combination. Use that query as the source for a crosstab query. The
crosstab wizard will do a wonder job of helping you through that step

hth,
tim mills-groninger

"Randy K" <as*****@newport-consulting.com> wrote in message
news:85**************************@posting.google.c om...
I have a table with some 35000 records and I need some help sorting it
out.
The goal is to get counts of failures modes oraganized by serial
number. the table is set up roughly like this.
s/n failure
01 failure A description A
01 failure A description B
01 failure B description A
01 failure B description A
02 failure A description B
02 failure A description B
02 failure B description A

I can quite easily get a count of all unique failures (failure +
description)by s/n number is a crosstab query. This results with a
look of:
01 02
failure A description A 1
failure A description B 1 2
failure B description A 2 1

My problem occurs when I try to get counts strickly by failure. The
result I am looking for would appear as follows:
01 02
Failure A 2 2
Failure B 2 1

It should be noted that the failure field, which includes failure and
description) is a memo field with string anywhere from 100 to 3000
characters. Also, I know pretty much nothing of SQL and VB.
Any help is greatly appreciated.
Randy K

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: | last post by:
If I need to check if a certain value does exist in a field, and return either "yes" or "not" which query would be the most effestive?
8
by: Phil Powell | last post by:
if (document.location.href.indexOf('?') >= 0) document.location.href = document.location.href.substring(0, document.location.href.indexOf('?')); if (document.location.href.indexOf('#') >= 0) {...
4
by: Alan Lane | last post by:
Hello world: I'm including both code and examples of query output. I appologize if that makes this message longer than it should be. Anyway, I need to change the query below into a pivot table...
4
by: Jason Gleason | last post by:
What's the most efficient way to get the number of occurences of a certain string in another string..for instance i'm using the following code right now... private int CharacterCounter(String...
1
by: sunilkeswani | last post by:
Hi I am still new to access. I want to know how i can build a query which can display results from 4 different columns/fields Like. Field1 Field2 Field3 Field4 1 2 1 ...
3
by: Bill Hutchison | last post by:
I have a query that returns different results (3508 rows for snapshot, 6288 for dynaset) and that is the only thing I change to get the different results. When I try to make a table from the...
7
by: bryant | last post by:
Hi all. I am new to ASP and working in Expression Web. The following query displays the information I need in the gridview for a single record. SELECT "OE_HDR"."ORD_NO", "OE_HDR"."CUST_NAM",...
11
by: grif | last post by:
Hi everyone! Been a few weeks since i've asked a noob question :) At the moment I'm writing my First Form application compared to the few console bits and pieces that ive been working on. And...
4
by: zion4ever | last post by:
Hello good people, Please bear with me as this is my first post and I am relative new to ASP. I do have VB6 experience. I have a form which enables users within our company to do an intranet...
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: 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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.