Vous êtes sur la page 1sur 4

Q.1 What is MS Access?

Microsoft Access is a relational database management system. This type of database allows a user to store, retrieve, manage and analyze data quickly and effectively.

Q.2 What is Query? How many types of Query are available in MS Access?
Query: This is a fancy term to basically describe the process of retrieving information from the database. As tables grow in size they can have hundreds of thousands of records, which makes it impossible for the user to pick out specific records form that table. Queries were designed to combat this problem. With a query you can apply a filter to the tables data, so that you only get the information that you want.

There are mainly 10 types of queries are available in MS Access which are as follows: Select Query Delete Query Update Query Append Query Crosstab Query Make Table Query Union Query Pass Through Query Data definition Query
Parameter Query

Q.3 What are forms? Why do we create it? Access provides an easy way in enter data into your Access tables with forms. In Access you have the ability to quickly make and customize these Database forms provide a systematic way of storing information. The information is made available on request. A form is an interface in user specified layout the lets users to view, enter and change data directly in the table.

Q.4 What are reports? Why do we create it?


Report (optional): Information from the database is organized in a nice presentation that can be printed in an Access Report. If any person wants a report to show the sales for each product, as well as the total sales for his company. Luckily, because he has all his sales information in an Access database, he can create a report in about a minute!

Q.5 How to Define Relationship between Tables? When we create a relationship between tables, the related fields do not have the same names. However, related fields must have the same data type unless the primary key field is an AutoNumber field. You can match an AutoNumber field with a Number field only if the Field Size property of both of the matching fields is the same. For example, you can match an fields is Long Integer. Even when both matching fields are Number fields they must have the same Field Size property setting. Q.6 What is difference between design view and wizard view? Wizard view shows the data in the database. It also allows you to enter and edit the data. It does not let you change the format of the database, other than minor changes (such as displayed column widths). Design view allows you to create or change the table, form, or other database object, and configure the fields. You can also set keys and restrict the values entered here. But you cant change the database data in design view.

Q.8 Difference between VARCHAR and VARCHAR2?


a) VARCHAR is going to be replaced by VARCHAR2 in next

version. So Oracle suggests the use VARCHAR2 instead of VARCHAR while declaring datatype. b) VARCHAR and VARCHAR2 both are of variable character. VARCHAR can have Maximum 2000 character while VARCHAR2 can contain maximum 4000 characters. c) If we declare datatype as VARCHAR then it will occupy space for NULL values. In case of VARCHAR2 datatype it will not occupy any space. d) VARCHAR is of ANSI SQL standard while VARCHAR2 is of Oracle standard.

Q.1 What is SQL? Explain in detail? SQL (Pronounced sequel) SQL stands for Structured Query Language, and it is a very powerful and diverse language used to create and query database. Its loose syntax makes it easy to learn, but mastering its intricate architecture may take a bit longer. Q.2 Explain the data type of SQL? SQL data takes shape in several different forms, including character strings, numbers, file stores, and dates. SQL developers call the shots as to what types of data will be stored inside each and every table column when creating a SQL table. DATA TYPES: Integers (3, -17) Point (Decimal) (3.23415) Date (2004-06-22 10:33 11.840) Storing numbers and decimals allows the developer to collect statistical data and create reports based on the data contained inside the table. SQL can even perform mathematical calculations against numeric data, providing endless number crunching abilities. In SQL, decimals are often referred to as point or floating point numbers. These data types are slightly different from the normal integer data types. For the most part, data values are treated like numbers and they can even be added together and subtracted offering the developer the option to add days, months, or years extracted from data values, allowing the developer to pull specific date information from a date value like only the month number, the year, or the day of the week. Q.3 What is the difference between char and varchar data types? The char is a fixed-length character data type, the varchar is a variable length character datatype. Because char is a fixed-length data type, the storage size of the char value is equal to the maximum size for this column. Because varchar is a variablelength data type, the storage size of the varchar value to the actual length of the data entered, no the maximum size for this column. We can use char when the data entries in a column are expected to be the same size. We can use varchar when the data entries in a column are expected to vary considerably in size.

Vous aimerez peut-être aussi