Sunday, June 18, 2017

Data Analytics courses in NY

COURSE DESCRIPTION:

This unique comprehensive course provides solid knowledge in Data Analysis and Statistical Software. Through a combination of lectures and exercises, students will learn the key techniques and approaches necessary to be an effective Data Analyst.
Students will learn fundamentals of Data Analysis with Python programming, advanced Excel techniques and VBA macros, basics of SQL Server Databases In the end of the course students will polish their knowledge practicing Data Analysis projects.

COURSE CONTENT:

1. Statistics for Business. Overview – students will review basic concepts and terminology in Statistics, including: Mean, Mode, Range, Standard Deviation, Normal Distribution, T-Distribution, Hypothesis Testing, Chi Square Test, A-B Testing etc.
 
2. Python Programming Fundamentals – the module includes following topics: Basic Data Types (Basic Data Types, Variables, Operators, Functions and Modules), Compound Data Types (Lists, Strings,  Sets, Dictionaries), Flow control (Conditional expressions, Loops, Iterators), Working with files, Working with functions, OOP Concepts, Benefits of Standard Library.

3. Data Analysis and Visualization with Python – module provides solid fundamentals of Data Analysis and Data Visualization using Python Libraries: Numpy, Pandas and Seaborn. Students will learn Machine Learning (Linear Regression, Logic Regression etc) and Data Visualization with Histograms, Kernel Density Plots, Box and Violin Plots, Clustered Matrices, Regression Plots etc.

4. Advanced Excel Techniques – in this module students will learn Excel advanced techniques, including Math Functions, Logical Functions, Statistical Functions, Lookup, Sort/Filter Data, Pivot Tables and Pivot Charts, Data Analysis Tools etc.

5. VBA Programming Fundamentals – this module provides VBA Programming fundamentals, including VBA Sub Procedures, VBA Function Procedures, Excel Objects, and using Macros. VBA is simple but powerful scripting language that will help to analyze data, work with objects and develop automated procedures.

6. Microsoft Access. Overview – this module student reviews fundamental functions of Microsoft Access, such as Tables and Datasheets, Lookups, Forms, Reporting etc.

7. Introduction to SQL Server Databases – this module provides students with the understanding of database concepts and the essentials of relational database with the SQL language. Through a series of hands-on activities students will learn data selection and manipulation using multi-vendor compliant SQL syntax and writing simple queries. The module includses: data types, table structure, essential SQL commands, retrieving data, queries, group functions, data manipulation, control transactions etc.

8. Data Visualization with R – in this module students learn fundamental, intermediate and some advanced techniques for Data Visualization and Business Intelligence. The module starts with the following topics: using the R interface/paradigm to create data visualizations, creating basic calculations (arithmetic, custom aggregations/ratios, date math, and quick table calculations), building Dashboards to share visualizations. After this module students will know how to build some advanced chart types and visualization, complex calculations to manipulate data, use statistical techniques to analyze data, implement advanced geographic mapping techniques and visualizations of non-geographic data, prep data for analysis, combine data sources using data blending.

9. Data Analysis Projects Workshop – at the end of the course students will polish their knowledge practicing Data Analysis and Data Visualization with Excel, Access, Python and R.

180 instructor-led class hours, plus labs

Prerequisites:
Basics of Statistics and Excel. Related education or work experience is a plus.


CREATING RECORD MACROS
Recording a Macro
Running a Macro
Running a Macro from the Macros Dialog Box
Creating a Short-cut key to run a macro
Running a Macro with a Shortcut key
Assigning a Macro to a Menu or Toolbar
Editing a Macro with Visual Basic
VISUAL BASIC EDITOR
Objects
Methods
Properties
Programming Tools
The Menu Bar
THE PROJECT EXPLORER
Using the Project Explorer
USING CONSTANTS
Excel Constants
Variable Constants
EXCEL OBJECTS
Objects, Properties and Methods
Getting & Setting Properties
Calling Methods
Passing Arguments
Singular Objects & Collections of Objects
USING VISUAL BASIC FUNCTIONS
InputBox Function
MsgBox Function
Using a Set Statement
BUILDING FORMULAR CONTROL STRUCTURES
If Then Janision Structures
Logical Operators
Select Case Janision Structures
Case Else
Comparison Operators with Select Case Structure
For Loops
Do Loops
While...Wend Statement
RUNNING CODE
Run mode and Design mode
Running Code from the development environment
Running Code from the host application
THE PROPERTIES WINDOW
Changing a Property
VARIABLES
Dimensioning a variable
Using variables in routines
Object Variables
USERFORMS
Designing & Creating Forms
Working with Controls
Creating Custom Dialog Boxes
Userform Properties Methods & Events
ADVANCED VBA PROGRAMMING TECHNIQUES
Developing Excel Utilities with VBA
Error Handling
Using In-Built Excel Features in VBA
Working with Pivot Tables
Working with Charts
Understanding Excel's Events
Interacting with Other Applications
Creating and Using Add-Ins
DEVELOPING APPLICATIONS
Working with the Ribbon
Working with Shortcut Menus
Providing Help for Your Applications
Developing User Oriented Applications
EVENT HANDLING
VBA Editing & Debugging
Auto Macros
Error Handling


