Principais perguntas e respostas de entrevista e testes online
Plataforma educacional para preparacao de entrevistas, testes online, tutoriais e pratica ao vivo

Desenvolva habilidades com trilhas de aprendizado focadas, simulados e conteudo pronto para entrevistas.

WithoutBook reune perguntas de entrevista por assunto, testes praticos online, tutoriais e guias comparativos em um unico espaco de aprendizado responsivo.

Preparar entrevista

Simulados

Definir como pagina inicial

Adicionar esta pagina aos favoritos

Assinar endereco de e-mail

SQL Query perguntas e respostas de entrevista

Pergunta 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;

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 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;

Isto e util? Adicionar comentario Ver comentarios
 

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

SELECT * FROM table ORDER BY timestamp_column DESC LIMIT 1;

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 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.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 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.

Isto e util? Adicionar comentario Ver comentarios
 

Mais uteis segundo os usuarios:

Copyright © 2026, WithoutBook.