Databases SQL Basics Finding the Data You Want Review & Practice with SQL Playgrounds

Juneau Lim
Juneau Lim
11,717 Points

What algorithm SQL uses?

I tried to Google but it was a bit vague. Is it a linear algorithm? If I have multiple conditions, does it going to be exponential or does it says linear?

And, If I need to use really complicated condition, Is there are a better way than just nesting in multiple lines? It doesn't seem like SQL has variable or function for queries, but Is there is any way to refactor it?

1 Answer

KRIS NIKOLAISEN
KRIS NIKOLAISEN
54,172 Points

This might be an interesting read for the db used at Treehouse.

millions of reasonable algorithms?

hmmm

Juneau Lim
Juneau Lim
11,717 Points

Does it mean that SQL chooses the most suitable algorithm in the situation? I have tried to read the document but I think I understand less than 20%.