Saturday, June 17, 2017

VBA Consultancy in NYC


Importing csv:
http://www.homeandlearn.org/open_a_text_file_in_vba.html

Charts:
http://www.homeandlearn.org/vba_charts_sheets.html

List of Files:
https://trumpexcel.com/list-of-file-names-from-a-folder-in-excel/



Excel VBA Course Lesson 1: Introduction to VBA and Recording Macros
 Lesson 2: The VB Editor
Lesson 3: Writing VB Code - Introduction to Variables, Decision and Looping Controls Lesson
4: Graceful Error Handling Lesson
5: Excel Functions, User Defined Functions, and Workbook Events Lesson
6: Object Variables, Array Variables, Indefinite Loops Lesson
7: User Forms and Controls Lesson
8: Excel Resources

Vba (Visual Basic) Programming.
Custom Access Database Design And Development.
Spreadsheet Design And Editing.
We Can Build Your Solution In Excel, Access, Mssql, Mysql, Oracle, And More.
Output Reports In Almost Any Format. (Pdf , Excel, Word, Etc)
Automate Time-Consuming Process In Excel Or Access
With Macros And Vba (Visual Basic For Applications)
Routines, Saving You Hours Of Time Doing Labor Intensive
Tasks.


We Assist Small Businesses By Creating Solutions In Microsoft Excel And Access.
• Automate Reporting
• Write Macros To Improve Your Workflow
• Cleanup Outdated Data
• Create Custom Forms Or Surveys (For Internal Or External Use)
• Build Customer Relationship Management (Crm) Systems
• Build Databases

Over Five Years' Experience Creating Solutions For Companies Large And Small.

Successful Projects Include Building A Tracking Database For A Start-Up Drug-Testing Laboratory, Creating A Customer Relationship Management System For An Oil & Gas Services Company, And Developing A Custom Macro To Assist With The Collection Of Data And Automation Of Processes.

Key Words: Excel, Access, Word, Outlook, Vba, Sql, Programming, Programmer, Customized, Ms, Mso, Microsoft, Solutions, Graph, Chart, Module, Report, Designer, Design, Writing, Report Writing, Automate, Workbook, Worksheet, Database, Code, Function, Consultant, Free-Lance, Macro, Analysis, Query, Spreadsheet, Tool, Table, Crm, Customer Relationship Management

Do you need your business to run more efficiently?

I have been developing custom Microsoft Access datatbase and SQL Server database applications in and around the New York area for over 15 years. From small businesses to Not For Profit Organizations to large corporations, my work has saved my client's time and money. I have done work for such companies as ABC, among others. I have experience in the following fields: Accounting, CRM Systems, Hedge Funds, Trading Systems, Budgeting, Inventory, Medical Recordkeeping, and many other diversified experiences.

Many companies have their business spread out in different formats using different programs. I will combine your business into one program, thus making your business run more efficiently. A professionally developed client server Access application can save your company time and money.

For most small and medium projects, Access provides all the tools and facilitates rapid development. Many times companies try to develop these type of applications in-house and run into multiple problems. I can take a project that was started and complete it in a timely fashion. I can develop applications from scratch, or upgrade existing applications, or convert a current program into Access.

My applications are solidly coded using object-oriented VBA techniques, DAO, ADO, ODBC, etc. not a collection of macros. This includes installation of the program and I will provide training and documentation if requested.

My work will save your company time and money and that is the bottom line. Also include a brief description of your project.

EXCEL FOCUSED
*** Automatic emails sent utilizing excel and outlook with the ability to send 100s at a time.
*** Macros to reduce daily processes spent on timely tasks.
*** Customized, automated, & streamlined reporting from small and large data sets

FINANCE FOCUSED
*** Financial modeling and analysis
*** Preparing business analysis and building valuation models to receive capital
*** Quoting and pricing tools that incorporate the use of forms

STUDENT/NEW JOB FOCUSED
*** Projects and assignment
*** Prove-It Tests
*** Tutoring

Tutoring/Learning/Sessions/Class on: Learn how to convert Excel/VBA to Google Sheets GAP (Google App Script)

Tutoring/Learning/Sessions/Class on: Learn how to convert Excel/VBA to Google Sheets GAP (Google App Script)

Seasoned tutor with excellent attitude to help new learners.
I am teaching a course on VBA to GAS conversions. Have experience in training tutoring mentoring 100s of students in analytics. Taken courses and developed courses for various online course providers.

Class 1 Topic of Teaching/tutoring:
Can you run macros on Google Sheets?
You can run macros in Google Sheets, as long as they're written in Google Apps Script, a JavaScript-based language built into Google Apps.
You cannot directly run Excel macros in Google Sheets. Although, You can rewrite the scripts in Google Apps Script.

Class 2: Application of GAS for Cloud Engineering & Changing of Investment Analytics

Class 3:
VBA vs Google Sheet programming and Automation - evolving landscape
Batch file / Command line - simultaneous editing of tens of thousands of files on Google drive
Access the spreadsheet and run macro on any device
Cloud compiling and parallel editing of data - Code to be compiled and parallely on the cloud
Scraping of Data from Internet (Like Factset S&P) and putting it on Cloud or using Google finance or apps
Automation and Volatility trading - changing volatility and portfolio balancing

Class 4: Custom class based on students requirement: Is your company switching from Office to Google Docs and you want to learn it?
Example topics for the tutoring session:
Customer 1: I had this (several) code I want to use in Google Spreadsheets but I have no idea on how to do that.
Customer 2: Had great problems when I wrote about starting my effort to convert a complex VBA project to Google Apps Script. Just wanted to emulate a few VBA functions and do a little tweaking.

Class 5: Summary, revision an samples:
Migrating Excel VBA Macros to Google Sheets/Apps Script: Data reshaping in columns and rows.
One of the things to remember when moving from the Excel to the Google Sheets is that:
Every interaction you make with a spreadsheet comes with a performance hit.
Also Apps Script has a 5-10 minute execution limit and other quotas to consider.

Email me at info@qcfinance.in

Thursday, June 15, 2017

office automation excel consultant

http://www.excelconsultant.net/solutions/


http://expertexcelconsultants.com/excel-vba-help/#.WUJoPDgzp1s


Small:

http://1-excel-automation-expert-usa.com/new-york-city-ny-ms-excel-automation.htm


Saturday, June 3, 2017

Calling Python from Java Script

Calling Python from Java Script

https://developers.google.com/apps-script/guides/rest/api

https://stackoverflow.com/questions/41048109/launching-python-script-from-google-apps-script?noredirect=1&lq=1


https://stackoverflow.com/questions/22926456/trigger-python-code-from-google-spreadsheets


Wednesday, May 31, 2017

GAS




Google developer - play with it while you made the changes

https://developers.google.com/analytics/solutions/articles/reporting-apps-script


https://zapier.com/learn/google-sheets/google-apps-script-tutorial/

Create contact with Google Sheets

Project to Make data tables from google sheets

https://ctrlq.org/code/20001-find-rows-in-spreadsheets

Friday, May 26, 2017

Partnership for providing Investment/Risk Analytics Service for your Investment Fund in New York

Looking for Small size Investment Funds in New York

Need of our Services: For any small size investment fund competing with global players where span of funds are generally very short, tactical victories becomes the most important for its survival. Your competition is global (and not local) with innovative companies in USA/EU/India and companies that are taking advantage of cost arbitrage. Automation of VBA-Excel-SQL-R-Python gives the Analyst more time to look at the market and focus on their core expertise. The new areas to contemplate are computations and compilations moving on cloud, storing unstructured large data, and parallel editing.
Moreover, at the time when attrition is a problem (all time low unemployment with toughest skill immigration environment) , a well documented automated setup not only saves time for the current person but also makes it easy to transfer knowledge to new persons joining the team or expansion.

Power of Open Source: Use of SQL/R/VBA/Python/Latex helps to have better data handling and analytic capability. These open source technologies and come with no extra software cost and we provide training to develop the source code to enhance it into the future. Batch files process / shell programming can help you automate lot of manual processes.

Access to Talent in India: Our team at Qcfinance.in will not only help you in automation but also help you to get access to the 2nd biggest place to find programming talent on the globe after the US. Most of the big analytics research team outside US is located in Bangalore / Bombay and there is always a possibility to get the very right talent / small team / partnership in India at substantially low cost. Wrongly implemented offshoring model often destroys value rather than saving cost.

Criticality of Time: For a small investment startup (2-10 people), the most valuable thing is TIME and hence we help you to tactically get the mundane task out of system, revisit the bottleneck, and hence you can then focus on the main product / strategy that makes your startup special.

Cost Benefit and Agility: We are comprehensively more affordable than any other Analytics consultancy due to our size and expenses. We can start with a very small project (duration & cost) and then move ahead if things get going. We are looking to focus only on one fund for a duration of 6-12m.

Technologies: MATLAB, R, VBA, SAS, Latex, SQL, Python, MongoDB others.

Almost all of the small funds have problems or opportunities for improvement in your workflow. Senior Analyst can fix them if they had the time or could train their employees with such expertise?

Here are the list of problems that we handle:
  • Unforeseen, undocumented, forgiven, hidden cost of issues like below are bringing your profits
  • Poorly-understood, legacy framework mostly into excel—dilapidated on unknown, unstated assumptions
  • Slow process of calculations
  • Un-scalable excel models that are difficult to maintain, improve, replicate or extend
  • Increased pressure, requiring added reporting and enhanced auditing
  • Lack of in-house research resources for SQL and R – both of which are open source (free – with no extra burden)
  • Over-reliance on external novel untested software from vendors
  • Not using the power of Google Cloud (other cloud) for sharing files and parallel editing models and documentations
  • Cloud based Google Spreadsheet programming

QCFin provide quant automation and programming solutions for removing tech hurdles, enabling financial and consulting companies to create more value in their systems and employers which increases the valuation for the firm.

Domain of Analysis: From simple office tasks like automation of excel to more complex tasks like Monte Carlo simulations


About us:  QcFinance.in India is a vibrant startup and we are a small team (of three) working on Financial Analytics and have been in operation for over four years with a vast library of training videos, code and experience in Investment Projects and Automation. We have presence in NY and India making us aware of deficiencies, strengths and arbitrages that exist. We are looking for a right partner to form a tactical joint venture 6m-12m.
Team of Six: Two Senior Analyst (TBD), Shivgan Joshi (NYC), Ankit Virakta (NYC), Piyush L (Indore, India), Arpit Soni (Indore, India), other contractors based out of Indore, India and NY..
Bandwidth (per week): 40-80 hours onsite at NYC, 40-250 hours Indore, India. We commit to only one fund at one time for a time ranging from 6-18 months.
Pricing: 6-12 month Service Agreement.

Yours Sincerely,
Piyush L
International Business Development in New York
Qcfinance.in, India
piyush@qcfinance.in

Wednesday, May 17, 2017

Tactical Partnership for providing Investment/Risk Analytics Service for your Company in New York

Tactical Partnership for providing Investment/Risk Analytics Service for your Company in New York

We are looking for New York clients / companies and looking to build up our presence.

Need: For any global investment fund / startup competing with global players, tactical victories becomes the most important area of value creation for the startup. Your competition is global (and not local) with innovative companies in USA/EU/India and companies that are taking advantage of cost arbitrage. Automation of VBA-Excel-SQL-R-Python gives the Analyst more time to look at the market and focus on their core expertise.
At the time when attrition is a problem, a well documented setup not only saves time for the current person but also makes it easy to transfer knowledge to new persons joining the team.

Power of Open Source: Use of SQL/R/VBA/Python/Latex helps to have better data handling and analytic capability. These open source technologies and come with no extra software cost and we provide training to develop the source code to enhance it into the future.

About us:  QcFinance.in India is a startup and we are a small team (of three) working on Financial Analytics and have been in operation for over four years with a vast library of training videos, code and experience in Investment Projects and Automation. We have presence in NY and India making us aware of deficiencies, strengths and arbitrages that exist.
 
Access to India: Our team at Qcfinance.in will not only help you in automation but also our team at IIR also helps you to get access to the 2nd biggest place to find programming talent on the globe. Most of the big research team outside US is located in Bangalore / Bombay and there is always a possibility to get the very right talent / small team / partnership in India at substantially low cost.

Criticality of Time: For a small investment startup (5-20 people), the most valuable thing is timing and hence we help you to tactically get the mundane task out of system, revisit the bottleneck, and hence you can then focus on the main product / strategy that makes your startup special.
 
Cost Benefit and Agility: We are comprehensively more affordable than any other Analytics consultancy due to our size and expenses. We can start with a very small project (duration & cost) and then move ahead if things get going.

Technologies: MATLAB, R, VBA, SAS, Latex, SQL, Python, MongoDB others.
How Qcfinance.in work with new startups:
How many times have you seen problems or opportunities for improvement in your workflow and promised to fix them if you only had the time or if you only could train your employees with such expertise?

  • Unforeseen, undocumented, forgiven, hidden cost of issues like below are bringing your profits
  • Poorly-understood, legacy framework mostly into excel—dilapidated on unknown, unstated assumptions
  • Slow process of calculations
  • Un-scalable excel models that are difficult to maintain, improve, replicate or extend
  • Increased pressure, requiring added reporting and enhanced auditing
  • Lack of in-house research resources for SQL and R – both of which are open source (free – with no extra burden)
  • Over-reliance on external novel untested software from vendors
  • Not using the power of Google Cloud (other cloud) for sharing files and parallel editing models and documentations

