DBMS
DBMS
Step 1 :- Download the MYSQL .exe file from the MYSQL official website.
Step 2 :- Open the downloaded .exe file of the MYSQL server and click install.
Step 3 :- Then follow up the installation procedure show on the screen.
Step 4 :- Wait till the MYSQL server is installed.
Step 5 :- Click on the MYSQL icon which will appear after completion of the
installation process and you are good to go.
Q2) Create database and use it. Also create tables in database.
SQL database or relational database is a collection of highly structured tables, wherein each
row reflects a data entity, and every column defines a specific information field. Relational
databases are built using the structured query language (SQL) to create, store, update, and
retrieve data.
Page 1 of 8
Q4) Use select command to display table data.
The SELECT statement is used to select data from a database.
Page 2 of 8
Q6) Use where clause.
The WHERE clause is used to filter records. It is used to extract only those records that
full fill a specified condition.
OR Operator :- The OR operator is used to filter records based on more than one condition, like if you
want to return all customers from Germany but also those from Spain.
NOT Operator :- The NOT operator is used in combination with other operators to give the opposite
result, also called the negative result.
Page 3 of 8
Q8) Use order by keyword.
The ORDER BY keyword is used to sort the result-set in ascending or descending order.
Page 4 of 8
Q10) Use limit clause.
The LIMIT clause is used to specify the number of records to return. The LIMIT clause is useful on large
tables with thousands of records. Returning a large number of records can impact performance.
Page 5 of 8
Q12) Use “count” , “avg.” & “sum” .
COUNT() Function :- The COUNT() function returns the number of rows that matches a specified
criterion.
AVG() Function :- The AVG() function returns the average value of a numeric column.
SUM() Function :- The SUM() function returns the total sum of a numeric column.
Page 6 of 8
Q14) Use wildcard characters.
A wildcard character is used to substitute one or more characters in a string. Wildcard characters are
used with the LIKE operator. The LIKE operator is used in a WHERE clause to search for a specified
pattern in a column.
Between Operator :- The BETWEEN operator selects values within a given range. The values can be
numbers, text, or dates.
The BETWEEN operator is inclusive: begin and end values are included.
Page 7 of 8
Q16) Use MYSQL aliases.
SQL aliases are used to give a table, or a column in a table, a temporary name.
An alias only exists for the duration of that query.
An alias is created with the AS keyword.
Page 8 of 8