Consul

138 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
138
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Consul

  1. 1. SELECT DISTINCTn.idNoticia,n.textoNoticia,n.Rutavideo,n.`usuarioP`,n.fechapublicacionFROM noticia AS n,usuarios AS u,imagen AS i,amigos AS a WHERE n.usuarioP =4 AND n.usuarioP=a.amigo2 AND i.idusuario = u.idusuarioAND i.estadouso= 1 ORDER BY n.fechapublicacion DESC

×