Jump to content

How to...


mATOK

Recommended Posts

Hi, I'm not sure how to explain what I want in my query but I will do my best

 

I have a table that contains a key field, Ids, group ids and group names

 

I have multiple rows for the same id.

 

I want to find the IDs where data like below is present, i.e. more than 1 row contains a grouptypeid set to 1 and there is at minimum one row that contains a GroupTypeId set to 6

 

Key Field| ID  |groupID |groupType | name

 

2312316 | 61232 | 2 | 1 | blahblah

2312317 | 61232 | 3 | 1 | lahblahb

2312318 | 61232 | 4 | 1 | ahblahbl

2312319 | 61232 | 6 | 6 | 123456

2312320 | 61232 | 7 | 6 | 234567

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/115843-how-to/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.