SlideShare a Scribd company logo
Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
“ help.mbaassignments@gmail.com ”
or
Call us at : 08263069601
ASSIGNMENT
PROGRAM BSc IT
SEMESTER 3
SUBJECT CODE & NAME BT0075, RDBMS and MySQL
CREDIT 4
BK ID B1003
MAX.MARKS 60
Note: Answer all questions. Kindly note that answers for 10 marks questions should be approximately
of 400 words. Each questionis followedbyevaluationscheme.
1 Explainthe blob,text and enum data types.
Answer: Properly defining the fields in a table is important to the overall optimization of your database.
You should use only the type and size of field you really need to use; don't define a field as 10 characters
wide if you know you're only going to use 2 characters. These types of fields (or columns) are also
referredtoas data types,afterthe type of data youwill be storinginthose fields.
MySQL uses many different data types broken into three categories: numeric, date and time, and string
types.
Date and Time Types:
The MySQL date and time datatypes are:
2 How to alter databases and tables?Explainwith the helpof examples.
Answer: MySQL ALTER command is very useful when you want to change a name of your table, any
table fieldorif youwantto add or delete anexistingcolumninatable.
Let's beginwithcreationof atable calledtestalter_tbl.
root@host# mysql -u root -p password;
Enter password:*******
mysql> use TUTORIALS;
Database changed
mysql> create table testalter_tbl
-> (
-> i INT,
-> c CHAR(1)
-> );
Query OK, 0 rows affected (0.05 sec)
mysql> SHOW COLUMNS FROM testalter_tbl;
+-------+---------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+---------+------+-----+---------+-------+
| i | int(11) | YES | | NULL | |
| c | char(1) | YES | | NULL | |
+-------+---------+------+-----+---------+-------+
2 rows in set (0.00 sec)
Dropping, Addingor Repositioninga Column:
Suppose we want to drop an existing column i from above MySQL table then you will use DROP clause
alongwithALTER commandas follows:
3 Explainupdate and replace statementswith examples.
Answer:InSQL, a viewisa virtual table basedonthe result-setof anSQL statement.
A view contains rows and columns, just like a real table. The fields in a view are fields from one or more
real tablesinthe database.
We cab add SQL functions, WHERE, and JOIN statements to a view and present the data as if the data
were comingfromone single table.
SQL CREATE VIEW Syntax:
CREATE VIEW view_name AS
SELECT column_name(s)
FROMtable_name
4 Explainthe date and time functions indetail.
Answer: Defines a time of a day without time zone awareness and is based on a 24-hour clock. Click here
to readmore frommsdn.
Syntax: - time [ (fractional second precision) ]
Where 'fractional seconds precision' specifies the number of digits for the fractional part of the seconds.
itsdefaultby7 andcan be from0 to 7.
5 Define grant tables. Describe the steps to set up MySQL user accounts. Also explain the method to
assign passwords to the anonymousaccounts.
Answer: One of the most powerful aspects of the MySQL server is the amazing amount of control the
administrator has over each user’s intended behavior. This control can restrict user privileges over a
general part of the server, such as limited access to an entire database, but can also be as specific as
limitingprivilegesforaspecifictable orevencolumn.
One of the mostpowerful aspectsof the
6 Brieflydescribe the error log and general query log.
Answer: If you are a web developer, you need to refer to various log files, in order to debug your
application or improve its performance. Logs is the best place to start troubleshooting. Concerning the
famousMySQL database server(orMariaDB server),youneedtorefertothe followinglogfiles:
 The Error Log. It contains information about errors that occur while the server is running (also
serverstart andstop)
 The General Query Log. This is a general record of what mysqld is doing (connect, disconnect,
queries)
Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
“ help.mbaassignments@gmail.com ”
or
Call us at : 08263069601

More Related Content

DOCX
Bt0075, rdbms and my sql
DOCX
Bt0075 rdbms and mysql
PPTX
SQL interview questions by Jeetendra Mandal - part 2
PPTX
SQL interview questions jeetendra mandal - part 5
PPTX
SQL interview questions by jeetendra mandal - part 4
PPTX
Cassandra
PPTX
Database Basics and MySQL
PPT
Bt0075, rdbms and my sql
Bt0075 rdbms and mysql
SQL interview questions by Jeetendra Mandal - part 2
SQL interview questions jeetendra mandal - part 5
SQL interview questions by jeetendra mandal - part 4
Cassandra
Database Basics and MySQL

Viewers also liked (20)

DOCX
Bt0076, tcpip
DOCX
Bt0074, oops with java
DOCX
Bt0078 website design
DOCX
Bt0077 multimedia systems
PPS
Photos impressionnantes
PPTX
левицька г.р.виховна система класу
PPT
Llb ii pil u 2.3 ilo
PDF
DDANCESIAMตาราง สยาม สยาม
DOCX
Delphi
DOCX
Emprendedores
PPT
Llb ii cl u 4 winding up and corporate liability
PPTX
Las herramientas tecnológicas
PPTX
Road show yamaha 2015 - Nguyễn Kim Thủ Đức
PDF
Repensar a educacao - Inger Enkvist
PPTX
Mitochondial disorders
PPTX
Injecting lifesaving oxygen into a vein
PPTX
Implementasi Metode AHP (Kasus : Smartphone)
PPTX
Volcanic Eruption Communication Model (Final Revision)
PPTX
Software libre en la Educación
Bt0076, tcpip
Bt0074, oops with java
Bt0078 website design
Bt0077 multimedia systems
Photos impressionnantes
левицька г.р.виховна система класу
Llb ii pil u 2.3 ilo
DDANCESIAMตาราง สยาม สยาม
Delphi
Emprendedores
Llb ii cl u 4 winding up and corporate liability
Las herramientas tecnológicas
Road show yamaha 2015 - Nguyễn Kim Thủ Đức
Repensar a educacao - Inger Enkvist
Mitochondial disorders
Injecting lifesaving oxygen into a vein
Implementasi Metode AHP (Kasus : Smartphone)
Volcanic Eruption Communication Model (Final Revision)
Software libre en la Educación
Ad

