mysql - rank users and join tables -


How can I rank users based on numbers and that user may include references to any other table Is involved in? I can not find the correct ranking with the code given below:

  select *, (@rank: = @ rank + 1) tblb as the rank of UV tblC c uv.sno = Join joining c.refno (join rank: = 0) where ranks UVSO (2, 4, 5);  

I really appreciate any help. Thanks in advance.

  If not present, TBB (id int (11) null auto_interpretation, snow varchar (255), name varchar (255), primary key (id)); If the table is not present, then TBL (ID int (11) faucet auto_increment, data communication (255), rick varna (255), number int (255), primary key (id)) is not present; Enter the TBB (Snow, Name) value ('1', 'A'), ('2', 'BB'), ('3', 'CC'), ('4', 'DD') ('5', 'E'), ('6', 'FF'), ('7', 'gg'), ('8', 'hh'); INSERT ('Data 1', '1', '101'), ('Data2', '2', '102'), ('Data 3', '3') in TBC (Data, Refono, Issue) , '103' ('Data 4', '4', '101'), ('Data 5', '5', '102'), ('Data 6', '6', '103'), ( 'Data 7', 7 ',' 101 '), (' Data 8 ',' 8 ',' 101 '), (' Data 9 ',' 9 ',' 101 ');  

You command by order, but you want to order by point , looks like typo.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -