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 . t a b l e s   w h e r e   T a b l e _ n a m e   =   ' P r e s c r i p t i o n ' ) 
 
 b e g i n 
 
 	 c r e a t e   t a b l e   P r e s c r i p t i o n 
 
 	 ( 
 
 	 	 I D 	 i n t   p r i m a r y   k e y , 
 
 	 	 C o d e 	 i n t   n o t   n u l l , 
 
 	 	 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 , 
 
 	 	 P r e _ I D 	 i n t   R e f e r e n c e s   P r e s c r i p t i o n ( I D )   n u l l , 
 
 	 	 T a f _ I D 	 b i g i n t   R e f e r e n c e s   t a f s i l i ( I D )   n o t   n u l l , 
 
 	 	 P r o _ I D _ T y p e 	 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 ,   - -   FH9  -E  = >   *1A9  3'D'FG  'A2'4  ,0(  H  . . . 
 
 	 	 I s s u e D a t e 	 i n t   n o t   n u l l , 
 
 	 	 S t a r t D a t e 	 i n t   n o t   n u l l , 
 
 	 	 E n d D a t e 	 i n t   n o t   n u l l , 
 
 	 	 D e s c r i p t i o n 	 n v a r c h a r ( 1 0 0 0 ) , 
 
 
 
 	 	 K a r _ I D _ C r e a t o r 	 i n t   R e f e r e n c e s   K a r b a r ( I D )   n o t   n u l l , 
 
 	 	 T a r i k h S a b t 	 i n t   n o t   n u l l , 
 
 	 	 S a a t S a b t 	 i n t   n o t   n u l l 
 
 	 ) 
 
 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 . t a b l e s   w h e r e   T a b l e _ n a m e   =   ' P r e s c r i p t i o n D e t a i l ' ) 
 
 b e g i n 
 
 	 c r e a t e   t a b l e   P r e s c r i p t i o n D e t a i l 
 
 	 ( 
 
 	 	 I D 	 i n t   p r i m a r y   k e y , 
 
 	 	 P r e _ I D 	 i n t   R e f e r e n c e s   P r e s c r i p t i o n ( I D )   n o t   n u l l , 
 
 	 	 P F _ I D 	 i n t   R e f e r e n c e s   P r e s c r i p t i o n F o r m u l a ( I D )   n o t   n u l l , 
 
 	 	 V a l u e 	 d e c i m a l ( 1 9 , 4 )   n o t   n u l l 
 
 	 ) 
 
 e n d 