#what is SQL
Explore tagged Tumblr posts
Text
What is SQL and Data Types ?
SQL (Structured Query Language) uses various data types to define the kind of data that can be stored in a database. Each SQL database management system (DBMS) may have its own variations, but here are the most common SQL data types categorized broadly:

Numeric Data Types INT (or INTEGER) Description: Used to store whole numbers. The typical range is -2,147,483,648 to 2,147,483,647. Example: sql CREATE TABLE Employees ( EmployeeID INT PRIMARY KEY, Age INT );
INSERT INTO Employees (EmployeeID, Age) VALUES (1, 30), (2, 25);
SELECT * FROM Employees WHERE Age > 28; DECIMAL (or NUMERIC) Description: Fixed-point numbers with a defined precision and scale (e.g., DECIMAL(10, 2) allows 10 digits total, with 2 after the decimal). Example: sql CREATE TABLE Products ( ProductID INT PRIMARY KEY, Price DECIMAL(10, 2) );
INSERT INTO Products (ProductID, Price) VALUES (1, 19.99), (2, 5.50);
SELECT * FROM Products WHERE Price < 10.00;
Character Data Types CHAR(n) Description: Fixed-length character string. If the input string is shorter than n, it will be padded with spaces. Example: sql CREATE TABLE Users ( UserID INT PRIMARY KEY, Username CHAR(10) );
INSERT INTO Users (UserID, Username) VALUES (1, 'Alice '), (2, 'Bob ');
SELECT * FROM Users; VARCHAR(n) Description: Variable-length character string that can store up to n characters. It does not pad with spaces. Example: sql CREATE TABLE Comments ( CommentID INT PRIMARY KEY, CommentText VARCHAR(255) );
INSERT INTO Comments (CommentID, CommentText) VALUES (1, 'Great product!'), (2, 'Not what I expected.');
SELECT * FROM Comments WHERE CommentText LIKE '%great%'; TEXT Description: Used for storing large amounts of text. The maximum length varies by DBMS. Example: sql CREATE TABLE Articles ( ArticleID INT PRIMARY KEY, Content TEXT );
INSERT INTO Articles (ArticleID, Content) VALUES (1, 'This is a long article content…');
SELECT * FROM Articles WHERE ArticleID = 1;
Date and Time Data Types DATE Description: Stores date values in the format YYYY-MM-DD. Example: sql CREATE TABLE Orders ( OrderID INT PRIMARY KEY, OrderDate DATE );
INSERT INTO Orders (OrderID, OrderDate) VALUES (1, '2024-01-15'), (2, '2024-02-10');
SELECT * FROM Orders WHERE OrderDate > '2024-01-01'; DATETIME Description: Combines date and time into one type, typically formatted as YYYY-MM-DD HH:MM:SS. Example: sql CREATE TABLE Appointments ( AppointmentID INT PRIMARY KEY, AppointmentTime DATETIME );
INSERT INTO Appointments (AppointmentID, AppointmentTime) VALUES (1, '2024-01-15 14:30:00');
SELECT * FROM Appointments WHERE AppointmentTime < NOW();
Binary Data Types BLOB (Binary Large Object) Description: Used to store large binary data, such as images or files. Example: sql Copy code CREATE TABLE Images ( ImageID INT PRIMARY KEY, ImageData BLOB );
-- Assume we have binary data for an image to insert -- INSERT INTO Images (ImageID, ImageData) VALUES (1, ?);
Boolean Data Type BOOLEAN Description: Stores TRUE or FALSE values. In some systems, this might be represented as TINYINT (0 for FALSE, 1 for TRUE). Example: sql CREATE TABLE Subscriptions ( SubscriptionID INT PRIMARY KEY, IsActive BOOLEAN );
INSERT INTO Subscriptions (SubscriptionID, IsActive) VALUES (1, TRUE), (2, FALSE);
SELECT * FROM Subscriptions WHERE IsActive = TRUE;
JSON and XML Data Types JSON Description: Stores JSON-formatted data, allowing for flexible data structures. Example: sql CREATE TABLE Users ( UserID INT PRIMARY KEY, UserInfo JSON );
INSERT INTO Users (UserID, UserInfo) VALUES (1, '{"name": "Alice", "age": 30}');
SELECT * FROM Users WHERE UserInfo->>'name' = 'Alice'; XML Description: Used for storing XML data, allowing for structured data storage. Example: sql CREATE TABLE Configurations ( ConfigID INT PRIMARY KEY, ConfigData XML );
INSERT INTO Configurations (ConfigID, ConfigData) VALUES (1, 'dark');
SELECT * FROM Configurations WHERE ConfigData.exist('/config/setting[@name="theme" and text()="dark"]') = 1;
Special Data Types ENUM Description: A string object with a value chosen from a list of permitted values. Example: sql CREATE TABLE Products ( ProductID INT PRIMARY KEY, Size ENUM('Small', 'Medium', 'Large') );
INSERT INTO Products (ProductID, Size) VALUES (1, 'Medium'), (2, 'Large');
SELECT * FROM Products WHERE Size = 'Medium'; SET Description: A string object that can have zero or more values, each of which must be chosen from a predefined list. Example: sql CREATE TABLE UserRoles ( UserID INT, Roles SET('Admin', 'Editor', 'Viewer') );
INSERT INTO UserRoles (UserID, Roles) VALUES (1, 'Admin,Editor'), (2, 'Viewer');
SELECT * FROM UserRoles WHERE FIND_IN_SET('Admin', Roles);
0 notes
Text
0 notes
Text
thinking about something @ocelly said a while back about writing and editing using different parts of the brain/serving different parts of the creative process- and fundamentally that mindset has been invaluable to me.
unfortunately, my brain has been coasting in editing/refining/polishing mode for a while now and I really need it to shift gears into creative/generative/productive mode. don't get me wrong, I genuinely love the editing process! I'd forgotten how much fun it can be to tease out the right words/meaning from something. I really would have been a very happy copyeditor in another universe.
But there's a whole laundry list of shit that I need done, not polished, and the problem with engaging Editing Brain is that it's hard to convince it that I can live without absolute perfection for a while. You can't polish an empty document, asshole! Get the words on the page first and then worry about the details later.
#most of what I need to do is like. stupid sql queries and form building.#I have a decade of experience at my job. I know those workflows in my sleep.#but I don't grok the processes at this new agency that well. and I don't feel confident in my ability to build the tools they need.#and the clock is ticking.#ugh.#nattering#[redacted work bullshit]#literacy was a mistake
12 notes
·
View notes
Text
me because i'm unemployed and crazy: “here's a worksheet where you can see what the rally people do before they started their career fulltime !”
only get my hands on info of like 50 people and also the numbers are heavily skewed towards finns and frenchies. because .. duhh
charts breakdown part ! (this is just a part where i yap)
unsurprisingly many drivers had a career right in motorsports or some motorsports-related jobs like mechanics/engineers (started driving at a very young age, too). but also there's quite a portion of them studied law or practiced law previous to making a career out of racing. maybe driving 125km/h is the perfect way of destressing after memorising 300 lines of civil law 🙏
now about co-drivers. most of them studied engineering or even had really successful corporate jobs. like jonne halttunen is literally a ceo and he prolly has enough money to provide for kalle for the rest of his life lol. besides that we have the sportsplayers who switched over after some injury (enni included) or the military people - tina thörner was one of the first women to make it into the swedish air force and guy frequelin was a tank driving instructor ! so basically co-drivers be having the craziest sidejobs ever…
now since i have the most data for finland and france: voilà! comparison chart ! (co-drivers included)
apparently finns (and drivers in nordic countries) can have a professional rallying career at a very early age - usually they do this with external funding or working as a developer/driving instructor for car manufacturers. meanwhile most frenchies dabbled in a lot of jobs or struggled financially before they can have a full-time seat.
#the collecting info part is ok. but why tf do i have to learn sql to make the chart#also during this i found out actually the old finns are not in hiding. they actually yap a lot in podcasts and interviews#we just need to listen to them. in finnish …#also ilkka is a principal of a national coaching program for codrivers lol. what do you think abt running for fia presidency ilkka …#random banter
22 notes
·
View notes
Text
I need AO3 search to allow window functions
#the search operators are helpful!#they're a good start!#but the sorting leaves something to be desired#just. let me write a sql query. that's what I really want here.#give me your database i promise i won't misuse it
15 notes
·
View notes
Text
Like the whole "DOOM runs on anything" meme is funny sure but technically you can run any program on any machine that has the processor, memory, and storage space for it. You may need to tweak some thing here and there to get it fully operational but really that's mostly what it hinges on.
I turned my windows netbook into a Debian server and then turned *that* into cloud-based storage I could dump and share and run any files I wanted to off my internet connection when I was in college by tying an external hard drive to it using an always-on connection. I still technically have the hard drive but I sold the netbook a long time ago. I also turned my MacBook from college into an always-on minecraft server for my college friends before Microsoft decided to give us actual multi-player support.
I also turned my MacBook into a windows OS emulator when I wanted to game because I got annoyed that Mac ports are usually poopoobad quality. So I would turn my MacBook on and then load up my windows os inside of the Mac os and then actually load the game.
Like yeah I went to school for programming but I actually learned how to do most of that as a kid because my dad had a computer that had no GUI, it was all command prompt and DOS. There are times when my current windows computers are annoying me because they won't do the thing I told them to do so I load up dos and then effectively go "I wasn't asking" at it.
#granted#I also taught myself html and css as a kid#and found javascript to be grating but otherwise understandable#sql and c++ was in high school when I went to tech school for programming#but anyway my point is that this stuff isn't super hard#the most annoying portion waa converting the netbook into a server#and only because its processor sucked so it really did not like the commands I was giving it#but it was also a 50 dollar laptop so like. deal. and do what I said.
43 notes
·
View notes
Text
I go by no pronouns but not as in my name, more so like my pronouns are an undefined variable in shell coding
#neo.txt#coding#programming#like. 5 people will get this#shell and unix in gen are a pretty niche kinda part of programming#with people more so sticking to python html java and the C family#and i guess sql? SQL counts as a language itself doesn't it?#I haven't really used it outside of making basic databases so I don't know fundamentally what it is and why it was created#anyways this was your fairly-rare-on-tumblr more-common-on-twitter tech ramble
14 notes
·
View notes
Text
It's all fun and games until you find a legit sql vulnerability while trying to study sql vulnerabilities
6 notes
·
View notes
Text
I love how everytime I'm like "I'm going to get so much work done today!" My focus and attention span decides it's going to go fuck off to God knows where
#crow rambles#i wanted to complete all my schoolwork so i could play veilguard tomorrow. alas...#i cant fucking focus!!! only time i can lock in is when its the last day im working on shit idk why#ill be doing schoolwork and something is mildly hard i just. loose focus. its so fucking annoying i am SICK OF IT#college is pissing me off i want to change my major but idk what to#my sql program keeps telling me the row count doesnt match which doesnt make any fucking sense because they most certainly DO match tyvm#I HATE WEB DESIGN WHY DID I IMPULSE PICK THIS MAJOR RAHHHH#everytime i even briefly enjoy it some new bullshit makes me want to blow up my laptop
7 notes
·
View notes
Text
i wish i could turn my 26 year old self back around and march them right back to the university disability assistance office with those dx papers and be like. here. this is why i failed my shit. id like to try again with supports in place. and if you're going to refuse be prepared to put it in writing.
#z.chat#god#my manager at the time even asked me once. after i mentioned id been trying to teach myself sql#'what are you even doing here?' as in i should be doing something brain and not breaking my back#at a job that was draining everything i had#i still don't have a good answer for you Ben but i appreciate that you looked out for me#also shout-out to the professor i had for the summer course on the history and culture of aotearoa and Hawaii#and thanks for letting me keep the book even though i dropped out
2 notes
·
View notes
Text

I'm applying to coding bootcamps (in my retraining efforts toward a stable career to fall back on whenever media industry is being an ass (aka their default state)) and this one is making me learn javascript as part of the application process, and I'm like just let me use my snake_case, you monsters ToT
#coding#javascript#meme#I just wanna learn python and SQL so I can make quiche as a data analyst ToT#C++ was nicer than this#what barbarians put all their code on the same line#just use semicolons like normal ppl#I want to be able to SEE MY CODE#javascript was not the coding language I was planning on being my next one wasn't even on the list but alas#the things I do for government funded free education that will sound more official than 'I learnt it on youtube trust me bro'
14 notes
·
View notes
Text
What Are the Qualifications for a Data Scientist?
In today's data-driven world, the role of a data scientist has become one of the most coveted career paths. With businesses relying on data for decision-making, understanding customer behavior, and improving products, the demand for skilled professionals who can analyze, interpret, and extract value from data is at an all-time high. If you're wondering what qualifications are needed to become a successful data scientist, how DataCouncil can help you get there, and why a data science course in Pune is a great option, this blog has the answers.
The Key Qualifications for a Data Scientist
To succeed as a data scientist, a mix of technical skills, education, and hands-on experience is essential. Here are the core qualifications required:
1. Educational Background
A strong foundation in mathematics, statistics, or computer science is typically expected. Most data scientists hold at least a bachelor’s degree in one of these fields, with many pursuing higher education such as a master's or a Ph.D. A data science course in Pune with DataCouncil can bridge this gap, offering the academic and practical knowledge required for a strong start in the industry.
2. Proficiency in Programming Languages
Programming is at the heart of data science. You need to be comfortable with languages like Python, R, and SQL, which are widely used for data analysis, machine learning, and database management. A comprehensive data science course in Pune will teach these programming skills from scratch, ensuring you become proficient in coding for data science tasks.
3. Understanding of Machine Learning
Data scientists must have a solid grasp of machine learning techniques and algorithms such as regression, clustering, and decision trees. By enrolling in a DataCouncil course, you'll learn how to implement machine learning models to analyze data and make predictions, an essential qualification for landing a data science job.
4. Data Wrangling Skills
Raw data is often messy and unstructured, and a good data scientist needs to be adept at cleaning and processing data before it can be analyzed. DataCouncil's data science course in Pune includes practical training in tools like Pandas and Numpy for effective data wrangling, helping you develop a strong skill set in this critical area.
5. Statistical Knowledge
Statistical analysis forms the backbone of data science. Knowledge of probability, hypothesis testing, and statistical modeling allows data scientists to draw meaningful insights from data. A structured data science course in Pune offers the theoretical and practical aspects of statistics required to excel.
6. Communication and Data Visualization Skills
Being able to explain your findings in a clear and concise manner is crucial. Data scientists often need to communicate with non-technical stakeholders, making tools like Tableau, Power BI, and Matplotlib essential for creating insightful visualizations. DataCouncil’s data science course in Pune includes modules on data visualization, which can help you present data in a way that’s easy to understand.
7. Domain Knowledge
Apart from technical skills, understanding the industry you work in is a major asset. Whether it’s healthcare, finance, or e-commerce, knowing how data applies within your industry will set you apart from the competition. DataCouncil's data science course in Pune is designed to offer case studies from multiple industries, helping students gain domain-specific insights.
Why Choose DataCouncil for a Data Science Course in Pune?
If you're looking to build a successful career as a data scientist, enrolling in a data science course in Pune with DataCouncil can be your first step toward reaching your goals. Here’s why DataCouncil is the ideal choice:
Comprehensive Curriculum: The course covers everything from the basics of data science to advanced machine learning techniques.
Hands-On Projects: You'll work on real-world projects that mimic the challenges faced by data scientists in various industries.
Experienced Faculty: Learn from industry professionals who have years of experience in data science and analytics.
100% Placement Support: DataCouncil provides job assistance to help you land a data science job in Pune or anywhere else, making it a great investment in your future.
Flexible Learning Options: With both weekday and weekend batches, DataCouncil ensures that you can learn at your own pace without compromising your current commitments.
Conclusion
Becoming a data scientist requires a combination of technical expertise, analytical skills, and industry knowledge. By enrolling in a data science course in Pune with DataCouncil, you can gain all the qualifications you need to thrive in this exciting field. Whether you're a fresher looking to start your career or a professional wanting to upskill, this course will equip you with the knowledge, skills, and practical experience to succeed as a data scientist.
Explore DataCouncil’s offerings today and take the first step toward unlocking a rewarding career in data science! Looking for the best data science course in Pune? DataCouncil offers comprehensive data science classes in Pune, designed to equip you with the skills to excel in this booming field. Our data science course in Pune covers everything from data analysis to machine learning, with competitive data science course fees in Pune. We provide job-oriented programs, making us the best institute for data science in Pune with placement support. Explore online data science training in Pune and take your career to new heights!
#In today's data-driven world#the role of a data scientist has become one of the most coveted career paths. With businesses relying on data for decision-making#understanding customer behavior#and improving products#the demand for skilled professionals who can analyze#interpret#and extract value from data is at an all-time high. If you're wondering what qualifications are needed to become a successful data scientis#how DataCouncil can help you get there#and why a data science course in Pune is a great option#this blog has the answers.#The Key Qualifications for a Data Scientist#To succeed as a data scientist#a mix of technical skills#education#and hands-on experience is essential. Here are the core qualifications required:#1. Educational Background#A strong foundation in mathematics#statistics#or computer science is typically expected. Most data scientists hold at least a bachelor’s degree in one of these fields#with many pursuing higher education such as a master's or a Ph.D. A data science course in Pune with DataCouncil can bridge this gap#offering the academic and practical knowledge required for a strong start in the industry.#2. Proficiency in Programming Languages#Programming is at the heart of data science. You need to be comfortable with languages like Python#R#and SQL#which are widely used for data analysis#machine learning#and database management. A comprehensive data science course in Pune will teach these programming skills from scratch#ensuring you become proficient in coding for data science tasks.#3. Understanding of Machine Learning
3 notes
·
View notes
Text
It's time to see how much sql I can learn in 24 hours.
#i've got an excel & sql skills test for a job tomorrow#so uuuhhh god knows what i'll need to know for that#gonna learn what I can but i don't think i have the energy to be that stressed about it#i mean how hard can it be?
2 notes
·
View notes
Text
your honor i’m just a girl
#<- did so much cs today#i don’t know what i’m doing#time to figure out how a sql server works#sigh. ..#musings from the beyond
7 notes
·
View notes
Text
#can you spot the odd one out?#it's js#what's js doing there#memes#meme#nerdy memes#nerd humour#programming#programming meme#js#javascript#sql
11 notes
·
View notes
Text
"learn to code" as advice is such bullshit. i have learned and used four and a half different coding languages through my career (html/css, java, python+sql, c++) and when i say used i mean I've built things in every one but the things that i actually used these languages for??? these earn zero money (with the caveat of until you have seniority in, e.g. front end web dev) what people really mean when they say learn coding is "learn to code. go into investment banking or finance startups." coding does not inherently have money in it. my absolute favourite part of coding? my peak enjoyment? was when i was developing for a visual coding language (you put it together like a flowchart, so say youre using a temperature sensor and you want it to log the temperature once every four hours, you can put the blocks together to make it do that. i was writing the code behind the blocks for new sensors) and i was earning £24k a year and that wasn't even part of my main role. it was an extra voluntary thing i was doing (i was working as a research assistant in biosensors - sort of - at a university, and was developing the visual code for students who didnt want to learn c++) like. i want people to learn to code, i want people to know how their electrical equipment works and how coding works, but dont believe the myth that there is inherently money in coding. the valuable things, the things people are passionate about are still vulnerable to the passion tax (if you want to do it you dont have to be paid for it). skills arent where the money is, money is where the money is.
#this is a bit incoherent but you know what i mean#i hated coding because it made my brain bend into shapes i didn't like but i did a Lot of coding and i was quite good at it#c++ for mechatronics (coding for mechanical devices usually things id built myself lol x) was my sweet spot#.jtxt#the half language is sql#you could count html and css as different languages. but css is like a framework for html so i dont jfbdhd. maybe thats another half#ive learned and used five languages where css and sql are both half languages jfbshs#also before anyone is like but you can use python for backend web dev and everyone needs that or blah blah databases#i knoooooow. create an extra 20000 database experts and you'll make that a minimum wage role. love it#anyway i used python for my research all the way through my research. from like machine code to image analysis software thatd take half a#day to run bc of the ridiculous volume of my image folders
11 notes
·
View notes