가장 많이 묻는 면접 질문과 답변 & 온라인 테스트
면접 준비, 온라인 테스트, 튜토리얼, 라이브 연습을 위한 학습 플랫폼

집중 학습 경로, 모의고사, 면접 준비 콘텐츠로 실력을 키우세요.

WithoutBook은 주제별 면접 질문, 온라인 연습 테스트, 튜토리얼, 비교 가이드를 하나의 반응형 학습 공간으로 제공합니다.

Prepare Interview

SQL Query 면접 질문과 답변

Ques 26. Explain the purpose of the ORDER BY clause.

The ORDER BY clause is used to sort the result set of a query in ascending or descending order based on one or more columns.

Example:

SELECT column1, column2 FROM table ORDER BY column1 DESC;

도움이 되었나요? Add Comment View Comments
 

Ques 27. What is a self-join?

A self-join is a regular join, but the table is joined with itself. It is useful when you want to combine rows with related data in the same table.

Example:

SELECT employee1.name, employee2.name FROM Employee employee1, Employee employee2 WHERE employee1.manager_id = employee2.employee_id;

도움이 되었나요? Add Comment View Comments
 

Ques 28. Write a SQL query to find the most recent record in a table.

SELECT * FROM table ORDER BY timestamp_column DESC LIMIT 1;

도움이 되었나요? Add Comment View Comments
 

Ques 29. Explain the concept of a composite key.

A composite key consists of more than one column and is used to uniquely identify a record in a table when a single column is not sufficient.

도움이 되었나요? Add Comment View Comments
 

Ques 30. What is the difference between a stored procedure and a function?

A stored procedure does not necessarily return a value, while a function must return a value. Functions can be used in SQL statements, whereas procedures cannot.

도움이 되었나요? Add Comment View Comments
 

Most helpful rated by users:

Copyright © 2026, WithoutBook.