0% found this document useful (0 votes)
4 views

Assignment Database

Uploaded by

anujput6
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Assignment Database

Uploaded by

anujput6
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Subject: Information Technology -402

Session : 3 Creating / Editing Tables in Design View

Q1. How are field types Boolean and TINYINT different from one another?

Ans: Boolean: These data types store yes/no or true/false values. It shows zero values as false and non zero
values (whether negative or positive) as true.

TINYINT: This field accepts integers or whole numbers with a fixed length of three (3) spaces.

Q2. Write the difference between INT and TINYINT data types.

Ans: INT: This field accept integers or whole numbers with a fixed length of 10 spaces. It also has an auto
value feature that fills up the field with a value you set automatically.

TINYINT: This field accepts integers or whole numbers with a fixed length of three (3) spaces.

Q3. What you mean by default value of a field in BASE and how can it be set?

Ans: Default Value: In the context of databases, a default value of a field is the value that a system
automatically assigns to the field when a new record is created. If the user does not specify a value for the
field, the system will use the default value.

Q4. What are the different Date/Time formats available in BASE?

Ans: 1) The standard format for dates and times YYYY-MM-DD HH:MM:SS:mmm, with the time in 24-hour
format.

2) MM/DD/YYYY, the format used in the database.

3) The default formats set up by Eloqua (as long as they are not modified or deleted by the Customer
Administrator).

4) Any of the additional formats set up by the Customer Administrator, which may include the
(DD/MM/YYYY).

Q5. Discuss various field types that are available in BASE.

Ans: 1. Number Data typeTINYINT, SMALLINT, INTEGER, BIGINT

2. Text Data type CHAR, VARCHAR, LONGVARCHAR, VARCHAR_IGNORCASE

3. Data Data type

4. Time Data type

5. Date/Time Data type

6. Boolean Data type

7. Auto number Data type etc.


Session : 4 Performing Operations on Tables

Q1. What is sorting?

Ans: Sorting refers to rearrangement of data in a specific order on the basis of a fields values.

Q2. What are two ways of sorting data?

Ans: Data is typically sorted based on actual values, in either ascending or descending order, but can also be
sorted based on the variable value labels.

Q3. How do you sort data in a base table?

Ans: 1. Select a cell within the data.

2. Select Home > Sort & Filter. Or, select Data > Sort.

3. Select an option: Sort A to Z - sorts the selected column in an ascending order. Sort Z to A - sorts the
selected column in a descending order.

Q4. What is the role and importance of relationship in a database?

Ans: It helps improve table structures and reduce redundant data. Understanding relationship in databases is
important as it allows you to fetch data from multiple tables simultaneously and helps ensure that data in
databases are consistent and updated.

Q5. Discuss different types of relationships along with examples?

Ans: 1. One-to-One: Each record in table A can have only one matching record in table B and each record in
table B can have only one matching record in table A.

2. One-to-Many: A one-to-many relationship is the most common type of relationship. In a one-to-many


relationship, a record in table A can have many matching record in table B but a record in table B has only
one matching record in table A.

3. Many-to-Many: A record in table A can have many matching records in table B and a record in table B
can have many matching record in table A. This type of relationship is only possible by defining a third table
(called a junction table) whose primary key consists of two fields- the foreign key from both table A and B.

Q6. Give some examples of different types of relationships in a database.

Ans:1. One-to-One 2. One-to-Many 3. Many-to-Many


Session : 5 Queries in Base

Q1. What are queries?


Ans: A query can either be a request for data results from your database or for action on the data, or
for both.
Q2. What are the advantages of queries?
Ans: 1. Combine data from several data sources. A table usually only displays data that it stores.

2. View records that meet criteria that we specify.


3. Makes it easier to view, add, delete, or change data in your Access database.
Q3. How do you create queries in Base?

Ans: 1. open the database on whose table you want to create a query.
2. In the database window, select queries from the left pane and click use wizard to create query.
3.query wizard will start. After selecting the table name, select the fields from the left box, which you want to
display in query and click > button. Once done click Next>.

4. you can specify the sort order by selecting the sort field.
5. Select Conditions.

6.Lastly it will show you overview of your query. Click finish here to view your query.

Q4. What is group-field?

Ans: The group field statement allows you to combine some of the best features of a group with those of a
field.

Q5. What are different types of queries?

Ans: Single-Table Select query, Multiple-Table Select query, Range query, Complex query,

Totals query, Action query, Parameter query, Crosstab query etc.

Q6. What is summary query?

Ans: A summary query, as opposed to a simple query, is used to extract aggregate of data items for a group
of records rather than a detailed set of records.

Q7. What is aggregate function? What is its other name?

Ans: In database management, an aggregate function or aggregation function is a function where multiple
values are processed together to form a single summary statistic other name is aggregate functions is
summary functions. Common aggregate functions include: Average, sum, count minimum, maximum etc.

Q8. Name some summary functions and their usage.

Ans: Average: Calculates the average value of a column of numbers. The average value of a column is equal
to the sum of the values divided by the number of values.

Sum: Adds values in a given column and returns an aggregate value.

DISTINCT_COUNT: Returns the number of rows in a given column.

Maximum: Returns the highest value in a given column or the highest value between two values on the same
row.

Minimum: Returns the lowest value in a given column or the lowest value between two values on the same
row. etc

You might also like