
22/05/2013, 13:56
|
 | Colaborador | | Fecha de Ingreso: agosto-2006 Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 18 años, 7 meses Puntos: 774 | |
Respuesta: Duda al usar variables en consultas i got it :)
Código SQL:
Ver originalSELECT Producto, precio, cantidad, tienda FROM ventas_tienda WHERE fecha > '12042013' AND tienda_id = 123 AND cat_prod = 'dulces' AND (SELECT region_id FROM Tienda WITH (Nolock) WHERE Tienda_Id= 12) = 9
y porque usas el nolock?
__________________ What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me |