Update DBMS/SQL/Week7/writeup.md
This commit is contained in:
		
							parent
							
								
									f50567be0d
								
							
						
					
					
						commit
						4c49bd8d7d
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		|  | @ -11,13 +11,11 @@ DECLARE | |||
|     v_driver_name VARCHAR2(100); | ||||
|     v_driver_address VARCHAR2(255); | ||||
| BEGIN | ||||
|     -- Fetch driver information based on DRIVER_ID# | ||||
|     SELECT NAME, ADDRESS | ||||
|     INTO v_driver_name, v_driver_address | ||||
|     FROM person | ||||
|     WHERE DRIVER_ID# = :NEW.DRIVER_ID#; | ||||
| 
 | ||||
|     -- Display the driver information | ||||
|     DBMS_OUTPUT.PUT_LINE('Driver ID: ' || :NEW.DRIVER_ID#); | ||||
|     DBMS_OUTPUT.PUT_LINE('Driver Name: ' || v_driver_name); | ||||
|     DBMS_OUTPUT.PUT_LINE('Driver Address: ' || v_driver_address); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Aadit Agrawal
						Aadit Agrawal