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

SQL Query perguntas e respostas de entrevista

Pergunta 11. Explain the difference between DELETE and TRUNCATE commands.

DELETE is used to remove rows from a table based on a condition. TRUNCATE removes all rows from a table without logging individual row deletions.

Example:

DELETE FROM table WHERE condition;

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 12. What is a foreign key?

A foreign key is a column or a set of columns in a table that refers to the primary key of another table, establishing a link between the two tables.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 13. Write a SQL query to count the number of rows in a table.

SELECT COUNT(*) FROM table;

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 14. Explain the concept of ACID properties in a database.

ACID (Atomicity, Consistency, Isolation, Durability) properties ensure the reliability of database transactions.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 15. Write a SQL query to find the third highest salary from an Employee table.

SELECT MAX(salary) FROM Employee WHERE salary < (SELECT MAX(salary) FROM Employee WHERE salary < (SELECT MAX(salary) FROM Employee));

Isto e util? Adicionar comentario Ver comentarios
 

Mais uteis segundo os usuarios:

Copyright © 2026, WithoutBook.