SQL Mongodb and Git
SQL Mongodb and Git
edu/ml/machine-learning-databases/00222/
https://archive.ics.uci.edu/ml/datasets/bank+marketing
show databases
create database if not exists ineuron
use ineuron
show tables
Describe bank_details
select * from bank_details where job = 'retired' and balance > 100
select * from bank_details where education = 'primary' and balance < 100
select * from bank_details where job = 'retired' and balance > 100
select * from bank_details where education = 'primary' and balance < 100
set sql_safe_updates = 0
update bank_details set balance = 0 where job = 'unknown'
DELIMITER &&
create procedure select_pre()
BEGIN
select * from bank_details;
END &&
call select_pre()
DELIMITER &&
create procedure select_pre_filter()
BEGIN
select * from bank_details where job = 'retired' and balance > 100;
END &&
call select_pre_filter()
DELIMITER &&
create procedure select_pre_filter2(IN var int ,IN var1 varchar(30))
BEGIN
select * from bank_details where job = var1 and balance > var;
END &&
Phesgo ",
"Tecentriq",
"Ocrevus",
"Polivy",
"rovalimab",
"Vabysmo"
--Product
var documents = [
{"_id":new ObjectId(),"name": "Phesgo", "is_active": true,"created_at":new
Date(),"updated_at": new Date()},
{"_id":new ObjectId(),"name": "Tecentriq", "is_active": true,"created_at":new
Date(),"updated_at": new Date()},
{"_id":new ObjectId(),"name": "Ocrevus", "is_active": true,"created_at":new
Date(),"updated_at": new Date()},
{"_id":new ObjectId(),"name": "Polivy", "is_active": true,"created_at":new
Date(),"updated_at": new Date()},
{"_id":new ObjectId(),"name": "rovalimab", "is_active": true,"created_at":new
Date(),"updated_at": new Date()},
{"_id":new ObjectId(),"name": "Vabysmo", "is_active": true,"created_at":new
Date(),"updated_at": new Date()}
];
--Content
var documents = [
{"name": "pharma communication", "is_active": true},
{"name": "scientific communication", "is_active": true},
{"name": "marketing communication", "is_active": true},
];
---Negative
var documents = [
{"name": "pharma communication", "is_active": true},
{"name": "scientific communication", "is_active": true},
{"name": "marketing communication", "is_active": true},
];
---Tone of Generation
var documents = [
{"name": "Professional", "is_active": true},
{"name": "Empathetic", "is_active": true},
{"name": "Informative", "is_active": true},
{"name": "Patient-centered", "is_active": true},
{"name": "Ethical", "is_active": true},
{"name": "Engaging", "is_active": true},
{"name": "Trustworthy", "is_active": true},
{"name": "Compassionate and Reassuring", "is_active": true},
];
roche\Scripts\activate
show tables
show tables
https://cloud.mongodb.com/v2/61067239fcc7ab33b6d8477e#clusters
client =
pymongo.MongoClient("mongodb+srv://ineuron:[email protected]/?
retryWrites=true&w=majority")
db = client.test
print(db)
import pymongo
client =
pymongo.MongoClient("mongodb+srv://ineuron:[email protected]/?
retryWrites=true&w=majority")
db = client.test
print(db)
d = {
"name":"sudhanshu",
"email" : "[email protected]",
"surname" : "kumar"
}
db1 = client['mongotest']
coll = db1['test']
coll.insert_one(d )
git
https://git-scm.com/downloads
https://github.com/sudh9931/testgitpush.git
/**
* Paste one or more documents here
*/
{
"_id": {
"$oid": "65cc8d9fcbff612b44a1af91"
},
"conversation_name": "aasf",
"conversation_start": "123456789",
"branding": "asf",
"use_case": "afaffa",
"session_id": "134",
"session_start": "123456789",
"agent_id": "69432",
"member_id": "1342",
"conversations_pkey": "69"
}
var documents = [
{"_id":new ObjectId(),"conversation_name": "Phesgo", "conversation_start":
Timestamp(),"use_case": "asdf","session_id":"134","session_start":
Timestamp(),"feedback_id":"70"},
{"_id":new ObjectId(),"name": "Tecentriq", "is_active": true,"created_at":new
Date(),"updated_at": new Date()},
{"_id":new ObjectId(),"name": "Ocrevus", "is_active": true,"created_at":new
Date(),"updated_at": new Date()},
{"_id":new ObjectId(),"name": "Polivy", "is_active": true,"created_at":new
Date(),"updated_at": new Date()},
{"_id":new ObjectId(),"name": "rovalimab", "is_active": true,"created_at":new
Date(),"updated_at": new Date()},
{"_id":new ObjectId(),"name": "Vabysmo", "is_active": true,"created_at":new
Date(),"updated_at": new Date()}
];