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

  • Home
  • SEARCH
  • 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 8932417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:19:01+00:00 2026-06-15T09:19:01+00:00

How do I select a particular row from sql table. Example if value of

  • 0

How do I select a particular row from sql table. Example if value of variable is 2, then select 2nd row from table?

Is there any function in VBS to determine how many rows are in the table?

  • 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-15T09:19:01+00:00Added an answer on June 15, 2026 at 9:19 am

    How do I select a particular row from sql table. Example if value of variable is 2, then select 2nd row from table?

    You can execute the following SQL, that uses the RANK() SQL Server function to always get the second row, for example, by ordering the records by id column in DESC order:

    SELECT * FROM 
    (
        SELECT *, RANK() OVER (ORDER BY id DESC) 'RowRank' FROM MyTable 
    ) AS A
    WHERE RowRank = 2
    

    Is there any function in VBS to determine how many rows are in the table?

    I am not sure if VBS has out-of-the-box function to get the number of rows in a table, but you can use a simple SQL query to find that out:

    SELECT COUNT(*) FROM MyTable
    

    This would return a value, but the query above that is selecting the second row would return a list of column values, as present in the table.

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

Sidebar

Related Questions

please, is this the correct syntax for copying a particular row from one table
Hi all I have a sql query SELECT FKid1, FKID2, a, b, c from
How do you use LINQ (C#) to select the value in a particular column
I'm trying to select a random 10% sampling from a small table. I thought
How to select the distinct row if the particular column have same record multiple
Given a SQL statement: select id from myTable where id = -1 How do
const char *sql = [[[NSString alloc] initWithFormat:@Select * from table1 where id = '%@'
Suppose that I have one column in SQL from a simple SELECT statement. How
I imported a table from sql using sqoop import using the command sqoop import.
I'm trying to select a particular material in the imported model (via Collada loader)

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.