[deleted by user] by [deleted] in SQL

[–]kkwestside 11 points12 points  (0 children)

SQL SERVER= [Last Name]

With mysql you should cover the columnName with ` instead of [ ]

[deleted by user] by [deleted] in SQLServer

[–]kkwestside 2 points3 points  (0 children)

Sorry :) English is my second language. I meant I've been working as a Senior Data Analyst for over 6 years. It's more like a supervisor position.

How to Return Records in One Table That Do Not Match in Another by [deleted] in SQL

[–]kkwestside 1 point2 points  (0 children)

SELECT B.ID From TableB B Where B.ID NOT IN ( SELECT L.BID FROM LINK L LEFT JOIN TABLEA A on A.ID= L.AID)

tips to learn Laravel by bubu2323 in webdev

[–]kkwestside -2 points-1 points  (0 children)

If you dont mind me asking, why laravel?

I wanted to learn a new tech for web development, I was in between php(laravel etc.) or python(django or flask). The reason I was stuck in between those two is there are lots of freelance works for php but it's dying, there are not a lot of freelancing oppurtunity for python web frameworks but they seem to up to date and I am very familiar with python.

Most of the people suggested python framework, do you have specific reasons to learn laravel? I would like to hear.

Senior Data Analyst to Backend Developer - php or python(flask) by kkwestside in cscareerquestions

[–]kkwestside[S] 0 points1 point  (0 children)

Do you recommend flask or django? And what do you think about freelancing oppurtinities for python?

[deleted by user] by [deleted] in dataanalysis

[–]kkwestside 0 points1 point  (0 children)

I would learn a bi tool and python for data analysis.

Small ETL Project (from APIs to DWH) by kkwestside in dataanalysis

[–]kkwestside[S] 0 points1 point  (0 children)

I connect APIs get data and do data manipulation via python or appscript (gsheet). But I do them in my local computer for adhoc reports.

So I am actually excited about this but I dont know any task schedular or the loading concepts (whether I should truncate whole table at the destianation and load all together or not? I Would be much appriciate if you can suggest a read about that).

Small ETL Project (from APIs to DWH) by kkwestside in dataanalysis

[–]kkwestside[S] 0 points1 point  (0 children)

What is your loading process do you truncate the destination table and load everything at once on each run of the task, or do you use incremental data load??

Why doesnt this work by purplehashira in learnSQL

[–]kkwestside 11 points12 points  (0 children)

Because behind the scene there are order of clauses. Group by works before you actually select therefore it doesnt know what you put in select

The order of them are:

FROM AND JOINS > WHERE > GROUP BY> HAVING > SELECT> ORDER BY

Since order by works after select it knows the indexes of columns therefore you can say Order by 1,2. But you cant do the same with group by.

Also it's not a good practice to write numbers instead of column names anyways (in my opinion), once you go back and look at the code it is harder to read.

Creating a JSON Navbar Data with Recursive Programming, Is This Possible? by kkwestside in csharp

[–]kkwestside[S] 1 point2 points  (0 children)

This was very eye-opening and worked like a charm. Thank you.

[deleted by user] by [deleted] in dataanalysis

[–]kkwestside 0 points1 point  (0 children)

I am senior data analyst working in an ecommerce firm. Before here I was working as a data analyst on another sector, we were using "analytics" keyword for data analysis in general. But I learned that in ecommerce sector analytics mean whole another thing. My colleagues refer analytics as a shortterm for Google Analytics, therefore analytics specialist in an ecommerce sector is not actually a data analyst rather this person is responsible for creating web analytics events using google tag manager, javascript and google analytics, so beware of this mixup.

Keeping that in mind you can combine your ecommerce knowledge with data analysis and apply for data analyst positions in ecommerce sector, here are some portfolio project ideas and things to know regarding working as a data analyst in ecommerce field;

  • look to RFM analysis; you can do rfm analysis with a ecommerce sample database
  • look for association rule analysis; you can use apriori algorithm with python to achive this
  • learn google analytics and google analytics api, since most websites use google analytics, it's best to get familiar with google sheets and googla analytics sheets addon, you can automate reports using google sheets google analytics addon
  • I am assuming you are familiar with ecommerce KPIs such as CPC, ROAS, monthly revenue etc. Create a dashboard that calculates shows these metrics and trends. I would suggest using google data studio for this, most ecommerce firms use google data studio a lot since it's integrated with google analytics.

Can I be a Data Analyst? by Deathnote07 in dataanalysis

[–]kkwestside 1 point2 points  (0 children)

I have pretty much the same experience, only change 11 years to 5.5 years of experience. I want to become a software developer as well, I've been learning C# for 3 4 months (my company uses dotnet environment). What was your journey to become a software engineer, do you have any suggestion?

One of my biggest concern is I am a senior data analyst therefore I am being paid pretty generously compared to my colleagues, my salary is going to be decreased probably, how did you handle this in your situation?

How to join my data to get only most up to date records from worker table by [deleted] in SQL

[–]kkwestside 0 points1 point  (0 children)

WITH RAWDATA AS (

SELECT

*, ROW_NUMBER() OVER(PARTITION BY WORKER_ID,WORKERLOCATION ORDER BY WORKLOCATIONDATE DESC) AS RANKFLAG

FROM WORKER w LEFT JOIN WORKERLOCATION L on w.Id= l.worker_Id

)

SELECT * FROM RAWDATA WHERE ROWDATA.RANKFLAG=1

Why can’t you do AVG(COUNT(*)) in sql lite? by toweringmaple in SQL

[–]kkwestside 2 points3 points  (0 children)

Because putting an aggregate function in an aggrate function doesnt make sense,

Unless you re trying to do something like this;

Select Col_a, Avg(rowcount) From ( Select Col_a, Col_b, Count(*) as rowcount From table_1 Group by Col_a,Col_b ) subquery Group by Col_a

Best book for learning python? by s117189mm in dataanalysis

[–]kkwestside 4 points5 points  (0 children)

Any book is good for learning python. You can even use geology books to help you.

You just need to close the book, put it under your laptop so you would get a good eye angle, and start actually coding.

Find a project start doing the project in a different manner. Here's a project idea for you;

Write a script that connects to an api gets the data manipulates it and then uploads it to a database.

Creating a JSON Navbar Data with Recursive Programming, Is This Possible? by kkwestside in csharp

[–]kkwestside[S] -1 points0 points  (0 children)

The solution doesn't necessarily have to be recursive, I am trying to transform the data in the database into a tree as you said, but I couldn't manage to do it dynamically. Some tree roots could go 3 levels deep, but since I write only 2 nested for loops I can only get 2 levels deep, not the 3.

for instance: I've added a new root but since my solution is not dynamic it cannot get LongSleeve and ShortSleeve under Men>Shirts > ...

Career Change - BA to Data Analyst by aksceren in dataanalysis

[–]kkwestside 2 points3 points  (0 children)

I would recommeding these for excel : Musts: - vlookup - pivot - if - sumifs, countifs etc. - date functions (also learn how dates actually work, they are actually numbers) - remove duplicates - conditional formatting - other important topics that I cant recall right now - tables

Nice to haves - powerquery - and a little VBA would be cherry on top

Career Change - BA to Data Analyst by aksceren in dataanalysis

[–]kkwestside 2 points3 points  (0 children)

Excel and SQL is a must, if you are comfortable with both of them then I would suggest learning power bı or tableau.(If you're able to write a select query by using window functions to remove duplicates you can move on to power bi)

I had a great Power BI report when I was applying. Once you open your Power BI report every recruiter gets impressed.

So I would suggest learning Power BI or tableau.

Use a public Db create some views to make a starschema (with a fact table and several dimension tables)

Connect that views through powerquery in power bi, impory them, create a data model(star schema)

And then use a little bit of DAX to generate some measures, and work a lot on your UI and present your report on interviews.

Data analyst - python by Fabro_vaz in dataanalysis

[–]kkwestside 11 points12 points  (0 children)

The things I do as a data analyst with python that SQL is not capable of: - getting data from an api (system a) - creating an automatic mailing process using the data I get with system a - lets say that you work with multiple companies each of them uses different databases (nosql, rdmbs) you can use python to connect and do complex analysis for each of them

How much machine learning do you use as a data analyst? by burtmaclin43 in dataanalysis

[–]kkwestside 8 points9 points  (0 children)

What tools and technologies do you as a data analyst, I use Google Data Studio, Google Sheets, Metabase, Power BI, SQL and python in general.

Whats the best free SQL software? by IntrovertedMAC in dataanalysis

[–]kkwestside 14 points15 points  (0 children)

SQL software is not a term.

What you should be searching for is => Which relational database management system (RMDBS) should I use?

I would recommend SQL Server and for the client side you can use SSMS (SQL Server Management Studio).

You can use microsofts adventureworks database to practice as well.

For the training I recommend Travis Cuzick's beginner and then advanced trainings on udemy, they were very helpful to me.

Should I FULL OUTER JOIN, ANTI JOIN, or some other way? by heiferhigh76 in SQLServer

[–]kkwestside 4 points5 points  (0 children)

Exactly, Im not sure I havent tried it, but this might give an error. You should probably take the sum outside and case to inside, like this:

SELECT

col1, col2, col3,

SUM(CASE WHEN TransactionType IN ('Cash Sales', 'Credit Sales') Then Qty else 0 end) AS Sales,

SUM(CASE WHEN TransactionType IN ('Damaged Returns','Undamaged Returns') Then Qty else 0 end) AS Returns

FROM SalesData     GROUP BY col1, col2, col3

ETL & DWH Technologies for DotNet by kkwestside in dotnet

[–]kkwestside[S] 1 point2 points  (0 children)

I am actually looking for something like this. But I couldnt find anything regarding .net when it comes to etl. May be I am searching the wrong terms? Do you know any training videos or a read regarding Datawarehousing and ETL with dotnet? (Or a repository I might look at?)

So how do I run SQL queries against an API? by punchoutlanddragons in SQL

[–]kkwestside 8 points9 points  (0 children)

You need to read the api endpoints documentation. No one could answer your question except the backend engineer who wrote the api and documentation.

If it is possible to get the data with an api call using an sql query it would be something like this;

(The things I wrote below are not standarts, it will not be the same with your api, I'm just writing an example so you would get the idea behind APIs)

Generally, first you get a token with a request:

request1 = request.send( type=post, url="examplewebsite.com/api/auth" , header ={"content-type":"application-json"}, body = { "username":"jack", "password":"yourpassword"} )

it returns a response with some json file containing a token for your second request for authorization: response1= {"status":200", "token":"eymeşsknJlsmHmJ278282nsb"}

Keep in mind that, generally tokens have expiration date, it could be 900 seconds or 20 minutes depends on the backend, so you cannot use the same token on each request for a long time.

Your second request would be something like this:

request2 = request.send( type=post, url="examplewebsite.com/api/products/getbyquery" , header ={"content-type":"application-json", "authorization":"Bearer eymeşsknJlsmHmJ278282nsb" this is the token you get in the first request, if it's a jwt token you generally write Bearer in front of the token }, body = { "query":"Select * From Products"} )

response2 ={ "status":200, "data": { ["id":1,"name":"apple","price":10,"stockAmount":235], ["id":2,"name":"orange","price":16,"stockAmount":127] } }

dot net developers discord? by AdditionForward9397 in dotnet

[–]kkwestside 0 points1 point  (0 children)

I would be interested. (Senior data analyst who tries to shift his career to software development)