Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Saber que productos comando tal mesero en tal mesa.
- Usando filtro de fecha y nombre de mesa.
- SELECT descripcion
- FROM productos
- WHERE idproducto IN (
- SELECT idproducto
- FROM cheqdet
- WHERE foliodet IN (
- SELECT folio
- FROM cheques
- WHERE mesa = 'EMILIANO' AND fecha BETWEEN '3/10/2019 15:21:13 pm' AND '3/10/2019 16:21:13 pm' AND cierre BETWEEN '3/10/2019 16:21:39 pm' AND '3/10/2019 17:21:13 pm' AND idmesero IN ( SELECT idmesero FROM meseros WHERE nombre = 'ABI')
- ) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement