SELECT C.company _code, C.founder, COUNT DISTINCT(L.lead_manager_code), COUNT DISTINCT(S.senior_manager_code), COUNT DISTINCT(M.manager_code), COUNT DISTINCT(E.employee_code) FROM Company C INNER JOIN Lead Manager L ON C.company _code = L.company _code INNER JOIN Senior Manager S ON S.company _code = L.company _code INNER JOIN Manger M ON M.company _code = S.company _code INNER JOIN Employee E ON E.company _code = M.company _code GROUP BY C.Company _code, C.founder ORDER BY C.company _code 다음과 같이 작성하였는데 어떤 부분에서 오류가 발생하였는지 한번 확인해주시면 감사드리겠습니다. 모든 조건을 맞게 기입하였다고 생각되는데 계속 오류가 반복해서 뜨네요 ㅜㅜ
SELECT h.hacker_id , h.name , SUM(sb.max_score) total_score FROM ( SELECT hacker_id, challenge_id, MAX(score) max_score FROM Submissions GROUP BY hacker_id, challenge_id ) sb INNER JOIN hackers h ON h.hacker_id = sb.hacker_id GROUP BY h.hacker_id, h.name HAVING total_score !=0 ORDER BY total_score DESC, h.hacker_id 위와 같은 코드를 작성하여서 정답을 잘 제출하였는데요 다만, 서브쿼리부문에서 challenge_id가 왜 select절과 group by절에 와야하는지 이해가 되지 않습니다. 좀 더 상세히 말씀드리면, 어짜피 group by절에 오게되면 select 절에 오게되는데, challenge_id는 저희가 구하려는 값에도 없는데 왜 group by 절을 써서 서브쿼리에서 묶어야 되는지가 이해가 안됩니다 감사합니다
안녕하세요 http://localhost:3000/video/upload 실행해 비디오를 선택하면 POST http://localhost:3000/api/video/uploadfiles 504 (Gateway Timeout) , http://localhost:3000/register 실행해 가입을 하려하면 POST http://localhost:3000/api/users/register 504 (Gateway Timeout) Uncaught (in promise) Error: Request failed with status code 504 이런 에러가 나옵니다 vscode 에서는 Server Listening on 5000 [0] MongoError: bad auth : authentication failed [0] at MessageStream.messageHandler (C:\Han\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\mongoose\node_modules\mongodb\lib\cmap\connection.js:299:20) [0] at MessageStream.emit (node:events:520:28) [0] at processIncomingData (C:\Han\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\mongoose\node_modules\mongodb\lib\cmap\message_stream.js:144:12) [0] at MessageStream._write (C:\Han\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\mongoose\node_modules\mongodb\lib\cmap\message_stream.js:42:5) [0] at writeOrBuffer (node:internal/streams/writable:389:12) [0] at _write (node:internal/streams/writable:330:10) [0] at MessageStream.Writable.write (node:internal/streams/writable:334:10) [0] at TLSSocket.ondata (node:internal/streams/readable:754:22) [0] at TLSSocket.emit (node:events:520:28) [0] at addChunk (node:internal/streams/readable:315:12) [0] at readableAddChunk (node:internal/streams/readable:289:9) [0] at TLSSocket.Readable.push (node:internal/streams/readable:228:10) [0] at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23) { [0] ok: 0, [0] code: 8000, [0] codeName: 'AtlasError' [0] } , Error: ffmpeg exited with code 4294967291: frame= 1 fps=0.0 q=-0.0 Lq=-0.0 q=-0.0 size=N/A time=00:00:00.00 bitrate=N/A dup=2 drop=0 speed= 0x [0] video:199kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown [0] Conversion failed! [0] [0] at ChildProcess.<anonymous> (C:\Han\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\fluent-ffmpeg\lib\processor.js:182:22) [0] at ChildProcess.emit (node:events:520:28) [0] at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) [0] Waiting for the debugger to disconnect... [0] node:events:498 [0] throw er; // Unhandled 'error' event [0] ^ [0] [0] MongooseError: Operation `users.findOne()` buffering timed out after 10000ms [0] at Timeout.<anonymous> (C:\Han\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:198:23) [0] at listOnTimeout (node:internal/timers:559:17) [0] at processTimers (node:internal/timers:502:7) [0] Emitted 'error' event on Function instance at: [0] at C:\Han\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\mongoose\lib\model.js:5084:15 [0] at processTicksAndRejections (node:internal/process/task_queues:78:11) [1] [HPM] Error occurred while trying to proxy request /api/users/auth from localhost:3000 to http://localhost:5000 (ECONNRESET) ( https://nodejs.org/api/errors.html#errors_common_system_errors ) [0] [nodemon] app crashed - waiting for file changes before starting... [1] [HPM] Error occurred while trying to proxy request /api/users/auth from localhost:3000 to http://localhost:5000 (ECONNREFUSED) ( https://nodejs.org/api/errors.html#errors_common_system_errors ) [1] [HPM] Error occurred while trying to proxy request /api/users/auth from localhost:3000 to http://localhost:5000 (ECONNREFUSED) ( https://nodejs.org/api/errors.html#errors_common_system_errors ) [1] [HPM] Error occurred while trying to proxy request /api/users/register from localhost:3000 to http://localhost:5000 (ECONNREFUSED) ( https://nodejs.org/api/errors.html#errors_common_system_errors ) [1] [HPM] Error occurred while trying to proxy request /api/video/getVideos from localhost:3000 to http://localhost:5000 (ECONNREFUSED) ( https://nodejs.org/api/errors.html#errors_common_system_errors ) [1] [HPM] Error occurred while trying to proxy request /api/users/auth from localhost:3000 to http://localhost:5000 (ECONNREFUSED) ( https://nodejs.org/api/errors.html#errors_common_system_errors ) [1] [HPM] Error occurred while trying to proxy request /api/users/auth from localhost:3000 to http://localhost:5000 (ECONNREFUSED) ( https://nodejs.org/api/errors.html#errors_common_system_errors ) [1] [HPM] Error occurred while trying to proxy request /api/video/uploadfiles from localhost:3000 to http://localhost:5000 (ECONNREFUSED) ( https://nodejs.org/api/errors.html#errors_common_system_errors ) [1] [HPM] Error occurred while trying to proxy request /api/users/auth from localhost:3000 to http://localhost:5000 (ECONNREFUSED) ( https://nodejs.org/api/errors.html#errors_common_system_errors ) [1] [HPM] Error occurred while trying to proxy request /api/users/auth from localhost:3000 to http://localhost:5000 (ECONNREFUSED) ( https://nodejs.org/api/errors.html#errors_common_system_errors ) [1] [HPM] Error occurred while trying to proxy request /api/users/register from localhost:3000 to http://localhost:5000 (ECONNREFUSED) ( https://nodejs.org/api/errors.html#errors_common_system_errors ) 이렇게 나옵니다 어떻게 해결해야 할까요 깃허브 https://github.com/Hanboreum/boilerplate-mern-stack-master
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 안녕하세요. http://boj.kr/4dae74666d35462094e6f4f319f86ac0 해당 소스를 가지고 했는데 문제 조건 N % 2 !=0 && N % 5 != 0 에 해당하는 값을 입력할 때는 아무런 출력이 되지 않고 해당 조건을 벗어나는 값을 입력할 때만 값이 출력됩니다. 아마 제가 모르는 부분이 있거나 교안에 제가 잊은 부분이 있는거 같은데 혹시 알려주실 수 있으실까요?
nestjs랑 nextjs를 사용하여 로그인 기능을 만들고 있습니다. nestjs의 validation을 사용해서 @IsEmail이 아닌 경우 예외처리를 하게 만들어주었습니다. postman에서는 message가 잘 뜨는데 프론트엔드에서 console.log(error)로 찍어보면 postman에서 response으로 받은 값이 없습니다. 프론트에서도 postman처럼 response값을 받으려면 어떻게 해야하나요? <프론트> <서버> <dto> <postman> <브라우저>
[코드팩토리] [중급] Flutter 진짜 실전! 상태관리, 캐시관리, Code Generation, GoRouter, 인증로직 등 중수가 되기 위한 필수 스킬들!
질문들 몇 가지 살펴보았는데 제가 이해한 바로는 서버와 토큰으로 통신할 때 탈취가 진행되기 때문에 리프레쉬 토큰은 사용빈도가 적어 탈취위험이 적고 엑세스 토큰은 빈도수가 높아 탈취위험이 높기 때문에 유효기간을 짧게 한다인데 여기서 궁금한 점은 토큰이 어느 시점에서 탈취되는지입니다. 서버와 토큰으로 상호작용할 때 패킷을 빼와서 탈취하는 건가요?
자바 기초부터 마스터하기 with 은종쌤 (Do it 자바 프로그래밍 입문) - Part 2(마스터편)
public synchronized String lendBook() throws InterruptedException{ while (bookList.size() == 0) { wait(); } String book = bookList.remove(0); System.out.println(Thread.currentThread() + " 학생이 책을 빌렸습니다."); return book; } 위 코드의 경우 synchronized method 로 처리하였습니다. 이 경우 shared resource(예제의 경우 this 객체)에 접근하는 3개의 thread에 대해서도 하나의 쓰레드가 차지한 경우 lock을 걸고 사용이 끝나면 다음 쓰레드가 사용하는 과정을 거치나요? (이러한 과정이 굉장히 빨라서 동시에 일어나는 것 처럼 보일 뿐)