Skip to content

Tag: sql

Result of ‘File.createNewFile()’ is ignored

I’m not sure why this is but in my IDE, for file.createNewFile(); I’m getting Result of ‘File.createNewFile()’ is ignored for it which I’ve no idea what I should be doing Answer Static Code Inspection in your IDE for createNewFile might be complaining this because createNewFile r…

avg value from a sql table

I have a MySQL table called track_e_exercises where is stored attempts in a test, every row is a new attempt. I want to know how to obtain the avg attempts in the course per person. How can I make that? c_id is the course id column and exe_user_id is the user id column. expected result for c_id=7 => (# of

Distincted ids for grouped values

I want to count the distinct ids in each numb and store them in a column : Tried this: Receive this output: As you can see COUNTER columns has the count of distincted ids but for all NUMB I want to output this: 1515 has 2 ids 1921 has 1 id 2121 has 2 ids I tried also to place