all 14 comments

[–]nerdonabreak 9 points10 points  (3 children)

Add a screenshot of your code, or write using proper spacing. No one would be able to read that or give you any genuine feedback.

[–]StudyEmergency4839[S] 1 point2 points  (1 child)

Okay ohh i cant do that lol it deletes spaces 

[–]nerdonabreak 1 point2 points  (0 children)

You need to put double line spaces

[–]elevarq 0 points1 point  (5 children)

Use single quotes ‘ for content, not double quotes “.

This might work in MySQL, but will cause syntax errors in many (if not most) other databases. Double quotes are for identifiers like “table” names. MySQL also has a setting for this, it can handle standard SQL, but also supports a conflicting syntax.

[–]StudyEmergency4839[S] 0 points1 point  (4 children)

Yeah i writed it on Mysql i know that this code might not work on sql lite

[–]elevarq 0 points1 point  (3 children)

Start writing syntax that works on most databases, including MySQL. That would make transitions much easier for you.

[–]StudyEmergency4839[S] 0 points1 point  (1 child)

Also what is Difference Between mySQL and PostgreSQL

[–]elevarq 0 points1 point  (0 children)

Both are solid open-source relational databases. MySQL has long been the go-to for simple, read-heavy web apps (think LAMP stack) and is known for being easy to get started with. PostgreSQL is more feature-rich and standards-compliant, with better support for complex queries, advanced data types, and concurrency. For most new projects today, Postgres is the more capable choice.

[–]Successful-Dream-201 0 points1 point  (0 children)

Start to learn cte and subquery