23121 Ritesh
23121 Ritesh
Submitted By Submitted To
Ritesh Dr. Pooja Mittal
MCA , 2nd sem Dr. Preeti Gulia
Roll: 23121
ADVANCE DATABASE SYSTEMS & DATA WAREHOUSE
1.Create table
2. Alter the table
Insert
Update
Delete
3. Run and implement numeric functions
1.Absolute
2. Power
3.round
4.squareroot
5.exponential
4. Run and implement string functions
1)lower
2)upper
3)initchar
4)substring
5)instring
6)ascii
5. Run and implement aggregate functions
1)min
2)max
3)count
4)average
7. Perform the following exercises
1)orderby
2)groupby
3)where
5)and / or
8. Pattern matching and range searching
Table: Student
Table: StudentCourse
a. Write a query to perform Inner Join and show the ‘names’ and ‘age’ of
students enrolled in different courses where Student.ROLL_NO =
StudentCourse.ROLL_NO
b. Write a query to perform Left Outer Join and
showStudent.NAME,StudentCourse.COURSE_ID where
Student.ROLL_NO = StudentCourse.ROLL_NO
#!/bin/bash
#!/bin/bash
Output
4. Write a Shell Script to accept 4 integers from the user
and print it’s Sum, Average, and Product.
#!/bin/bash
Output
5. Write a Shell Script to find largest and smallest among
3 given numbers.
#!/bin/bash
#!/bin/bash
Output:-
7. Write a Shell Script to generate a Fibonacci series.
#!/bin/bash
Output:-
8. Write a Shell Script to find whether given number is
palindrome or not.
#!/bin/bash
Output:-
9. Write a Shell Script to print alternate digits from an
integer enter by the use.
#!/bin/bash
Output:-
10.Write a Shell Script to count number of words,
characters, and special symbols from the given string.
#!/bin/bash
# Count words
words=$(echo "$text" | wc -w)
# Count characters
characters=$(echo "$text" | wc -c)
Output:-
11.Write a Shell Script for linear search.
#!/bin/bash
# Array of numbers
numbers=(10 20 30 40 50 60 70 80 90 100)
# Main script
echo "Available numbers: ${numbers[@]}"
echo -n "Enter a number to search: "
read search_num
linear_search $search_num
Output