hi i want help on levels - Mailing list pgsql-sql

From Penchalaiah P.
Subject hi i want help on levels
Date
Msg-id A70AE049E81A6A40879D5DC0AC8C38C90756DF62@venus.infics.com
Whole thread Raw
Responses Re: hi i want help on levels
List pgsql-sql

CREATE TABLE admin_activity

(

  activity_id int4 NOT NULL,

  Activity_name varchar NOT NULL,

  URL varchar,

  parent_activity_id int4);

 

1          Administration               0

2          Activities                       1

3          Manage Activity             2

4          Map Activity Role           2

5          Allowance                     1

6          Bank                             1

7          Code Head                    1

8          Corps                            1

9          DSOP                           1

10         Entitlements                  1

 

These r the values to that table…

 

 

I want like this… tell me the query for this…

 

Administration -> Manage Actvities -> Create Activity

è     Update Activity

è     Delete Activity

 

Admin 1

 

Activity_id         activity_name                parent_id

_____________________________________________

1                      Admin                           null

2          `           Manage activities           1

3                      Create Activity               2

4                      Update Activity              2             

5                      Admin1                         null

6                      Delete Activity               2

                       

 

 

 

Thanks  &  Regards

Penchal reddy | Software Engineer           

Infinite Computer Solutions | Exciting Times…Infinite Possibilities...

SEI-CMMI level 5 | ISO 9001:2000

IT SERVICES | BPO                                                                                                                                                                          

Telecom | Finance | Healthcare | Manufacturing | Energy & Utilities | Retail & Distribution | Government                                                       

Tel +91-80-5193-0000(Ext:503)| Fax  +91-80-51930009 | Cell No  +91-9980012376|www.infics.com          

Information transmitted by this e-mail is proprietary to Infinite Computer Solutions and/ or its Customers and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at info.in@infics.com and delete this mail from your records.

 

Information transmitted by this e-mail is proprietary to Infinite Computer Solutions and / or its Customers and is intended for use only by the individual or the entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at info.in@infics.com and delete this email from your records.

pgsql-sql by date:

Previous
From: Markus Schaber
Date:
Subject: Re: Recursive pl/pgsql function ...
Next
From: Bruno Wolff III
Date:
Subject: Re: deleting rows in specific order