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

searching where item has the same results

i created database where it captures my team results but i need the database to search to see it item has passed twice consetuvicely and go to next level of test.

example of test results
item results inspection
item A pass Normal
item B pass Normal
item A pass Normal


the next inpsection is light for item A

any help would be greatful
Aug 11 '08 #1
5 1315
MMcCarthy
14,534 Expert Mod 8TB
Hi Michael

It is not clear from your question what table structure you have used to store your data. Your question is too general for anyone to reply. Can you post the meta data of your tables so this question can be viewed in a cleared manner. Also please give more detail of exactly what you are trying to achieve and what help you need.

Here is an example of how to post table MetaData :
Table Name=tblStudent
Expand|Select|Wrap|Line Numbers
  1. Field; Type; IndexInfo
  2. StudentID; AutoNumber; PK
  3. Family; String; FK
  4. Name; String
  5. University; String; FK
  6. Mark; Numeric
  7. LastAttendance; Date/Time
Mary
Aug 11 '08 #2
my table is

Table Name = [Inspection_tbl]
Expand|Select|Wrap|Line Numbers
  1. Field; Type; IndexInfo
  2. InspectionID; AutoNumber; PK
  3. Partnumber; String
  4. Description; String
  5. TQty; Numeric
  6. PQty; Numeric
  7. FQty; Numeric
  8. Results;String
  9. InpectionDate; Date/Time
  10. Auditor; String
i am trying to improve my team effiency where the database decides what the next level of inspection to be whether it is normal, light, or critical. our rule of thumb is that two consecutive results promote or demotes the inspection type

thanks for any assistance
Aug 12 '08 #3
NeoPa
32,556 Expert Mod 16PB
Michael, I'm afraid your explanation only makes sense to someone who ALREADY KNOWS what you're talking about.

Try to explain it in such a way that someone who's not familiar with your task can understand it.
Aug 12 '08 #4
Stewart Ross
2,545 Expert Mod 2GB
Hi Michael. If I'm interpreting you correctly (which as NeoPa says is difficult for people who don't know your application at all) you need to identify consecutive or near-consecutive tests on the same item and effectively set a 'test status' value to one of the three you mention as a result.

This is not a trivial problem, as in SQL there is no concept of record position - so there is no concept of 'consecutive'. What can be relatively easy to do in a free-form table structure such as that of Excel can be surprisingly complicated in the set-based table structures of databases, where record position cannot be used to determine what is consecutive and what is not. This means that you need to redefine your problem in such a way that a solution can be implemented in SQL - and given that your table metadata shows that you have a date recorded you need to define the problem as one involving the test date in some way (for example, two tests on the same item within 7 days of each other being treated as 'consecutive').

Think of how you would define your problem in a more rigorous way and feel free to post back to us. Remember that we don't know anything at all about your application other than what you tell us!

Cheers

-Stewart
Aug 12 '08 #5
ok thanks. it worth the shot to ask the question. thanks for ya help
Aug 14 '08 #6

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

Similar topics

4
by: donald | last post by:
Hi all, I have a website running asp (about to move to asp.net soon though) which has a list of DVD's I have the various pages I want, last 10, listing, full listing ect, but the one page i can't...
3
by: Mark Line | last post by:
Hello! I'm a python n00b! I've been writing in c++ for a few years so programming's not new to me, just python that I don't know the syntax!
3
by: googleboy | last post by:
Hi there. I have defined a class called Item with several (about 30 I think) different attributes (is that the right word in this context?). An abbreviated example of the code for this is: ...
2
by: Stephen Miller | last post by:
When I dynamically populate a HtmlSelect combo box, the Value property consistently fails to return the item selected, defaulting instead to the first item in the list. For example: Protected...
10
by: C Downey | last post by:
Hello: I have an arraylist storing some very basic objects. The object is very basic, it has 2 properties : ID, and COUNT Before I add an object to the arraylist, I want to check if an...
9
by: John | last post by:
Hi I am using the following code to search for an email message with id myID; Dim SentFld As Outlook.MAPIFolder Dim Email As Outlook.MailItem Dim I As Integer OutlookApp = New...
0
by: Greg McAllister | last post by:
After a lengthy search of the KB and forums I have not come up with the answer for this problem. I have also posted this to the WSS newsgroup and hopefully someon has attempted this. We have a...
5
by: justobservant | last post by:
When more than one keyword is typed into a search-query, most of the search-results displayed indicate specified keywords scattered throughout an entire website of content i.e., this is shown as...
7
by: evilcowstare via AccessMonster.com | last post by:
Hi, I have searched the forum for answers on this and to be honest as a novice I find it a bit confusing so apologies if it is simple. There are some searches that I want to apply to my database....
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.