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 74049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:17:50+00:00 2026-05-10T20:17:50+00:00

Which SQL statement is faster? SELECT TOP 2 c1.Price, c2.Price, ….. c49.Price, c50.Price FROM

  • 0

Which SQL statement is faster?

SELECT TOP 2 c1.Price, c2.Price, ..... c49.Price, c50.Price FROM Table1 AS c1, Table2 AS c2, ..... Table49 AS c49, Table50 AS c50 WHERE c1.Date = c2.Date AND c2.Date = c3.Date ..... c49.Date = c50.Date ORDER BY c1.ID DESC          OR  SELECT TOP 2 c1.Price, c2.Price, ..... c49.Price, c50.Price FROM (Table1 AS c1   INNER JOIN (Table2 AS c2      ........   INNER JOIN (Table49 AS c49    INNER JOIN Table50 AS c50   ON c49.Date = c50.Date)     ........  ON c2.FullDate__ = c3.FullDate__) ON c1.FullDate__ = c2.FullDate__) ORDER BY c1.ID DESC';    

Basically I need to extract 2 rows from each table to produce a summary periodically. Which statement is faster?

  • 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. 2026-05-10T20:17:51+00:00Added an answer on May 10, 2026 at 8:17 pm

    What is faster is not having 50 tables to start with. Joining 50 tables might be ok, but it’s a highly counter-intuitive design and probably not the most maintainable solution.

    Can you not store your data in rows (or columns) of a single (or fewer) tables rather than 50 tables??!

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

Sidebar

Related Questions

I have the following SQL statement which has a very bad performance: SELECT frmInstLastModifiedDate
How can i know which sql statement fired through trigger for select, insert, update
I have a sql which returns 3 records select emp_no from employees where dept_no='S3407'
I have an SQL statement which selects various data from a table in my
I have the following basic SQL statement which uses the PIVOT command. SELECT *
I need a SQL statement which fills the null values from the second column
I have a SQL SELECT statement which will not be known until runtime, which
Here is my SQL Statement which is not returning DISTINCT Thread Titles. SELECT DISTINCT
Hi guys I have a pl/sql statement which is supposed to fetch data from
I have a method which includes sql statement . it is public Boolean addRSS(string

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.