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
Ad

More Related Content

Viewers also liked (20)

Bt0076, tcpip
Bt0076, tcpipBt0076, tcpip
Bt0076, tcpip
smumbahelp
 
Bt0074, oops with java
Bt0074, oops with javaBt0074, oops with java
Bt0074, oops with java
smumbahelp
 
Bt0078 website design
Bt0078   website designBt0078   website design
Bt0078 website design
smumbahelp
 
Bt0077 multimedia systems
Bt0077   multimedia systemsBt0077   multimedia systems
Bt0077 multimedia systems
smumbahelp
 
Photos impressionnantes
Photos impressionnantesPhotos impressionnantes
Photos impressionnantes
Balcon60
 
sexe
sexesexe
sexe
faultyverse7818
 
левицька г.р.виховна система класу
левицька г.р.виховна система класу левицька г.р.виховна система класу
левицька г.р.виховна система класу
Halyna Levitska
 
Llb ii pil u 2.3 ilo
Llb ii pil u 2.3 iloLlb ii pil u 2.3 ilo
Llb ii pil u 2.3 ilo
Rai University
 
DDANCESIAMตาราง สยาม สยาม
DDANCESIAMตาราง สยาม สยามDDANCESIAMตาราง สยาม สยาม
DDANCESIAMตาราง สยาม สยาม
ddancethailand
 
Delphi
DelphiDelphi
Delphi
Hardini_HD
 
Emprendedores
EmprendedoresEmprendedores
Emprendedores
Maribel Gomez
 
Llb ii cl u 4 winding up and corporate liability
Llb ii cl u 4 winding up and corporate liabilityLlb ii cl u 4 winding up and corporate liability
Llb ii cl u 4 winding up and corporate liability
Rai University
 
Las herramientas tecnológicas
Las herramientas tecnológicasLas herramientas tecnológicas
Las herramientas tecnológicas
Andrea Cardozo Tao
 
Road show yamaha 2015 - Nguyễn Kim Thủ Đức
Road show yamaha 2015 - Nguyễn Kim Thủ ĐứcRoad show yamaha 2015 - Nguyễn Kim Thủ Đức
Road show yamaha 2015 - Nguyễn Kim Thủ Đức
Hoàng Tuấn
 
Repensar a educacao - Inger Enkvist
Repensar a educacao - Inger EnkvistRepensar a educacao - Inger Enkvist
Repensar a educacao - Inger Enkvist
Prometeusone
 
Mitochondial disorders
Mitochondial disordersMitochondial disorders
Mitochondial disorders
aqsa ayoub
 
Injecting lifesaving oxygen into a vein
Injecting lifesaving oxygen into a veinInjecting lifesaving oxygen into a vein
Injecting lifesaving oxygen into a vein
aqsa ayoub
 
Implementasi Metode AHP (Kasus : Smartphone)
Implementasi Metode AHP (Kasus : Smartphone)Implementasi Metode AHP (Kasus : Smartphone)
Implementasi Metode AHP (Kasus : Smartphone)
Uliel Azmie
 
Volcanic Eruption Communication Model (Final Revision)
Volcanic Eruption Communication Model (Final Revision)Volcanic Eruption Communication Model (Final Revision)
Volcanic Eruption Communication Model (Final Revision)
Jose Radin Garduque
 
Software libre en la Educación
Software libre en la EducaciónSoftware libre en la Educación
Software libre en la Educación
Lizeth_08
 
Bt0074, oops with java
Bt0074, oops with javaBt0074, oops with java
Bt0074, oops with java
smumbahelp
 
Bt0078 website design
Bt0078   website designBt0078   website design
Bt0078 website design
smumbahelp
 
Bt0077 multimedia systems
Bt0077   multimedia systemsBt0077   multimedia systems
Bt0077 multimedia systems
smumbahelp
 
Photos impressionnantes
Photos impressionnantesPhotos impressionnantes
Photos impressionnantes
Balcon60
 
