473,811 Members | 2,631 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

need help get All matching experience in all category with min query

1 New Member
any one can help me to get correct with min query to get All matching experience in all the category mentioned in condition.

If my table structure like...

Field Type
=============== =============== ==
UserCatId int(11)
UserId int(11)
CategoryId int(11)
Experience int(11)

And; I have to findout the users who have matching experience in all the category mentioned in condition.

i.e.: Any user who have experience in Category Id 1 between exp. between 10 to 15 yrs. As well as CategoryId 2 between experience of 5 and 8 yrs.
and more...

I want to achieve this; could you please suggest me the Query or if any modification required in database Table Structure ?
Apr 16 '09 #1
0 1574

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

Similar topics

1
1708
by: Bola | last post by:
Hi there. U have table structure shown here: category (Int - AutoIncrement) parent_category(Int) Title(string) 1 0 HOME PAGE 2 1 FIRST DEPTH 1 3 1 FIRST DEPTH 2 4 1
1
2413
by: David C. Barber | last post by:
I'm trying to determine if any matching records exist on a LIKE query performing a partial match of last names to a remote back-end database in the most efficient manner possible. LAN Traffic appears to be the bottleneck. This column is already indexed, and all I'm trying to determine is whether no records, or at least one record, exists. My solution is the following: SELECT COUNT(*) FROM (SELECT TOP 1 FROM table WHERE LastName LIKE...
2
1502
by: Jerry | last post by:
Hi, I found an interesting article on running totals at http://www.databasejournal.com/features/mssql/article.php/3112381. I have converted one to postgresql for my banking account: -- Subtotals on categories and a GrandTotal select *, case when a.oid= (select oid from nchecks where a.category
5
1772
by: jim_geissman | last post by:
An application filters records based on names found in them. For example, looking through property buyer names, looking for banks and relocation companies. I have a table of names and patterns: CREATE TABLE #Filters (Pattern varchar(100), IfWildCard int, Category int) INSERT #Filters SELECT 'Bank Of America', 0, 1 INSERT #Filters SELECT '% Bank %', 1, 2
2
3390
by: LizzyFin | last post by:
Looking for a little assistance in understanding what I am missing! Using PHP/MySql to allow users to browse through items in a gallery. Clicking 'next' and 'previous' links works fine using the item ID number to sequentially see all items. Trouble arises when category and ID variables are passed. I'm thoroughly confused on how to let the user click a 'next' link after they have entered a category page in order to see the next item in that...
4
1940
by: kyle.fitzgerald | last post by:
I'm just know basic SQL but not enough to write any complex queries. The problem I'm facing right now keeps me thinking to use a Cursor but I've seen a lot of posts on here saying Cursors are bad so I'm hoping there is a complex query that can give me the data I need. I have about 6 pages in website where I need to display a datagrid of information. There should be 5 columns, Filename, and then 4 Category Titles (These category titles...
16
1952
by: DAHMB | last post by:
I am not sure if I worded my question correctly. But what I want to do is run a report from two related tables as follows: The first table is called Category - it has one field, called Category, that is also the primary key. There are 18 categries listed in the table. The second table is called CaseManagement, with no primary key, and multiple fields including Category which is taken from the related Category table. They are related...
5
1816
by: perryche | last post by:
I am not sure if I am asking the right question in the subject here. But, here is my problem. I have 5tables/queries with various data like below. Table1: CustomerID1, Field1, Field2 Table2: CustomerID1, Field5, Field6 Table3: CustomerID2, Field7, Field8 (customerID1 does not exist in the table) ....
1
1447
dlite922
by: dlite922 | last post by:
We've built an application that deals with business management. One of the modules is an inventory/product management for a retail store. What I want to do is create a user friendly interface that allows them to easily navigate through the categories of item and choose a category or item to edit. What makes it complicated is that each customer has different level of categories (or none at all). Here's what my ideas are so far but...
0
9605
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10651
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10136
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9208
agi2029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7671
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5555
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5693
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3868
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3020
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.