SQL
datapandasadmin

Pyodbc Sqlalchemy Python 2 and 3 SQL Server Native Client 11.0

This is a sample code to use Python to connect to SQL Server Native Client. import sqlalchemy import pyodbc try: import urllib params = urllib.quote_plus(“DRIVER={SQL Server Native Client 11.0};SERVER=.\MSSQLSERVER_ENT;DATABASE=MagicDirect;Trusted_Connection=yes;”) engine = sqlalchemy.create_engine(‘mssql+pyodbc:///?odbc_connect=%s”‘ % params) results.to_sql(“clusterSegments”, engine, if_exists = ‘replace’)# except (RuntimeError, TypeError, NameError): print(‘Error in Conneccting’) print(RuntimeError, TypeError, NameError) finally: print(“connected”)

Read More »
Resources
datapandasadmin

SQLSaturday Manchester 15th July 2017 Event- My Experience

So I was at the SQLSaturday event in Manchester, United Kingdom on the 15th July 2017. According the SQLSaturday website, SQLSaturday is a training event for SQL Server professionals and those wanting to learn about SQL Server. Admittance to this event is free, and most costs are covered by donations and sponsorships.   I would,

Read More »
Data Warehousing
datapandasadmin

Drop Shipping Ecommerce Database ER Diagram and Conceptual Modeling

In this short article, we look at a sample ERD Diagram which is designed using ER-Assistant software (usage of this software is covered here: How To Use ER Assistant) after we have finished with the Conceptual Modeling. Hence in the first place, we have to gather some Data requirements. This involves business logic and requirements,

Read More »

Entity Relationship Diagram – ERD and Cardinality Symbols Simple Explanations

Understading cardinality notation and being able to explain them will go a long way in your database design and implementation. Here we look at a simple explanation of the symbols. (Credit to Data Warehousing for Business Intelligence by University of Colorado System on Coursera) Symbols in the above diagram and their meanings: – Oval: means 0 –

Read More »
Data Warehousing
datapandasadmin

Free Entity Relationship and Relational Schema Diagram Tool

ERDPLUS One tool I generally use when working on a projects, mini tasks and exploration is the ERDPLUS tool . It is quite simple and easy to use. It is a Free tool as well. Below are some diagrams I generated when i first got in contact with with tool. ERD DIAGRAMS: 1. 2.  A

Read More »

Creating Oracle PL/SQL Tables for Intercollegiate Athletic Database – Data Warehousing

Creating Oracle  tables for Intercollegiate Athletic Database. Part of Assignment one of Data Warehousing for Business Intelligence on Coursera –1 CREATE TABLE FACILITY CREATE TABLE FACILITY( FACNO VARCHAR(12), FACNAME VARCHAR(255) NOT NULL, CONSTRAINT PK_FAC PRIMARY KEY (FACNO) ); –2.REATE TABLE EMPLOYEE CREATE TABLE EMPLOYEE( EMPNO VARCHAR(12), EMPNAME VARCHAR(255) NOT NULL, DEPARTMENT VARCHAR(100) NOT NULL, EMAIL VARCHAR(50) NOT

Read More »

Create Oracle Database Table and Specify Some Constraints

The following are the main constraints which can be defined when you are creating a TABLE. I will be using the ORACLE DBMS . Primary key – The primary key of the table to be created. Foreign key – The primary key of some other table which is being referenced in this table to be

Read More »