In a previous tutorial, we saw how a database and table can be created in mySQL. Here is how you can run this on a local machine with the mySQL Installer and mySQL Workbench. 1. Firstly, make sure you have […]
Continue reading »Category: SQL
psycopg2: Connect Python to PostgreSQL Database – Part II
In a previous tutorial, we looked at how to create a simple PostgreSQL database of temperature across different world cities. The PostgreSQL database was created through a Linux terminal, and the same was then connected to R to import data/commit […]
Continue reading »Create PostgreSQL Database In Linux And Connect To R – Part I
PostgreSQL is a commonly used database language for creating and managing large amounts of data effectively. Here, you will see how to: 1) create a PostgreSQL database using the Linux terminal 2) connect the PostgreSQL database to R using the […]
Continue reading »Python-SQL Interaction (MySQLdb): Azure ML Studio
The following tutorial illustrates how to use Microsoft Azure to create a database and execute SQL commands using Python. Specifically, this tutorial is divided into the following two segments: How to configure Azure to set up a storage account, SQL […]
Continue reading »MySQLdb: Connect Python and mySQL Databases Together
In a previous tutorial, we set up a financial database using a range of mySQL queries, and used such queries to create separate tables and discriminate among data in those tables. However, there are many occasions when a user needs […]
Continue reading »Import Data Types Into R
The below snippets of code illustrate how to import data into R from several different formats. Import data in CSV format mydata = read.csv(“C:/R/MGFinance.csv”) #read csv file mydata Import data in JSON format install.packages(“jsonlite”) library(jsonlite) data
Continue reading »mySQL Queries (Financial Asset Database)
The following is a hypothetical dataset of 20 securities with various financial variables for each. As a database language, mySQL allows us to select specific data as specified by the user, as well as conduct certain calculations on the data […]
Continue reading »