I F   ( ( S E L E C T   C O U N T ( * )   F R O M   m a t t e r   W H E R E   I D   =   - 1 )   =   0 ) 
 
 b e g i n 
 
 	 i n s e r t   i n t o   m a t t e r ( I D , D o m _ I D _ T y p e , C o d e , F C _ I D , O r g _ I D , D o m _ I D _ S t a t u s , T a r i k h S a b t , S a a t S a b t , C o d e K a r b a r )   v a l u e s ( - 1 , - 1 , - 1 , 3 0 , 8 , 4 5 5 , 1 4 0 0 0 1 0 1 , 1 2 0 0 , 1 ) 
 
 e n d 
 
 ; 
 
 I F   n o t   E X I S T S (   S E L E C T   *   F R O M   I N F O R M A T I O N _ S C H E M A . C O L U M N S   W H E R E   T A B L E _ N A M E   =   ' p r o d u c t '   A N D     C O L U M N _ N A M E   =   ' M a t _ I D ' ) 
 
 b e g i n 
 
 	 a l t e r   t a b l e   p r o d u c t   a d d   M a t _ I D 	 b i g i n t   r e f e r e n c e s   m a t t e r   ( I D )   n o t   n u l l   d e f a u l t   - 1 
 
 e n d 
 
 ; 
 
 I F   n o t   E X I S T S (   S E L E C T   *   F R O M   I N F O R M A T I O N _ S C H E M A . C O L U M N S   W H E R E   T A B L E _ N A M E   =   ' p r o d u c t '   A N D     C O L U M N _ N A M E   =   ' F C _ I D ' ) 
 
 b e g i n 
 
 	 a l t e r   t a b l e   p r o d u c t   a d d   F C _ I D 	 i n t   r e f e r e n c e s   F i n a n c e _ C y c l e   ( I D )   n o t   n u l l   d e f a u l t   - 1 
 
 e n d 
 
 ; 
 
 I F   n o t   E X I S T S (   S E L E C T   *   F R O M   I N F O R M A T I O N _ S C H E M A . C O L U M N S   W H E R E   T A B L E _ N A M E   =   ' p r o d u c t '   A N D     C O L U M N _ N A M E   =   ' P r o _ I D _ V a h e d M a l i ' ) 
 
 b e g i n 
 
 	 a l t e r   t a b l e   p r o d u c t   a d d   P r o _ I D _ V a h e d M a l i 	 i n t   r e f e r e n c e s   o t h e r P r o p e r t i e s   ( I D )   n o t   n u l l   d e f a u l t   - 1 
 
 e n d 