QCFin provide quant automation and programming solutions for removing tech hurdles, enabling financial and consulting companies to create more value in their systems and employers which increases the valuation for the firm.

Domain of Analysis: From simple office tasks like automation of excel to more complex tasks like Monte Carlo simulations
 
Yours Sincerely,
Piyush L
International Business Development
Qcfinance.in and IndoIsraelResearch.com
India

Friday, April 14, 2017

VBA Excel Classes in New York


Instructor led onsite VBA Class offers Excel classes in NYC for beginners, advanced Excel training, and Excel VBA training courses. Email or Call VBA Class to learn more about Excel.

VBA Consultant New York

Email us at new_york@Qcfinance.in / (929) 356-5046

We offer onsite lessons in NY and have tutors who are working with our team to be available in New York City, including Manhattan and also uptown.

VBA Class with no Prerequisites
We also offer a VBA Class online …
Excel Visual Basic Applications Class objectives:
Macros: Strengths and Weaknesses
How to Debug and Fix Macros, How to Handle Errors when they come
How to Utilize Variables and Arrays
How to Write Programs With the Visual Basic Editor
How to Use If/Then and For/Next Conditional Control Structures to Loop from Row to Row and Sheet to Sheet and Make Decisions
How to Call Excel Functions and Write New Functions
How to Create User Forms and Call Excel Dialogs
Helpful Resources And Much More

VBA Private Training

VBA Private Training We recognize that many clients have one-time projects for which they need specific assistance. Excel Training NYC offers private VBA training upon request. Hourly rates start at $30 (mixed of online and on location). More hours would qualify for a discount! These are mixed rates for onsite and online mix in New York / Manhattan areas.

Class Tags:
New York excel
New York visual basic
Union Square classes
Manhattan classes

We Serving New York and surrounding area.

A part of classes is taken onsite at a location in New York, a part online with the help of offshore team, and most of assignments are executed on your own system.

Locations that you are request are:
Mid Town, New York
Lower Mahatten, New York City
East Village New York City
Garment District in New York City

Offerings: I might help you to outsource some of the automation, programming and analytical tasks to Qcfinance India (I am one of the co-founders of the company since 2012). QCFinance helps startups with limited resource to be more efficient by providing solution aimed to enhancing valuations of small companies (5-20). Since I am in NYC, I will make sure that you are completely satisfied, and since I was a part of the team I know the team in India very well. In India, I have worked in Captives and 3rd Party service providers for various banks like: Deutsche bank (Index quant team), Wells Fargo (CIB), XL Catlin Investments (New York team).

Demo Pricing: You may even outsource a very small pilot project / training assistance @ $30-50/hour to start with! With mix of training and project outsourcing, you can make your employees more productive, also the automation of mundane task will enhance the value of your startup! All top investment banks and companies today have their offices in India hence India has become an important place to do business more than ever.

I have a strong belief that once you understand more about the Indian outsourcing industry you will have a better chance of using it to add value to your company.

How Qcfinance.in work with small companies:

How many times have you seen problems or opportunities for improvement in your workflow and promised to fix them if you only had the time or if you only could train your employees with such expertise?

Unforeseen, undocumented, forgiven, hidden cost of issues like below are bringing your valuations down:
Poorly-understood, legacy framework mostly into excel--dilapidated on unknown, unstated assumptions
Slow process of calculations
Un-scalable excel models that are difficult to maintain, improve, replicate or extend
Increased pressure, requiring added reporting and enhanced auditing
Lack of in-house research resources for SQL and R -- both of which are open source (free -- with no extra burden)
Over-reliance on external novel untested software from vendors

QCFin provide quant automation and programming solutions for removing tech hurdles, enabling financial and consulting companies to create more value in their systems and employers which increases the valuation for the firm.

Technologies: MATLAB, R, VBA, SAS, Latex, SQL others.

Analysis: From simple office tasks like automation of excel and latex reports to more complex tasks like Monte carlo simulations

Sample course:
LEVEL 1: EXCEL FUNCTIONS
1.1: INTRODUCTION
1.2: WORKSHEET FUNCTIONS
1.3: MATH/LOOKUP FUNCTIONS
1.4: COMPOUNDING
1.5: INTEREST RATES
1.6: DISCOUNT FACTORS
1.7: BOND PRICING
1.8: OFFSET
1.9: PIVOT TABLES
1.10: HOMEWORK PREP

