Table t2, below, records the Date on which an Actor performs a Role.
Rules:
1. perform 1 role per date
2. perform each role before starting again
B is the next Actor in line to perform Role=1 on Date=2003-10-20
Is there a query that will select B and exclude A & C since they have
already performed role 1.
The data is simplified - there are approximately 20 roles and 60 actors
Any help would be greatly appreciated
Dave
roleID,DATES,actorID
1,2003-10-06,A
2,2003-10-06,B
3,2003-10-06,C
1,2003-10-13,C
2,2003-10-13,A
3,2003-10-13,B 1 1319
You need a program, not just a query...
Or if you could supply a sample `desired` output format it would be
easier than deciphering a bonus question on an sql quiz :-)
ie; You've supplied the source table, now tell us what it should look
like on output. (you should also try searching for the word `wizard` on
mysql.com - seriously)
Dave wrote: Table t2, below, records the Date on which an Actor performs a Role. Rules: 1. perform 1 role per date 2. perform each role before starting again
B is the next Actor in line to perform Role=1 on Date=2003-10-20
Is there a query that will select B and exclude A & C since they have already performed role 1.
The data is simplified - there are approximately 20 roles and 60 actors
Any help would be greatly appreciated Dave
roleID,DATES,actorID 1,2003-10-06,A 2,2003-10-06,B 3,2003-10-06,C 1,2003-10-13,C 2,2003-10-13,A 3,2003-10-13,B
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: jaysonsch |
last post by:
Hello!
I am having some problems with a database query that I am trying to do.
I am trying to develop a way to search a database for an entry and
then edit the existing values. Upon submit, the...
|
by: shank |
last post by:
1) I'm getting this error: Syntax error (missing operator) in query
expression on the below statement. Can I get some advice.
2) I searched ASPFAQ and came up blank. Where can find the "rules"...
|
by: Dave |
last post by:
Table t2, below, records the Date on which an Actor performs a Role.
Rules:
1. perform 1 role per date
2. perform each role before starting again
B is the next Actor in line to perform Role=1...
|
by: netpurpose |
last post by:
I need to extract data from this table to find the lowest prices of
each product as of today. The product will be listed/grouped by the
name only, discarding the product code - I use...
|
by: Harvey |
last post by:
Hi,
I try to write an asp query form that lets client search any text-string and
display all pages in my web server that contain the text. I have IIS 6.0 on a
server 2003. The MSDN site says...
|
by: Diamondback |
last post by:
I have two tables, WIDGETS and VERSIONS. The WIDGETS table has
descriptive information about the widgets while the VERSIONS table
contains IDs relating to different iterations of those widgets...
|
by: Dave Thomas |
last post by:
If I have a table set up like this:
Name | VARCHAR
Email | VARCHAR
Age | TINYINT | NULL (Default: NULL)
And I want the user to enter his or her name, email, and age - but AGE
is optional.
...
|
by: Dom |
last post by:
I need to run a query based on a query in Access. The second query has
a number of conditions which all work well, but there is one more
contition I need to set to make it run properly.
the...
|
by: Ryan Hubbard |
last post by:
Is it possible to get the recordset from an open query window? So you
run the query. The window is open. Can vba retrieve this data?
|
by: starace |
last post by:
I have designed a form that has 5 different list boxes where the
selections within each are used as criteria in building a dynamic
query. Some boxes are set for multiple selections but these list...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |