Assignment Database
Assignment Database
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.
Ans: 1) The standard format for dates and times YYYY-MM-DD HH:MM:SS:mmm, with the time in 24-hour
format.
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).
Ans: Sorting refers to rearrangement of data in a specific order on the basis of a fields values.
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.
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.
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.
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.
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.
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.
Ans: The group field statement allows you to combine some of the best features of a group with those of a
field.
Ans: Single-Table Select query, Multiple-Table Select query, Range query, Complex 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.
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.
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.
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