| | |
Need help to build a query
Please support our MS SQL advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2007
Posts: 2
Reputation:
Solved Threads: 0
I'm having trouble with the following scenario:
drivers may have any of the 16 types of certificates, tasks may require any of the 16 types as well. What I need to do is build a query that will selectd all the tasks a certain driver can perform.
Example:
driver has these certificates: A,B,C,C1,C1E
so he can perform tasks that require any of these certs or any combination of certs (ie. only A, only B, both A and B, A and C1E, A,B and C1 etc).
I already have come up with a solution (which makes every possible combination), but it is very complicated and works well only with a smaller number of certificates, but with 16 (as it is the case) it requires more memory then it is available...
Any idea how to make a more efficient query?
Thanks for the time
drivers may have any of the 16 types of certificates, tasks may require any of the 16 types as well. What I need to do is build a query that will selectd all the tasks a certain driver can perform.
Example:
driver has these certificates: A,B,C,C1,C1E
so he can perform tasks that require any of these certs or any combination of certs (ie. only A, only B, both A and B, A and C1E, A,B and C1 etc).
I already have come up with a solution (which makes every possible combination), but it is very complicated and works well only with a smaller number of certificates, but with 16 (as it is the case) it requires more memory then it is available...
Any idea how to make a more efficient query?
Thanks for the time
Last edited by veggen; Nov 15th, 2007 at 1:27 pm.
![]() |
Similar Threads
- storing a query for later use (PHP)
- Multiple queries within one php file (PHP)
- VB and Excel. (Visual Basic 4 / 5 / 6)
- Date functions (PHP)
- dynamic tables (ASP.NET)
- Issue with the LIKE expression and php (PHP)
- Please Help!!! MOD function (ASP)
- parsing csv file (PHP)
- IO and Embedded SQL (Java)
Other Threads in the MS SQL Forum
- Previous Thread: What is the Commonent that must Instal in my Installer
- Next Thread: SMIL files
| Thread Tools | Search this Thread |






