Questions tagged [group]

585 questions
0
votes
1 answer

How to group two sublists together such that both sublist doesn't contain any similar item

I want to group two sublists together such that both sublists doesn't have any common element.. eg: lst=[[10],[10,30],[30],[30,50],[50] Res=[10,30] : [50] and [10] : [30,50]
user18446179
0
votes
1 answer

How to group JavaScript Object in javascript

seek for help for grouping them. I got an input with this. [ { "apiName": "APISend", "channel": "Mozilla", "noa": 3 }, { "apiName": "API", "channel": "PostMan", "noa": 1 }, { …
wendy
  • 13
  • 2
0
votes
2 answers

SQL Server: show string majority

I am looking to make a query in SQL SERVER that will allow me to display in a grouping the string that appears in most cases. Not the amount, not the maximum, but the string that is displayed in most…
0
votes
0 answers

How to run different project files from one project? (Visual Studio, C++)

I am trying to make a school project, which doesn't have to be like this, but I think it will impress my teacher. We are a group of 5 people, with 5 different projects, and I was wondering if it's possible to run all our projects from a singular…
MickeyMoise
  • 259
  • 2
  • 13
0
votes
3 answers

Javascript - Group data type in Array - Coding assessment

I got the below coding assessment question in Javascript. I tried my best to solve but there are few edge cases I missed. I need help with the solution. Below are the steps I though of performing. I am still beginner learrning data structure and…
Dharmisha Doshi
  • 137
  • 3
  • 9
0
votes
1 answer

How to merge multiple Distribution Lists in Exchange at server level?

The goal is that other colleagues can send an email to a distribution list that contains several other lists.
0
votes
0 answers

python : image generator from a group in a range

I am new here. I found a code online and I am trying to fix some things. I want my groups to use/see all files inside designated folder (*.png) for that group , not only these I typed. group1 =…
0
votes
1 answer

Grouping lists based on a certain value in python and then returning the minimum of the group

I have a list that looks this: lst = [(1,23,45,18),(1,42,15,5),(1,29,65,91),(2,35,62,7),(2,72,39,6),(2,41,15,81),(3,45,61,23),(3,41,15,69),(3,12,15,1)] I'd like to group the lists by the first indicee, so group 1 would…
Melanie
  • 109
  • 1
  • 9
0
votes
1 answer

Pandas groupby does not set index correctly

i'm a bit confused by the behaviour of the pandas groupby function: df = pd.DataFrame({"row_id":[1,2,3], "group": [1,2,2], "col1":[1,100,2], "col2":[2,200,2]}) for i, e in df.groupby("group", as_index=True): print(e.index) Here I would expect…
J-H
  • 1,795
  • 6
  • 22
  • 41
0
votes
1 answer

SQL Server : how to group only part of the syntax

I have a problem creating a SQL Server query. In summary, the query should get columns that are sum and count, grouped by customerID, and another column that is a case when by a column that is not used as a grouper column. My problem is to group…
Nir
  • 23
  • 4
0
votes
2 answers

Powershell ADSI: Can I query the local Administrators group using a SID?

I am in a multilanguage client environment. The local administrators are "Administratoren", "Administrators","Administradores","Administrateurs" and so on. This works to get the group members using Invoke-Expression: PS C:\> Get-LocalGroupMember…
Joachim Otahal
  • 272
  • 2
  • 9
0
votes
4 answers

Very common problem, very simple query in MySQL, but no so much in Microsoft SQL

The object is to get the top activity that takes too much time per activity: In mysql it should be easy: select description, reference, person, max(minutes) group by description Result should bring…
Vega_Ska
  • 21
  • 5
0
votes
2 answers

How can I implement selecting only one button from group buttons in flutter

I have added a picture of what I plan to implement. It's a group button where you can only select one option at a time. I used a package called "group_button" but it allows multiple selection at a time which isn't what I want. Recommend an…
Elijah
  • 3
  • 1
  • 5
0
votes
1 answer

SQL Average of values only if different from 0

I have a table in Access which is an ODBC connexion and from which I query my data via VBA doing an average in certain fields only with the values that are not equal to 0 while in other fields I don’t need to clean values. Values in TABLE1 are every…
Stu32
  • 1
0
votes
0 answers

MySQL query: split quarter results in different columns

I would like to divide the quarterly product sales results into 4 columns (one for each quarter). My table is as follows: CREATE TABLE `tcustomerscontracts` ( `contract_id` int(11) NOT NULL AUTO_INCREMENT, `product_id` int(11) NOT NULL DEFAULT…
Roby72
  • 11
  • 4