Обсуждение: hi i want help on levels
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. |
Search the archives for hierarchical query. -- Jim Nasby jim@nasby.net EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)