Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8009817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:33:24+00:00 2026-06-04T18:33:24+00:00

Some of these might make little sense, but: Sql code interpreted or compiled (and

  • 0

Some of these might make little sense, but:

  1. Sql code interpreted or compiled (and to what)?
  2. What are joins translated into – I mean into some loops or what?
  3. Is algorithm complexity analysis applicable to a query, for example is it possible to write really bad select – exponential in time by number of rows selected? And if so how to analyze queries?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T18:33:25+00:00Added an answer on June 4, 2026 at 6:33 pm

    Well … quite general questions, so some very general answers

    1) Sql code interpreted or compiled (and to what)?

    SQL code is compiled in to execution plans.

    2) What are joins translated into – I mean into some loops or what?

    Depends on the join and the tables you’re joining (as far as i know). SQL Server has some join primitives (hash join, nested loop join), depending on the objects involved in your sql code the query optimizer tries to choose the best option.

    3) Not reallyIs algorithm complexity analysis applicable to a query, for example is it possible to write really bad select – exponential in time by number of rows selected? And if so how to analyze queries?

    Not really sure, what you mean by that. But there are cases where you can do really bad things, for example using

    SELECT TOP 1 col FROM Table ORDER BY col DESC
    

    on a table without an index on col to find the lagest value for col instead of

    SELECT MAX(col)  FROM Table
    

    You should get your hands on some/all of the books from the SQL Server internals series. They are really excellent an cover many things in great detail.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this question might sound silly to some but i just had to make sure.
I guess there might be some overlapping with previous SO questions, but I could
There might be similar questions but I still have some parts that I couldn't
I am trying to test some of these code here http://ha.ckers.org/xss.html on my code.
I have multiple pages being pulled together into a single page. Some of these
I'm using Eclipse in Ubuntu to edit PHP files. But, unfortunately, some of these
Getting these errors in some java code http://tutorials.jenkov.com/java-multithreaded-servers/multithreaded-server.html Exception in thread Thread-0 java.lang.RuntimeException: Cannot
I have some experience with programming, but I have very little experience when it
I'm making a simple app that makes some calculations. Some of these calculations are
I have a list of smart pointers. I want some of these smart pointers

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.