Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 323269FB34E for ; Mon, 16 Oct 2006 11:47:27 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 62506-02 for ; Mon, 16 Oct 2006 14:47:15 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from gateway.infics.com (gateway.infics.com [202.54.39.20]) by postgresql.org (Postfix) with ESMTP id 034F69FB372 for ; Mon, 16 Oct 2006 11:47:08 -0300 (ADT) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6F131.F0FF3B4F" X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Subject: hi i want help on levels Date: Mon, 16 Oct 2006 20:17:01 +0530 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: hi i want help on levels Thread-Index: AcbxMfCUpEJLoMPmRDCSM8tgWajumw== From: "Penchalaiah P." To: X-imss-version: 2.043 X-imss-result: Passed X-imss-scanInfo: M:P L:E SM:0 X-imss-tmaseResult: TT:0 TS:0.0000 TC:00 TRN:0 TV:3.6.1039(14754.003) X-imss-scores: Clean:89.29335 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:2 C:1 M:1 S:4 R:1 (0.1500 0.1500) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.116 tagged_above=0 required=5 tests=HTML_MESSAGE, HTML_TEXT_AFTER_BODY X-Spam-Level: X-Archive-Number: 200610/153 X-Sequence-Number: 26542 This is a multi-part message in MIME format. ------_=_NextPart_001_01C6F131.F0FF3B4F Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable CREATE TABLE admin_activity ( activity_id int4 NOT NULL, Activity_name varchar NOT NULL, URL varchar, parent_activity_id int4); =0D 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 =0D These r the values to that table... =0D =0D I want like this... tell me the query for this... =0D Administration -> Manage Actvities -> Create Activity =3D=3D> Update Activity =3D=3D> Delete Activity =0D Admin 1 =0D Activity_id activity_name parent_id _____________________________________________ 1 Admin null 2 ` Manage activities 1 3 Create Activity 2 4 Update Activity 2 =0D 5 Admin1 null 6 Delete Activity 2 =0D =0D =0D =0D Thanks & Regards Penchal reddy | Software Engineer =0D 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 =0D 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. =0D 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. ------_=_NextPart_001_01C6F131.F0FF3B4F Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

CREATE TABLE admin_activity

(

  activity_id int4 NOT= NULL,

  Activity_name varchar NOT= NULL,

  URL varchar,

  parent_activity_id= int4);

 

1          Administration             &nb= sp; 0

2          Activities           = ;            1

3          Manage Activity           &= nbsp; 2

4         = Map Activity Role          = 2

5          Allowance           =           1

6          Bank            = ;            &n= bsp;    1

7         = Code Head            = ;        1

8          Corps           &nbs= p;            &= nbsp;   1

9          DSOP            = ;            &n= bsp;  1

10         Entitlements          &nb= sp;       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    &nb= sp;    activity_name               = parent_id

______________________________________= _______

1      &= nbsp;           &nbs= p;   Admin           &nbs= p;              = null

2      &= nbsp;   `           Manage activities          = 1

3      &= nbsp;               Create Activity           &= nbsp;   2

4      &= nbsp;               Update Activity           &= nbsp;  2            &n= bsp;

5             &nb= sp;        Admin1           &nb= sp;             null

6      &= nbsp;               Delete Activity           &= nbsp;   2

      &n= bsp;            = ;    

 

 

 

Thanks  & = Regards

Penchal reddy | Software Engineer           <= font color=3Dnavy>

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

SEI-CMMI level 5 | ISO 9001:2000

IT SERVICES | BPO            =             &nb= sp;            =             &nb= sp;            =             &nb= sp;            =             &nb= sp;            =             &nb= sp;            =             &nb= sp;            =         

Telecom | Financ= e |= Healthcare | Manufa= cturing |= Energy & Utilities | Retail & Distribution |= Government        = ;            &n= bsp;            = ;            &n= bsp;         

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

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.
------_=_NextPart_001_01C6F131.F0FF3B4F--