A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Query that searches four different fields for one field?



 
 
Thread Tools Display Modes
  #1  
Old August 30th, 2005, 04:47 AM
metst7
external usenet poster
 
Posts: n/a
Default Query that searches four different fields for one field?

I'm seeking help that will enable me to create a query that will search four
different fields and place the data in descending order into one field.
  #2  
Old August 30th, 2005, 05:33 AM
Duane Hookom
external usenet poster
 
Posts: n/a
Default

Do you have an example of what this might look like? Perhaps show some
sample records and desired output/display?

--
Duane Hookom
MS Access MVP


"metst7" wrote in message
...
I'm seeking help that will enable me to create a query that will search
four
different fields and place the data in descending order into one field.



  #3  
Old August 30th, 2005, 08:00 PM
TedMi
external usenet poster
 
Posts: n/a
Default

This sounds like a classic case of non-normalized design. Please provide more
info about your problem domain
--
Ted

  #4  
Old August 31st, 2005, 03:37 AM
metst7
external usenet poster
 
Posts: n/a
Default



"TedMi" wrote:

This sounds like a classic case of non-normalized design. Please provide more
info about your problem domain
--
Ted


There are four different fields for an assessment. They are categorized by
D, i, S, C. The scores range from 1 to 7 in each field. I need to place
these four separate scores from highest to lowest in categories called
PRIMARY, SECONDARY, MODERATE, and LOW. A Primary score is the highest score
in the range of 5, 6, or 7. A Secondary score may equal the Primary score
but is still not lower than 5. A Moderate score is always equal to four. A
Low score is equal to 1, 2, or 3. How can I pull data from D, i, S, and C to
search for the highest score and place it in Primary? One person may have a
7 in the D category as highest while another person can have the highest of 5
in the C column, but the database still needs to recognize it as the highest
score for this person. Each category of Primary, Secondary, Moderate, and
Low needs to pull from D, i, S, and C to basically rank them in descending
order. Is this possible?
  #5  
Old August 31st, 2005, 05:46 AM
Duane Hookom
external usenet poster
 
Posts: n/a
Default

I think what TedMi assumed is fairly accurate. Four assessments should
create four records rather than four fields in a single record. Four records
can easily be sorted from highest to lowest.

--
Duane Hookom
MS Access MVP


"metst7" wrote in message
...


"TedMi" wrote:

This sounds like a classic case of non-normalized design. Please provide
more
info about your problem domain
--
Ted


There are four different fields for an assessment. They are categorized
by
D, i, S, C. The scores range from 1 to 7 in each field. I need to place
these four separate scores from highest to lowest in categories called
PRIMARY, SECONDARY, MODERATE, and LOW. A Primary score is the highest
score
in the range of 5, 6, or 7. A Secondary score may equal the Primary score
but is still not lower than 5. A Moderate score is always equal to four.
A
Low score is equal to 1, 2, or 3. How can I pull data from D, i, S, and C
to
search for the highest score and place it in Primary? One person may have
a
7 in the D category as highest while another person can have the highest
of 5
in the C column, but the database still needs to recognize it as the
highest
score for this person. Each category of Primary, Secondary, Moderate, and
Low needs to pull from D, i, S, and C to basically rank them in descending
order. Is this possible?



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
improving performance by indexing query criteria fields Paul James General Discussion 20 February 16th, 2005 07:55 PM
improving performance by indexing query criteria fields Paul James Running & Setting Up Queries 20 February 16th, 2005 07:55 PM
Unmatched Query Mess Natalia Running & Setting Up Queries 8 October 28th, 2004 02:36 PM
Union Query Not Returning A Value Jeff G Running & Setting Up Queries 2 October 19th, 2004 05:47 PM
how to combine fields on a form in a query as criteria? Henro New Users 3 June 8th, 2004 03:50 PM


All times are GMT +1. The time now is 11:59 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.