LEVEL 2: VBA BASICS
2.1: SUBS/FUNCTIONS
2.2: VARIABLES
2.3: VECTORS
2.4: LOOPS
2.5: BOND PRICING
2.6: STATEMENTS
2.7: LINEAR INTERPOLATION
2.8: LINEAR INTERPOLATION - CODE
2.9: FORWARD RATE CURVE
2.10: FORWARD RATE CURVE – CODE
2.11: HOMEWORK PREP

LEVEL 3: OPTION PRICING
3.1: OPTION PAYOFF MODEL
3.2: BINOMIAL ASSET PRICING MODEL
3.3: BINOMIAL ASSET PRICING MODEL - CODE
3.4: BLACK SCHOLES

3.5: HOMEWORK PREP
LEVEL 4: CLASSES
4.1: CELL VS RANGE
4.2: USER DATA TYPES
4.3: COLLECTIONS
4.4 CLASSES
4.5: PORTFOLIO ANALYSIS
4.6: VALUE AT RISK
4.7: HOMEWORK PREP

LEVEL 5: DATA STRUCTURING
5.1: SELECTION
5.2: CHARTS
5.3: FILE MANIPULATION
5.4: USERFORMS
5.5: PIVOT TABLES - CODE
5.6: SQL IN VBA
5.8: INTERVIEW TIPS

5.9: CASE STUDY 



https://youtu.be/1Rk6FmpqVk0

https://youtu.be/z-EuWqEWVH8

http://www.tutoringhelp.org/tutors/NY/New-York/357241


Importing csv:
http://www.homeandlearn.org/open_a_text_file_in_vba.html

Charts:
http://www.homeandlearn.org/vba_charts_sheets.html

List of Files:
https://trumpexcel.com/list-of-file-names-from-a-folder-in-excel/

Workbook play:
https://analysistabs.com/excel-vba/open-close-existing-workbook/

Option Explicit:
https://wellsr.com/vba/excel/vba-option-explicit/

Screen Updating:
https://stackoverflow.com/questions/38122480/application-screenupdating-in-subroutine-called-within-subroutine

Run when worksheet is activated:
https://ccm.net/faq/5675-excel-run-a-macro-when-opening-a-sheet

Workbook open then activate:
https://www.mrexcel.com/forum/excel-questions/39172-auto-run-macro-when-open-worksheet.html



Saturday, May 28, 2016

Complexity and Recursion

Complexity and Recursion



Complexity of Algorithms - how to find out how it is log



Table to calculate - which complexity



If there is a power: n^2




Logic of what? Chapters of logic.




Thursday, April 21, 2016

Advanced Topics in SQL - SQL tutor / class in NYC New York Manhattan

SQL tutor / class in NYC New York Manhattan
Basic Topics:
Executing a Simple Query
Working with Functions
Organizing Data
Retrieving Data from Multiple Tables using Joins
Presenting Query Results
Querying Using Subqueries
Manipulating Table Data
Views
Indexing
Transactions
Decision
Format
Stored Procedures
Automation


Converting numbers to dates using timestamps. - this is topic of Orcale SQL, but I guess I will get something related to SQL Server.

Exceptions, error handling in the code
http://logicalread.solarwinds.com/sql-server-exception-handling-try-catch-throw-mc03/#.Vxj1I_l97IU
http://blog.sqlauthority.com/2007/04/11/sql-server-2005-explanation-of-trycatch-and-error-handling/

Handling duplicates

Date functions
http://www.w3schools.com/sql/sql_dates.asp
https://technet.microsoft.com/en-us/library/aa258265(v=sql.80).aspx
https://msdn.microsoft.com/en-us/library/ms186724.aspx

Intercept, except, union, union all - the differences between them

Inline Table-Valued Functions
https://technet.microsoft.com/en-us/library/ms189294(v=sql.105).aspx
https://www.youtube.com/watch?v=hs4mReAzESc

Recursive Queries,
This is done using CTE - where we will keep doing some recursion until we are done

APPLY Operator,



Offset Window

TOP and OFFSET-FETCH;


http://dbadiaries.com/new-t-sql-features-in-sql-server-2012-offset-and-fetch

Data Modification; Working with Date and Time;
http://sqlmag.com/t-sql/t-sql-classic-date-functions

Questions on Date:
http://www.sql-server-helper.com/faq/dates-p01.aspx
Many interesting questions are listed on:
http://stackoverflow.com/questions/tagged/sql-date-functions

Programmable Objects, Transactions and Concurrency, Exception Handling); In-Memory OLTP.

Along the course you will learn how to use T-SQL to solve practical problems such as:

Relational Division, Missing and Existing Ranges (Gaps and Islands),

Separating Elements, Pivoting and Unpivoting, Ranking and Offset, Running Totals, Moving

Averages, YTD, Custom Aggregations, Dynamic Analysis of Grouping Sets, TOP and

