Query: Desc Deposit - 74 Output
Query: Desc Deposit - 74 Output
queries:
1
(3)List all data from table DEPOSIT
10 rows selected
2
206 MEHUL AJNI 5000
6 rows selected
-------------------- --------------------
ANIL CALCUTTA
SUNIL DELHI
MEHUL BARODA
MANDAR PATNA
MADHURI NAGPUR
PRAMOD NAGPUR
SANDIP SURAT
SHIVANI BOMBAY
KRANTI CALCUTTA
NAREN CALCUTTA
10 rows selected
BNAME CITY
-------------------- --------------------
VRCE NAGPUR
AJNI NAGPUR
CHANDI DELHI
DHARAMPETH NAGPUR
ANDHERI BOMBAY
3
VIRAR BOMBAY
POWAI BOMBAY
9 rows selected
-------------------- ----------
100 1000
101 5000
102 3500
103 1200
105 3000
106 2000
107 1000
108 5000
109 7000
10 rows selected
4
Query: INSERT CNAME FROM DEPOSIT_74 WHERE ADATE > ’1-DEC-96’
Output: no rows selected
5
Q.2 From the above given tables perform the following queries:
6
FI_ACC ACCOUNT 4200 9000
7
(2) Give details of account no. and deposited rupees of customers having
account opened between dates 01-01-06 and 25-07-06.
Output:
A_NO AMOUNT
----- ----------
101 7000
102 5000
103 6500
(3) Display all jobs with minimum salary is greater than 4000.
(1) Display all employees whose name start with ‘A’ and third character
is ‘ ‘a’.
(2) Display name, number and salary of those employees whose name is
9
5 characters long and first three characters are ‘Ani’ .
(3) Display the non-null values of employees and also employee name
second character should be ‘n’ and string should be 5 character
long.
(4) Display the null values of employee and also employee name’s third
character should ‘a’ .
10
107 ANAMIKA 2975 30
Output:
SUM(AMOUNT)
--------------------------
39500
Output:
SUM(AMOUNT)
----------------------------
3500
Output:
MAX(AMOUNT)
11
----------------------------
1000
Output:
COUNT(CNAME)
------------------------------
10
Output:
COUNT(CITY)
----------------------------
10
(6) Create table supplier from employee with all the columns.
(7) Create table sup1 from employee with first two columns.
13
(14) Update the value dept_no to 10 where second character of emp. name is ‘m’.
(15) Update the value of employee name whose employee number is 103.
14