home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 6 / 06.iso / a / a600 / 4.ddi / ETC / UPDMENU.SQL < prev   
Encoding:
Text File  |  1989-12-07  |  1.5 KB  |  34 lines

  1. { *************************************************************************
  2.  
  3.                      RELATIONAL DATABASE SYSTEMS, INC.
  4.  
  5.                              PROPRIETARY DATA
  6.  
  7.    THIS WORK CONTAINS PROPRIETARY INFORMATION AND TRADE SECRETS WHICH ARE 
  8.    THE PROPERTY OF RELATIONAL DATABASE SYSTEMS, INC. (RDS).  THIS DOCUMENT 
  9.    IS SUBMITTED TO RECIPIENT IN CONFIDENCE.  THE INFORMATION CONTAINED 
  10.    HEREIN MAY NOT BE USED, COPIED OR DISCLOSED IN WHOLE OR IN PART EXCEPT 
  11.    AS PERMITTED BY WRITTEN AGREEMENT SIGNED BY AN OFFICER OF RDS.
  12.  
  13.    COPYRIGHT (c) 1981-1986 RELATIONAL DATABASE SYSTEMS, INC., PALO ALTO, 
  14.    CALIFORNIA.  All rights reserved.  No part of this work covered by the 
  15.    copyright hereon may be reproduced or used in any form or by any means 
  16.    -- graphic, electronic, or mechanical, including photocopying, 
  17.       recording, taping, or information storage and retrieval systems --
  18.    without permission of RDS.
  19.  
  20.    Title:    upsysmenu.sql
  21.    Sccsid:    @(#)updmenu.sql    4.1    10/9/86  09:32:47
  22.    Description:
  23.          script to update 2.0 user menu database to 2.1 user menu db
  24.  
  25.  **************************************************************************}
  26. update sysmenuitems set progname = nextmenu 
  27. where nextmenu is not null and nextmenu != " "
  28. and (progname is null or progname = " ");
  29. select imenuname, itemnum, count(*) from sysmenuitems group by
  30. imenuname, itemnum having count(*) > 1;
  31. drop index meniidx;
  32. create unique index meniidx on sysmenuitems (imenuname, itemnum);
  33.  
  34.