OFFSET-FETCH Problems,

Paging,

Data De-Duplication,

Handling Sequences,

Merging Data,

Treatment of Temporal Intervals (Intersection, Max Concurrent, Packing),

Dynamic Filtering,

Migrating On-Disk to Memory Optimized Data,

Internals and index tuning,

including coverage of Column store data, index access methods, temporary

tables,

set vs. cursors,
http://stackoverflow.com/questions/24168/why-are-relational-set-based-queries-better-than-cursors

Cursors enable manipulation of whole result sets at once. In this scenario, a cursor enables the rows in a result set to be processed sequentially. In SQL procedures, a cursor makes it possible to define a result set (a set of data rows) and perform complex logic on a row by row basis.

query tuning using query.

Triggers

HIERARCHYID datatype
https://www.simple-talk.com/blogs/2012/04/24/hierarchical-queries-with-common-table-expressions/

New York
New York city
Manhattan
SQL Tutor Trainer



Advanced SQL Topics

Functions, Stored Procedures, Packages
Pivoting data: CASE & PIVOT syntax
Hierarchical Queries
Cursors: Implicit and Explicit
Triggers
Dynamic SQL
Materialized Views
Query Optimization: Indexes
Query Optimization: Explain Plans
Query Optimization: Profiling
Data Modelling: Normal Forms, 1 through 3
Data Modelling: Primary & Foreign Keys
Data Modelling: Table Constraints
Data Modelling: Link/Corrollary Tables
Full Text Searching
XML
Isolation Levels
Entity Relationship Diagrams (ERDs), Logical and Physical
Transactions: COMMIT, ROLLBACK, Error Handling

Sunday, April 3, 2016

Dynamic SQL

Dynamic SQL




Example from AdventureWorks:
http://www.sqlusa.com/bestpractices/dynamicsql/
http://sqlusa.com/bestpractices/training/scripts/dynamicsql/
https://www.mssqltips.com/sqlservertip/1160/execute-dynamic-sql-commands-in-sql-server/
http://stackoverflow.com/questions/2588013/dynamic-sql-to-query-an-adventureworks-table
http://www.sqlteam.com/article/using-dynamic-sql-in-stored-procedures
http://oakdome.com/programming/SQL_DynamicSQL_sp_executesql.php
http://www.kodyaz.com/articles/t-sql-pivot-tables-in-sql-server-tutorial-with-examples.aspx
https://www.brentozar.com/archive/2013/11/filtered-indexes-and-dynamic-sql/

Dynamic SQL and Procedures:
https://www.youtube.com/watch?v=MiAwOoelu9k

SQl Server Dynamic SQL:
https://www.youtube.com/watch?v=jS3kpNavKM8

Dynamic SQL / Adhoc SQL (6 min short video):
https://www.youtube.com/watch?v=aRr6q4V0sXY

Table names would vary at run time and schema would vary at runtime:
https://www.youtube.com/watch?v=n3odG4bl4LE

Advanced SQL

Advanced SQL consist of new queries in SQL

There is over 100 videos and interview questions on: https://www.youtube.com/user/kudvenkat

i want to master of joins, paritition, views, trigger, dynamicswql

what database do you practice?
functions, proc, in oracle pl sql
i have both oracle sql and ms server 2008

try 2 question for today
1.
find the 2nd highest salary of employees table

2. list employees alongwith their manager in employees table

this was asked in interview with me in the currentjo

3. find information of those employees whose salary is greater than average salary of their respective departments
after that query that I sent you
it returns 1st row of each join no matter how many matches are there
if in two tables you only want to join first row and no other row
you need to use row_number, partition by and subquery
this question is trending now in interviews



select * from employees x, (select DEPARTMENT_ID,avg(salary) avg_salary from employees group by department_id) y where x.department_id=y.department_id and x.salary>y.avg_salary;
this is query to compare salary of each employee against avg salary of department and display only those with highest salary

can you write query to select max salary for each department?
using cte
WITH cteRowNum AS ( SELECT DeptID, EmpName, Salary, DENSE_RANK() OVER(PARTITION BY DeptID ORDER BY Salary DESC) AS RowNum FROM EmpDetails ) SELECT DeptID, EmpName, Salary FROM cteRowNum WHERE RowNum = 1;

These analytical functions are known as window function in sql server

CTE:
http://sql-beginner.blogspot.co.il/2012/09/difference-between-cte-and-sub-query.html
https://technet.microsoft.com/en-us/library/ms190766(v=sql.105).aspx