левицька г.р.виховна система класу
левицька г.р.виховна система класу левицька г.р.виховна система класу
левицька г.р.виховна система класу
Halyna Levitska
 
DDANCESIAMตาราง สยาม สยาม
DDANCESIAMตาราง สยาม สยามDDANCESIAMตาราง สยาม สยาม
DDANCESIAMตาราง สยาม สยาม
ddancethailand
 
Llb ii cl u 4 winding up and corporate liability
Llb ii cl u 4 winding up and corporate liabilityLlb ii cl u 4 winding up and corporate liability
Llb ii cl u 4 winding up and corporate liability
Rai University
 
Las herramientas tecnológicas
Las herramientas tecnológicasLas herramientas tecnológicas
Las herramientas tecnológicas
Andrea Cardozo Tao
 
Road show yamaha 2015 - Nguyễn Kim Thủ Đức
Road show yamaha 2015 - Nguyễn Kim Thủ ĐứcRoad show yamaha 2015 - Nguyễn Kim Thủ Đức
Road show yamaha 2015 - Nguyễn Kim Thủ Đức
Hoàng Tuấn
 
Repensar a educacao - Inger Enkvist
Repensar a educacao - Inger EnkvistRepensar a educacao - Inger Enkvist
Repensar a educacao - Inger Enkvist
Prometeusone
 
Mitochondial disorders
Mitochondial disordersMitochondial disorders
Mitochondial disorders
aqsa ayoub
 
Injecting lifesaving oxygen into a vein
Injecting lifesaving oxygen into a veinInjecting lifesaving oxygen into a vein
Injecting lifesaving oxygen into a vein
aqsa ayoub
 
Implementasi Metode AHP (Kasus : Smartphone)
Implementasi Metode AHP (Kasus : Smartphone)Implementasi Metode AHP (Kasus : Smartphone)
Implementasi Metode AHP (Kasus : Smartphone)
Uliel Azmie
 
Volcanic Eruption Communication Model (Final Revision)
Volcanic Eruption Communication Model (Final Revision)Volcanic Eruption Communication Model (Final Revision)
Volcanic Eruption Communication Model (Final Revision)
Jose Radin Garduque
 
Software libre en la Educación
Software libre en la EducaciónSoftware libre en la Educación
Software libre en la Educación
Lizeth_08
 

Similar to Bt0075, rdbms and my sql (20)

MySQL for beginners
MySQL for beginnersMySQL for beginners
MySQL for beginners
Saeid Zebardast
 
DATA BASE || INTRODUCTION OF DATABASE \\ SQL 2018
DATA BASE || INTRODUCTION OF DATABASE \\ SQL 2018DATA BASE || INTRODUCTION OF DATABASE \\ SQL 2018
DATA BASE || INTRODUCTION OF DATABASE \\ SQL 2018
teachersduniya.com
 
MySQL 8 -- A new beginning : Sunshine PHP/PHP UK (updated)
MySQL 8 -- A new beginning : Sunshine PHP/PHP UK (updated)MySQL 8 -- A new beginning : Sunshine PHP/PHP UK (updated)
MySQL 8 -- A new beginning : Sunshine PHP/PHP UK (updated)
Dave Stokes
 
Locking Down Your MySQL Database.pptx
Locking Down Your MySQL Database.pptxLocking Down Your MySQL Database.pptx
Locking Down Your MySQL Database.pptx
Dave Stokes
 
Advance MySQL Training by Pratyush Majumdar
Advance MySQL Training by Pratyush MajumdarAdvance MySQL Training by Pratyush Majumdar
Advance MySQL Training by Pratyush Majumdar
Pratyush Majumdar
 
SQL.......................................pdf
SQL.......................................pdfSQL.......................................pdf
SQL.......................................pdf
rajeswaria21
 
Module02
Module02Module02
Module02
Sridhar P
 
Mysql basics1
Mysql basics1Mysql basics1
Mysql basics1
Steffy Robert
 
