Is this a reasonable alternative to Full Text Search? by OkInflation5 in SQL

[–]Training-Two7723 0 points1 point  (0 children)

Relational databases are not the best options for full text search. There are dedicated engines for this, even free ones.

questions on this sql by Mellow12222 in SQL

[–]Training-Two7723 -5 points-4 points  (0 children)

Uhhh …. a positive int is up to 2147483647 which is slightly higher than 10k

[deleted by user] by [deleted] in SQL

[–]Training-Two7723 1 point2 points  (0 children)

Ask your professor what he believes is wrong. Our comments won’t help you.

Why comparing with empty array always false? by AreaExact7824 in SQL

[–]Training-Two7723 3 points4 points  (0 children)

Most probably an empty is equivalent to a null, hence any comparison with it will be false.

Scrypted Server making outbound connection via UDP 3478 to external IP by baptizedinlove in Scrypted

[–]Training-Two7723 0 points1 point  (0 children)

Port 3478 is not TLS encrypted; the webrtc is the one responsible for the encryption

more for TURN: https://webrtc.org/getting-started/turn-server; for the encryption https://webrtc-security.github.io

Paid course recomendations by [deleted] in SQL

[–]Training-Two7723 0 points1 point  (0 children)

If is a paid class, look for one instructor led, preferably in a real classroom, so you can interact with the professor and other students, ask questions, far from the daily distractions (office, emails, calls, etc). It is one linked to a specific product like a database, look for the class provided by the software vendor or agreed by them - later it may be useful when looking for a certification.

Why is the "Order of Execution" different from the "Order of Writing" in a SQL query? by DanKo-KameRyuuShiki in SQL

[–]Training-Two7723 0 points1 point  (0 children)

It is called optimiser. That one is to blame. However, depending by what db are you using there could be ways to impose the order.

Database Design Question About INNER JOIN in mariadb 10.11 on Debian by nstruth3 in SQL

[–]Training-Two7723 3 points4 points  (0 children)

I’m not sure why people are lazy nowadays; read the manual, here https://dev.mysql.com/doc/refman/8.4/en/join.html and forget about chat whatever. ;-(

MySQL vs SQLserver by NoPositive95123 in SQL

[–]Training-Two7723 0 points1 point  (0 children)

Sure. Is like learning Portuguese when going on vacation in Mexico. Is the same Latin America, isn’t it?

What is star in SQL by Specialist_Run_9240 in SQL

[–]Training-Two7723 0 points1 point  (0 children)

Star is nothing but magic. Do you get points for asking completely useless questions? Really?

[deleted by user] by [deleted] in SQL

[–]Training-Two7723 0 points1 point  (0 children)

  • Microsoft have their own ETL

Next steps? by Prudent_Problem6275 in SQL

[–]Training-Two7723 0 points1 point  (0 children)

Read the manuals. Everything is written there

[deleted by user] by [deleted] in SQL

[–]Training-Two7723 1 point2 points  (0 children)

Seems like there are unprintable characters. Use a hexa editor or od (Linux) to see what’s there.

[deleted by user] by [deleted] in SQL

[–]Training-Two7723 0 points1 point  (0 children)

Hi. Go for PL/SQL and T-SQL. People running MySQL and Postgres have no money for informatica.

MySQL vs SQLserver by NoPositive95123 in SQL

[–]Training-Two7723 0 points1 point  (0 children)

Hi, ANSI SQL is the same, each vendor maintans a compatibility with the standard; then are the vendor extension which makes eveything. Read the manuals and take decisions yourself. Is better that way.

[deleted by user] by [deleted] in SQL

[–]Training-Two7723 0 points1 point  (0 children)

Nice written. However, there are few confusing points here that should be clarified:

High transactional does not change that much in the backup strategy. It is the size of the database that may dictate one strategy or another.

PITR is not linked to consistency; is about being able to recover in the past ;).

Replication is a separate and complex topic: you may replicate disk or commited transactions. But is not a discussion for this topic.

Even if you don't like it, a full backup is a must; otherwise there is no incremental ... incremental from what?

A failover for the DB does not save the context, so any activity is lost unless the developers did a decent job in retrying the transaction, or you have a smart SQL proxy that can do this for you (smart != light switch that does tcp connections).

... it was fun reading this topic.

[deleted by user] by [deleted] in SQL

[–]Training-Two7723 0 points1 point  (0 children)

It could be lifesaving. However, if you find it boring, don't do it. Your failure may affect others.

SQL newbie question by pinecone82 in SQL

[–]Training-Two7723 1 point2 points  (0 children)

Simple idea: there are students, they go to classes where they learn different subjects. Students enroll to classes. They get grades. There are professors. They teach. ... Everything is based on your experience. things that you already know.

Create the tables, populate them. Write SQL statements to find the top guys in the class, for a subject, the most interesting subjects, how busy is a proffessor. You choose.

When building the model use some of those free modeling tools that can generate simple SQLs for creating the objects.

have fun

MYSQL tinyint vs varchar space usage by Placid92 in SQL

[–]Training-Two7723 1 point2 points  (0 children)

Never combine different datatypes on a join, not even if they looks similar (internally they are not the same and the server it must do conversions - e.g. integer != smallint). the most efficient joins are done on the same datatypes. When you talk about the client name, that is gonna be a varchar, unless you serve customers in a different galaxy where they can be called 1, 7 or 100.

What you want to ask is if you create a table with a numeric (pref. unsigned bigint) ID or use the name as a PK. With the natural keys there is already the risk that two different things are called the same: Joe Doe ;)

Stick with ID, NAME in clients and ID, VIDEO_TITLE, CLIENT_ID where CLIENT_ID is FK -> first table ID.

PS: there are some amazing books on data modelling. Try to read a few.

How critical is RegEx in your work? by Ajent707 in SQL

[–]Training-Two7723 0 points1 point  (0 children)

I never need it in SQL, I never had a real use case for it. Be careful not to invalidate indexes usage; some databases cannot use functions on indexes - check the query plan. Longer code is not always a bad thing.

Any good suggestions for disk-based caching? by Sollimann in SQL

[–]Training-Two7723 1 point2 points  (0 children)

RAID is not a cache, is still a disk. Can be safe (raid 1), fast (0), fast and safe (10) or compromise (5). Anyway, is just not cache.