https://en.wikipedia.org/wiki/Hierarchical_and_recursive_queries_in_SQL
https://technet.microsoft.com/en-us/library/ms186243%28v=sql.105%29.aspx?f=255&MSPPError=-2147217396
https://www.youtube.com/playlist?list=PL08903FB7ACA1C2FB
http://docs.oracle.com/cd/E11882_01/server.112/e41084/statements_10002.htm#i2077142
dynamic sql

Saturday, March 19, 2016

R code for Breaking X/Y axis

# http://stackoverflow.com/questions/19612348/break-x-axis-in-r
# http://www.statmethods.net/advgraphs/axes.html
# http://www.inside-r.org/packages/cran/plotrix/docs/axis.break


# Example 1
x <- c(9.45, 8.78, 0.93, 0.47, 0.24, 0.12)
y <- c(10.72, 10.56, 10.35, 10.10, 9.13, 6.72)
z <- c(7.578, 7.456, 6.956, 6.712, 4.832, 3.345)
plot(x, y, col='blue', pch=16, xlab= 'x', ylab='y, z')
points(x, z, col='red', pch=17)
library(plotrix)
axis.break(1,2,style="slash")



#Break X axis

xgap <- ifelse(x > 8, x-6, x)
#Possibly you'd want to check if there are values between 2 and 8.
plot(xgap, y, col='blue', pch=16, xlab= 'x', ylab='y, z', xaxt="n")
points(xgap, z, col='red', pch=17)
xat <- pretty(xgap)
xat <- xat[xat!=2]
xlab <- ifelse(xat>2, xat+6, xat)
axis(1,at=xat, labels=xlab)
library(plotrix)
axis.break(1,2,style="slash")


library(plotrix)
par(bty="n") # deleting the box
gap.plot(x,y, gap=c(2,7.5), gap.axis="x", pch=16,
         col="blue", ylim=range(c(y,z)),
         xtics=c(0:3,8:10), xticlab=c(0:3,8:10))

gap.plot(x,z, gap=c(2,7.5), gap.axis="x", pch=17,
         col="red", ylim=range(c(y,z)), add=TRUE); axis(2)

abline(v=seq(1.99,2.09,.001), col="white")  # hiding vertical lines
axis.break(1,2,style="slash")  



# Break Y Axis

ygap <- ifelse(y > 8, y-6, y)
#Possibly you'd want to check if there are values between 2 and 8.
plot(ygap, x, col='blue', pch=16, xlab= 'x', ylab='y, z', yaxt="n")
points(ygap, z, col='red', pch=17)
yat <- pretty(ygap)
yat <- yat[yat!=2]
ylab <- ifelse(yat>2, yat+6, yat)
axis(2,at=yat, labels=ylab)
library(plotrix)
axis.break(2,2,style="slash")



Tuesday, March 15, 2016

OLAP Cubes in SQL Server for Adventure Works

OLAP Cubes in SQL Server for Adventure Works





References:
https://techpunch.wordpress.com/2008/09/08/sql-server-2008-how-to-build-and-deploy-adventureworks-olap-cubes/

https://www.youtube.com/watch?v=ctUiHZHr-5M

To install Other Databases check out
https://www.youtube.com/watch?v=iKVbx5IeUvQ

Saturday, March 12, 2016

Importing HTML file in Excel using VBA

This proc opens HTML files in excel, copy it into the sheet and then close the html without saving.
This ways you can import data from various html files into excel.
This can be modified to import values from other format like XML also.
This is a although very mundane way but VBA 6 is very old, VBA.NET might have something better.

For learning more VBA skills please check out our courses at Qcfinance.in

Sub Import()
Dim oExcel As Excel.Application
Dim ws, ws2, ws3 As Worksheet
Dim wb As Variant
Dim wkb As Variant

Set activewkb = ThisWorkbook
Path = ActiveWorkbook.Path

   Dim StrFile As String
    Path = ActiveWorkbook.Path
   ' MsgBox Path
    StrFile = Dir(Path & "\HTML\")
    Do While Len(StrFile) > 0
        MsgBox StrFile
        StrFile = Dir
   ' MsgBox StrFile
       
    Set wb = Workbooks.Open(Path & "\HTML\" & StrFile)
On Error Resume Next
'MsgBox ActiveWorkbook.Path

For Each sh In wb.Sheets
      sh.Copy after:=activewkb.Sheets(activewkb.Sheets.Count)
   Next sh

'MsgBox "The name of the active workbook is " & ActiveWorkbook.Name
wb.Close savechanges:=False

Loop
End Sub

Monday, March 7, 2016

Debug Command to print Files

Sub LoopThroughFiles2()
    Dim StrFile As String
    Path = ActiveWorkbook.Path
    StrFile = Dir(Path & "\")
    Do While Len(StrFile) > 0
        Debug.Print StrFile
        StrFile = Dir
    Loop
End Sub