Help for this page

Select Code to Download


  1. or download this
    Table :- test
    category_id   | category_name          | main_category | 
    ...
    |          11 | Five                   |             0 | 
    |          12 | Ten                    |            10 | 
    |          13 | Eleven                 |             5 |
    
  2. or download this
    One    
      Six
    ...
    Three
    Four 
    Five
    
  3. or download this
     Query 1 :- Select category_id from test where main_category='0';
     Query 2 :- Select category_id from test where main_category=(result f
    +rom query 1)