Database Management Systems Lab
PROGRAM NO. 8
Objective: - Use the student table Created in program 1 and Retrieve data from student table 1. Retrieving specific columns from a table. 2. Printing with user defined headings. SQL*Plus: Release 10.2.0.1.0 - Production on Thu Mar 15 14:57:01 2012 Copyright (c) 1982, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options SQL> select*from student_cse10409;
ROLL_NO CLASS ------ ---------1 cse 2 cse 3 cse FATHERNAME --------------a.k malhotra a.k malhotra sapra NAME --------atul anuj kunal DOB --------30- MAY-92 01- SEP- 88 25- JUL- 91 PHONENO ---------9958124857 9958124776 9988116655
1. Retrieving specific columns from a table. SQL> select name from student_cse10409; NAME --------------atul anuj kunal 2. Printing with user defined headings. SQL> select name as first_name from student_cse10409; FIRST_NAME --------------atul anuj kunal
SBIT/CSE/IV/DBMS/CSE-212-F
CSE/10/409