Sumita Arora Solution

What is the library? Write procedure to create own library in Python.

Library is collection of packages. Library is similar to directory in system Steps to create own library in python- Decide basic structure of package like name of package, module, sub-folders, sub-packages which will be part of it. Create the directory structure including folders, package name, sub packages. Inside main package folder create file/module i.e. .py

What is the library? Write procedure to create own library in Python. Read More »

What are aggregate functions? What is their use? Give some examples.

Aggregate functions work with multiple rows of table at a time and return single aggregate value. It is basically used to produce summarized data from our database. Basically there are five aggregate functions:– COUNT()– AVG()– MIN()– MAX()– SUM() ExamplesSELECT SUM(Total) FROM ITEM; SELECT AVG(Marks) FROM Student; SELECT DeptNo, MAX(Salary)FROM EmployeeGROUP BY DeptNo;

What are aggregate functions? What is their use? Give some examples. Read More »

error: Content is protected !!