Similar to Bt0075, rdbms and my sql (20)

PDF
MySQL for beginners
PPTX
DATA BASE || INTRODUCTION OF DATABASE \\ SQL 2018
PPTX
MySQL 8 -- A new beginning : Sunshine PHP/PHP UK (updated)
PPTX
Locking Down Your MySQL Database.pptx
PDF
Advance MySQL Training by Pratyush Majumdar
PDF
SQL.......................................pdf
PPT
Module02
PDF
Mysql basics1
DOC
My sql technical reference manual
PPT
My sql1
PPTX
Anything SQL: Lightning Talks
DOCX
PPTX
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
PPTX
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
PPTX
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
PDF
My sql 5.7-upcoming-changes-v2
PPTX
Data Base Management 1 Database Management.pptx
PDF
Mysql Datadictionary
PDF
Copy Of Mysql Datadictionary
PPT
MySQL for beginners
DATA BASE || INTRODUCTION OF DATABASE \\ SQL 2018
MySQL 8 -- A new beginning : Sunshine PHP/PHP UK (updated)
Locking Down Your MySQL Database.pptx
Advance MySQL Training by Pratyush Majumdar
SQL.......................................pdf
Module02
Mysql basics1
My sql technical reference manual
My sql1
Anything SQL: Lightning Talks
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
My sql 5.7-upcoming-changes-v2
Data Base Management 1 Database Management.pptx
Mysql Datadictionary
Copy Of Mysql Datadictionary
Ad

Bt0075, rdbms and my sql

  • 1. Dear students get fully solved assignments Send your semester & Specialization name to our mail id : “ help.mbaassignments@gmail.com ” or Call us at : 08263069601 ASSIGNMENT PROGRAM BSc IT SEMESTER 3 SUBJECT CODE & NAME BT0075, RDBMS and MySQL CREDIT 4 BK ID B1003 MAX.MARKS 60 Note: Answer all questions. Kindly note that answers for 10 marks questions should be approximately of 400 words. Each questionis followedbyevaluationscheme. 1 Explainthe blob,text and enum data types. Answer: Properly defining the fields in a table is important to the overall optimization of your database. You should use only the type and size of field you really need to use; don't define a field as 10 characters wide if you know you're only going to use 2 characters. These types of fields (or columns) are also referredtoas data types,afterthe type of data youwill be storinginthose fields. MySQL uses many different data types broken into three categories: numeric, date and time, and string types. Date and Time Types: The MySQL date and time datatypes are: 2 How to alter databases and tables?Explainwith the helpof examples. Answer: MySQL ALTER command is very useful when you want to change a name of your table, any table fieldorif youwantto add or delete anexistingcolumninatable. Let's beginwithcreationof atable calledtestalter_tbl. root@host# mysql -u root -p password; Enter password:******* mysql> use TUTORIALS; Database changed
  • 2. mysql> create table testalter_tbl -> ( -> i INT, -> c CHAR(1) -> ); Query OK, 0 rows affected (0.05 sec) mysql> SHOW COLUMNS FROM testalter_tbl; +-------+---------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------+---------+------+-----+---------+-------+ | i | int(11) | YES | | NULL | | | c | char(1) | YES | | NULL | | +-------+---------+------+-----+---------+-------+ 2 rows in set (0.00 sec) Dropping, Addingor Repositioninga Column: Suppose we want to drop an existing column i from above MySQL table then you will use DROP clause alongwithALTER commandas follows: 3 Explainupdate and replace statementswith examples. Answer:InSQL, a viewisa virtual table basedonthe result-setof anSQL statement. A view contains rows and columns, just like a real table. The fields in a view are fields from one or more real tablesinthe database. We cab add SQL functions, WHERE, and JOIN statements to a view and present the data as if the data were comingfromone single table. SQL CREATE VIEW Syntax: CREATE VIEW view_name AS SELECT column_name(s) FROMtable_name 4 Explainthe date and time functions indetail. Answer: Defines a time of a day without time zone awareness and is based on a 24-hour clock. Click here to readmore frommsdn. Syntax: - time [ (fractional second precision) ] Where 'fractional seconds precision' specifies the number of digits for the fractional part of the seconds. itsdefaultby7 andcan be from0 to 7. 5 Define grant tables. Describe the steps to set up MySQL user accounts. Also explain the method to assign passwords to the anonymousaccounts. Answer: One of the most powerful aspects of the MySQL server is the amazing amount of control the administrator has over each user’s intended behavior. This control can restrict user privileges over a
  • 3. general part of the server, such as limited access to an entire database, but can also be as specific as limitingprivilegesforaspecifictable orevencolumn. One of the mostpowerful aspectsof the 6 Brieflydescribe the error log and general query log. Answer: If you are a web developer, you need to refer to various log files, in order to debug your application or improve its performance. Logs is the best place to start troubleshooting. Concerning the famousMySQL database server(orMariaDB server),youneedtorefertothe followinglogfiles:  The Error Log. It contains information about errors that occur while the server is running (also serverstart andstop)  The General Query Log. This is a general record of what mysqld is doing (connect, disconnect, queries) Dear students get fully solved assignments Send your semester & Specialization name to our mail id : “ help.mbaassignments@gmail.com ” or Call us at : 08263069601