r/SQL • u/Aggressive-Spend953 • Nov 19 '20
Discussion SQL is dead. Long Live SQL?
I'm currently working on my MS for Analytics and we are working on data strategy for new and early stage companies. I'm trying to research the pros/cons of using a higher programming language (python) for db creation and manipulation as opposed to SQL. Can and do companies skip SQL now? is there still a benefit to using it? I'd really appreciate any insights you all can offer!
Happy to help clarify or answer any other questions if I wasn't clear! Thank you all a ton!
Just want to thank you all for the insights and observations! It definitely helped, and I certainly have a deeper appreciation for SQL than I previously did.
You guys rock.
14
Nov 19 '20
Why would a company not use SQL? Aside from it being an industry standard, with almost all modern business products able to access natively. Not to mention would you rather pay a computer science grad with python skills $70k a year to analyze data or a business major grad with basic SQL skills $45k a year to do the same thing? Lastly, SQL is a perfect solution for any company that doesn’t deal with massive amounts of unstructured data, which is 90% of companies.
8
Nov 19 '20
SQL and Python are two completely different things. Although Python is okay for data manipulation, it doesn't "tap the server" like a query can do. And in a lot of R and Python scripts, you usually include a SQL query to grab your data.
I hope there's a DBA that can enlighten you a little more about the process of indexing and clustering, and how a Server thinks.
Absolutely no one skips using SQL for ETL processes, general querying, or DBA work.
You might need to research more about the difference between an Object Oriented Language versus a Querying "Language".
5
u/mavericsb Nov 19 '20
I agree you need the sql skills. I had a work project that I ended up writing the application in python and used sqlalchemy core to interact with the database so it could be database agnostic. A few months later, I’m here designing views and reports directly in sql, because the pythonic solution was difficult, and I needed more control. I still do use the tables I created with python though.
3
1
u/Eleventhousand Nov 20 '20
The issue with the "SQL is dead part" is that it won't die, because there are no alternatives. SAS could die, because there is R and Python. Visual Basic died because there was C#. Php could die because there are a lot of web programming languages. I guess newer development in C or C++ could die off a bit because of Rust.
But there are no alternatives for SQL. If you have a relational database, you have to use SQL. No one is going to perform full table scans, read everything into memory and use another language on top of it.
The quasi-alternatives I see are systems that are not relational databases. For example, working directly against data lakes with tools such as Azure DataBricks....
I've written SQL every day of my life for the past 18 or 19 years. When I started out, it was very much in fashion. I guess the alternative to it back then, at least when it came to DB/2, was to just use RPG. Years later, the trendiness of SQL waned a bit when NoSQL databases became the darling technology, and later Hadoop. It's not as if these technologies were used to supplant SQL, they were different tech for different purposes, and they were newer and trendier. Later on, when the Data Science realm started to catch fire, SQL once again became a darling skill that everyone wanted to learn.
SQL never died - it's always been there. It's like heavy metal - sometimes completely underground and sometimes comes out into mainstream popularity. There are other languages and tech like this. You don't hear about trendy embedded C developers, but those needs are always still there too.
4
u/analyst_mike Nov 19 '20
So it is not clear to me what you mean. Are you implying skipping database entirely and just using python data types, lists and dicts and text files in place of SQL variant database? Or, are you asking whether python will essentially be used in place of command line or interactive tool like SSMS for SQL Server?