Project 2
NOTE:
In my system not working MySQL for Excel.
I did some thing for challenge also.
Also uninstall and install many time in my system.
Also joined for Live Office Hours Session or Group Session many time.
Not getting solution for problem. So iam doing this thing.
Answer.1
create schema alumni;
Answer.2
right click on alumni schema -> Table Data import Wizard -> Give path of the file -> Next -> choose options : Create a
new table , select delete if exist -> next -> next.
Answer.3
use alumni;
table-1
desc college_a_hs;
## table-2
desc college_a_se;
## table-3
desc college_a_sj;
## table-4
desc college_b_hs;
## table-5
desc college_b_se;
## table-6
desc college_b_sj;
Answer.4
# table-1
import mysql.connector
mydb = mysql.connector.connect(
host = "localhost",
user = "root",
password = "9849",
database = "alumni")
mycursor = mydb.cursor()
mycursor.execute('SELECT * FROM college_a_hs')
for a in mycursor:
print(a)
# table-2
import mysql.connector
mydb = mysql.connector.connect(
host = "localhost",
user = "root",
password = "9849",
database = "alumni")
mycursor = mydb.cursor()
mycursor.execute('SELECT * FROM college_a_se')
for a in mycursor:
print(a)
# table-3
import mysql.connector
mydb = mysql.connector.connect(
host = "localhost",
user = "root",
password = "9849",
database = "alumni")
mycursor = mydb.cursor()
mycursor.execute('SELECT * FROM college_a_sj')
for a in mycursor:
print(a)
# table-4
import mysql.connector
mydb = mysql.connector.connect(
host = "localhost",
user = "root",
password = "9849",
database = "alumni")
mycursor = mydb.cursor()
mycursor.execute('SELECT * FROM college_b_hs')
for a in mycursor:
print(a)
# table-5
import mysql.connector
mydb = mysql.connector.connect(
host = "localhost",
user = "root",
password = "9849",
database = "alumni")
mycursor = mydb.cursor()
mycursor.execute('SELECT * FROM college_b_se')
for a in mycursor:
print(a)
# table-6
import mysql.connector
mydb = mysql.connector.connect(
host = "localhost",
user = "root",
password = "9849",
database = "alumni")
mycursor = mydb.cursor()
mycursor.execute('SELECT * FROM college_b_sj')
for a in mycursor:
print(a)
Answer.5
step1: Open Excel.
step2: Selecl Data.
step3: Click on Local connecctions.
step3: Select on Local instance MySQL80.
step4: Give the root Password.
step5: Click on ok.
step6: Click the Schema.
step7: Select the table college_a_hs, college_a_se, college_a_sj, college_b_hs, college_b_se, college_b_sj.
step8: Click on Import MySQL Data.
step9: That one popup in screen (choose columns to import).
step10: Select the Options what you need (For answer we need 1.Crete a pivot Table with the and 2.Add Summary).
step11: In Excel Sheet we can see two tables (1) for selecl table ans (2) for pivot table.
step12: Click on pivot table.
step13: That one popup in screen right hand side (Pivot Table Field List).
step14: Do changes for Column labels, Row labels and Values (In values labels do which function you need).
step15: Then save it.
Answer.6
create or replace view college_a_hs_v as select * from college_a_hs;
step1: Open Excel.
step2: Selecl Data.
step3: Click on Local connecctions.
step3: Select on Local instance MySQL80.
step4: Give the root Password.
step5: Click on ok.
step6: Click the Schema.
step7: Select the table college_a_hs, college_a_se, college_a_sj, college_b_hs, college_b_se, college_b_sj.
step8: Click on Import MySQL Data.
step9: That one popup in screen (choose columns to import).
step10: Select the Options what you need (For answer we need 1.Crete a pivot Table with the and 2.Add Summary).
step11: In Excel Sheet we can see two tables (1) for selecl table ans (2) for pivot table.
step12: Click on pivot table.(then click on pivot chart)
step13: That one popup in screen right hand side (Pivot Table Field List).
step14: Do changes for Column labels, Row labels and Values (In values labels do which function you need).
step15: Then save it.