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
SUMMER 2015 , 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 youwant to 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
limitingprivileges foraspecifictable 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
PPT
PPTX
Cassandra
PPTX
Cassandra20141009
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
Cassandra20141009

Viewers also liked (20)

DOCX
Bc0055, tcp ip protocol suite
PPTX
SOLD Little Hayden Circle Hagerstown Md 21742
DOCX
2013 2014 eğitim ve öğretim yılı ingilizce dersi 6. sınıf 1.dönem 1.yazılı sı...
RTF
MB0041 FINANCIAL AND MANAGEMENT ACCOUNTING
DOCX
Mb0046 marketing management
PPTX
Präsentationen
PDF
Enchente 2008
DOCX
Smu mca sem 1 winter 2014 assignments
PPTX
Roof Top Water Proofing Using Yalahanka Tiles
PPTX
Period of Spiritual Instruction introduction to Eschatology
DOCX
Evidencias Herramientas
DOCX
Qm0013 quality management tools
DOCX
Bnt402 e-commerce
PPS
Dsms sua praia
DOCX
Sc0007 – category management in purchasing
PPS
Medicina
PPS
Surpresa maravilhosa
DOCX
Business communication
PPTX
Consultation Methods And Benefits
PDF
Patent Office India publishes industrial designs registered by indian patent ...
Bc0055, tcp ip protocol suite
SOLD Little Hayden Circle Hagerstown Md 21742
2013 2014 eğitim ve öğretim yılı ingilizce dersi 6. sınıf 1.dönem 1.yazılı sı...
MB0041 FINANCIAL AND MANAGEMENT ACCOUNTING
Mb0046 marketing management
Präsentationen
Enchente 2008
Smu mca sem 1 winter 2014 assignments
Roof Top Water Proofing Using Yalahanka Tiles
Period of Spiritual Instruction introduction to Eschatology
Evidencias Herramientas
Qm0013 quality management tools
Bnt402 e-commerce
Dsms sua praia
Sc0007 – category management in purchasing
Medicina
Surpresa maravilhosa
Business communication
Consultation Methods And Benefits
Patent Office India publishes industrial designs registered by indian patent ...
Ad

Similar to Bt0075, rdbms and my sql (20)

PDF
MySQL for beginners
PPTX
DATA BASE || INTRODUCTION OF DATABASE \\ SQL 2018
PPTX
Locking Down Your MySQL Database.pptx
PPTX
MySQL 8 -- A new beginning : Sunshine PHP/PHP UK (updated)
PDF
Advance MySQL Training by Pratyush Majumdar
PDF
SQL.......................................pdf
PPT
Module02
PPTX
Anything SQL: Lightning Talks
PDF
My sql 5.7-upcoming-changes-v2
DOCX
PPTX
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
PPTX
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
PDF
Mysql basics1
PPT
My sql1
PDF
OSMC 2008 | Monitoring MySQL by Geert Vanderkelen
PPTX
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
PDF
MySQL Idiosyncrasies That Bite
PPT
4. Data Manipulation.ppt
DOC
My sql technical reference manual
DOCX
Bt0066, database management systems
MySQL for beginners
DATA BASE || INTRODUCTION OF DATABASE \\ SQL 2018
Locking Down Your MySQL Database.pptx
MySQL 8 -- A new beginning : Sunshine PHP/PHP UK (updated)
Advance MySQL Training by Pratyush Majumdar
SQL.......................................pdf
Module02
Anything SQL: Lightning Talks
My sql 5.7-upcoming-changes-v2
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
Mysql basics1
My sql1
OSMC 2008 | Monitoring MySQL by Geert Vanderkelen
SQL-Tutorial.P1241112567Pczwq.powerpoint.pptx
MySQL Idiosyncrasies That Bite
4. Data Manipulation.ppt
My sql technical reference manual
Bt0066, database management systems
Ad

Recently uploaded (20)

PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
01-Introduction-to-Information-Management.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
RMMM.pdf make it easy to upload and study
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Classroom Observation Tools for Teachers
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Anesthesia in Laparoscopic Surgery in India
VCE English Exam - Section C Student Revision Booklet
01-Introduction-to-Information-Management.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Microbial diseases, their pathogenesis and prophylaxis
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Final Presentation General Medicine 03-08-2024.pptx
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Pharma ospi slides which help in ospi learning
Supply Chain Operations Speaking Notes -ICLT Program
Microbial disease of the cardiovascular and lymphatic systems
RMMM.pdf make it easy to upload and study
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Classroom Observation Tools for Teachers
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
2.FourierTransform-ShortQuestionswithAnswers.pdf

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 SUMMER 2015 , 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 youwant to 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 limitingprivileges foraspecifictable 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