My sql technical reference manual
My sql technical reference manualMy sql technical reference manual
My sql technical reference manual
Mir Majid
 
My sql1
My sql1My sql1
My sql1
Akash Gupta
 
Anything SQL: Lightning Talks
Anything SQL: Lightning TalksAnything SQL: Lightning Talks
Anything SQL: Lightning Talks
SQL Server Sri Lanka User Group
 
Sql
SqlSql
Sql
navsissuk
 
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptxSQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
SabrinaShanta2
 
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptxSQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
SaiMiryala1
 
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptxSQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
BhupendraShahi6
 
My sql 5.7-upcoming-changes-v2
My sql 5.7-upcoming-changes-v2My sql 5.7-upcoming-changes-v2
My sql 5.7-upcoming-changes-v2
Morgan Tocker
 
Data Base Management 1 Database Management.pptx
Data Base Management 1 Database Management.pptxData Base Management 1 Database Management.pptx
Data Base Management 1 Database Management.pptx
PreeTVithule1
 
Mysql Datadictionary
Mysql DatadictionaryMysql Datadictionary
Mysql Datadictionary
rootuser
 
Copy Of Mysql Datadictionary
Copy Of Mysql DatadictionaryCopy Of Mysql Datadictionary
Copy Of Mysql Datadictionary
Golak Sarangi
 
My SQL
My SQLMy SQL
My SQL
Karan Kashyap
 
DATA BASE || INTRODUCTION OF DATABASE \\ SQL 2018
DATA BASE || INTRODUCTION OF DATABASE \\ SQL 2018DATA BASE || INTRODUCTION OF DATABASE \\ SQL 2018
DATA BASE || INTRODUCTION OF DATABASE \\ SQL 2018
teachersduniya.com
 
MySQL 8 -- A new beginning : Sunshine PHP/PHP UK (updated)
MySQL 8 -- A new beginning : Sunshine PHP/PHP UK (updated)MySQL 8 -- A new beginning : Sunshine PHP/PHP UK (updated)
MySQL 8 -- A new beginning : Sunshine PHP/PHP UK (updated)
Dave Stokes
 
Locking Down Your MySQL Database.pptx
Locking Down Your MySQL Database.pptxLocking Down Your MySQL Database.pptx
Locking Down Your MySQL Database.pptx
Dave Stokes
 
Advance MySQL Training by Pratyush Majumdar
Advance MySQL Training by Pratyush MajumdarAdvance MySQL Training by Pratyush Majumdar
Advance MySQL Training by Pratyush Majumdar
Pratyush Majumdar
 
SQL.......................................pdf
SQL.......................................pdfSQL.......................................pdf
SQL.......................................pdf
rajeswaria21
 
My sql technical reference manual
My sql technical reference manualMy sql technical reference manual
My sql technical reference manual
Mir Majid
 
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptxSQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
SabrinaShanta2
 
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptxSQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
SaiMiryala1
 
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptxSQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
BhupendraShahi6
 
My sql 5.7-upcoming-changes-v2
My sql 5.7-upcoming-changes-v2My sql 5.7-upcoming-changes-v2
My sql 5.7-upcoming-changes-v2
Morgan Tocker
 
Data Base Management 1 Database Management.pptx
Data Base Management 1 Database Management.pptxData Base Management 1 Database Management.pptx
Data Base Management 1 Database Management.pptx
PreeTVithule1
 
Mysql Datadictionary
Mysql DatadictionaryMysql Datadictionary
Mysql Datadictionary
rootuser
 
Copy Of Mysql Datadictionary
Copy Of Mysql DatadictionaryCopy Of Mysql Datadictionary
Copy Of Mysql Datadictionary
Golak Sarangi
 
Ad

Bt0075, rdbms and my sql

  • 1. Dear students get fully solved assignments Send your semester & Specialization name to our mail id : “ [email protected] ” 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 : “ [email protected] ” or Call us at : 08263069601