
Mi duda es simple


Bueno tengo un SP que es para buscar a un alumno por sus apellidos
pero el problema es que cuando busco al alumno.. solo busca con 1 solo apellido
(Apellido Paterno o Apellido Materno) pero si quiero buscar con los 2 apellidos... nada

El Codigo que tengo hasta ahora es...
Código:
-- BUSQUEDA DE ESTUDIANTE POR APELLIDOS
CREATE PROCEDURE USP_S_BUSCARESTUDIANTEAPELLIDO
@EST_Apellido varchar(30)
AS
BEGIN TRANSACTION
SELECT
EST_Codigo AS Codigo ,
EST_Nombres AS Nombre ,
EST_ApellidoPaterno AS ApellidoPaterno ,
EST_ApellidoMaterno AS ApellidoMaterno ,
EST_CorreoElectronico AS CorreoElectronico
FROM Estudiante
WHERE EST_ApellidoPaterno = @EST_Apellido OR EST_ApellidoMaterno = @EST_Apellido
IF (@@error <> 0)
ROLLBACK TRANSACTION
ELSE
COMMIT TRANSACTION
GO
Creo que el problema es en el WHERE... no lo sé
Gracias de antemano!
