Hola Gente !
Me pueden ayudar con este problema ?
En SQL 7 me da un error en este tipo de Store
if @a=0 begin
select tabla1.* , tabla2.* into #temporal from tabla where <alguna
condicion>
left join tabla2 on tabla1.id = tabla2.id
end
else begin
select tabla1.* , tabla2.* into #temporal from tabla1 where <otra
condicion>
left join tabla2 on tabla1.id = tabla12.id
end
select * from #temporal where saldo = 0
me dice que ya existe un objeto llamado #temporal
Hay alguna forma de usar una misma tabla temporal para cada condicion ?
Muchas gracias !
Leer las respuestas