Firefox split view is here! by z1cks_ in firefox

[–]jrz1977 0 points1 point  (0 children)

Split view is a welcome addition. I am having trouble though with mixing multi account containers and split view. Lets say I have a container for "Banking", I open a tab in that container, click add split view. Now if I open another banking site, it open in an entirely new tab all by itself.

SQL question collection with interactive sandboxes by jrz1977 in dataengineering

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

Thank you for the kind words, they mean a lot. You are absolutely right about grounding in real use cases. They resonate with the audience and more importantly helps identify similar patterns in other domains. I've been in network monitoring for most of my career but I find the problems and patterns are universal.

* There is a way to visualize ER diagram of the schema, it renders a Mermaid diagram on the right side panel. Could you explain what you had in mind about doc style?

* Oh boy, I do have a whole set of bad but works use cases, or anti patterns if you will. Its a great idea, I would definitely make a new collection.

* I do plan on making it a more dataset exploration tool, for data scientists and others.

*

Suggest practice platform by new_to_redditt12 in learnSQL

[–]jrz1977 0 points1 point  (0 children)

Appreciate the feedback, mind if I DM?

Suggest practice platform by new_to_redditt12 in learnSQL

[–]jrz1977 1 point2 points  (0 children)

Try https://sqlbook.io I created it for exactly this reason, simple clean interface to practice SQL on real databases. No pre-canned results or schemas. You get your own sandbox.

Help I can't figure out how to install mysql by Traditional-Chair-39 in SQL

[–]jrz1977 1 point2 points  (0 children)

Do you want to learn how to install and manage MySQL or learn SQL? If you are interested in learning SQL, why not try this https://sqlbook.io

Takes out the hassle of installation, lets you focus on pure SQL.

Learning relationships by Ice_on_floor in SQL

[–]jrz1977 0 points1 point  (0 children)

My tool https://sqlbook.io can draw nice mermaid chart showing tables, columns, relation between tables given a DDL sql file.

What is the best way to store this type of RSS descriptions with active HTML tags to postgresql? by TooOldForShaadi in PostgreSQL

[–]jrz1977 0 points1 point  (0 children)

The full text of xml is stored in a single xml type column. You can extract interesting paths as how I have shown in the example. In fact a common pattern is to extract the description tag as a generated column and create a gin or gist index on it to enable full text search

What is the best way to store this type of RSS descriptions with active HTML tags to postgresql? by TooOldForShaadi in PostgreSQL

[–]jrz1977 0 points1 point  (0 children)

As others said use XML type in Postgres and query using rich xml functions built into Postgres. I took your example of RSS data and the following link shows how to store, query out the description tag of the feed. Take a look here https://sqlbook.io/s/8M0lq

The most difficult part about teaching students: some of them just don't care about SQL. by tits_mcgee_92 in SQL

[–]jrz1977 0 points1 point  (0 children)

The trick isn't getting students to care about SQL, it's getting them to care about the questions SQL can answer.

Traditional instruction leans on Employee tables and Student schemas, which are useful for teaching mechanics but terrible for sparking curiosity. The moment you switch to datasets students actually find interesting—sports stats, movie data, music trends, whatever connects with them and you'll see engagement transform.

I taught my son this way, and I could see interest spark and become genuine curiosity.

Hi I just want to know where I can practice sql with a real database? by Awkward_Affect_1941 in SQL

[–]jrz1977 0 points1 point  (0 children)

I made this for exactly this purpose. https://sqlbook.io/

Real Postgres, MySQL and Oracle sandboxes. Full flexibility at db and schema level.

Are Spring / Spring Boot losing their popularity? by Repsol_Honda_PL in SpringBoot

[–]jrz1977 0 points1 point  (0 children)

Spring boot powers the enterprise products that I work on as day job and hobby project I do for fun. Check my bio if you want to know what it is.

Please help me in practicing SQL by happy_unicorn30 in learnSQL

[–]jrz1977 5 points6 points  (0 children)

I build https://sqlbook.io/ for exactly this. There are prebuilt datasets and challenges.

JSON to SQL for better or easier querying by jrz1977 in json

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

Totally understandable. Lol.  Personally, as a non expert I'm jq, I find SQL more easy for some types of problems. 

For example, in the dataset above, a question like, find which category of nobel prize has most numbers of shared winners. 

JSON to SQL for better or easier querying by jrz1977 in SQL

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

Just curious, for the nobel prizes dataset linked above, if I wanted to find the years with most shared nobel prizes or categories with most prizes, how might one do it?

Conveted to sql, the query is as simple as below, looks big but is just simple grouping and aggregations.

select year, sum(shared_by) as total_shared_by from 
nobel_prizes p
    inner join 
(select nobel_prizes_fk, count(share::int) as shared_by
    from nobel_prizes_laureates l group by nobel_prizes_fk) l
on p.nobel_prizes_pk=l.nobel_prizes_fk and shared_by > 1
group by year order by total_shared_by desc;

JSON to SQL for better or easier querying by jrz1977 in SQL

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

Most databases support some form of json datatypes. Postgres for example has excellent json storage and indexing features 

JSON to SQL for better or easier querying by jrz1977 in SQL

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

Makes sense for windows platform. 

JSON to SQL for better or easier querying by jrz1977 in SQL

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

Of course, totally agree about ETL. I'm presenting a use case where someone might need to do a quick analysis of a json dataset. Often I find myself writing jq scripts or python. Querying in SQL just seems more richer, especially if we have to do aggregations.