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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:34:22+00:00 2026-06-16T07:34:22+00:00

Alright i have a table which contains 2 bigint column. Example val1 3213 12312

  • 0

Alright i have a table which contains 2 bigint column.

Example

val1 3213 12312
val2 13232 32322
.
.
.

select val from table where 3232 between col1 and col2

I need to use between operator to select single row data.

Now i tried dataview but it failed. Dataview is not supporting between operator.

like this

dwIpAddress.RowFilter = string.Format("{0} between CodeVal_1 and CodeVal_2", irParameter);

So which approach i can use ?

There are like 200000 data records.

Tried this and it is super slow

    dwIpAddress.RowFilter = string.Format("CodeVal_1>= {0} and CodeVal_2<={0}", irParameter);

C# 4.0

  • 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-16T07:34:24+00:00Added an answer on June 16, 2026 at 7:34 am

    have you tried

        dwIpAddress.RowFilter = string.Format("CodeVal_1 <= {0} and {0} <= CodeVal_2", irParameter);
    

    Also, since you mentioned you are using C# 4.0, there is the Entity Framework, which you could use instead of DataView. Something you may want to look into.

    Also, if your DataView contains all records from your database table, then you may want to adjust your query so that it only gets the rows from the database that it needs, as opposed to returning all rows and then filtering in C# (if that’s what you are doing)

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

Sidebar

Related Questions

Alright let me explain my question with example We have a table that contains
Alright, I have a column named id which has 2000 ids in them, and
Alright, I have a table of tasks this table has a foreign key which
Alright let me explain my question with example We have 1 table This table
Alright, I have this program to sparse code in Newick Format, which extracts both
Alright, so I have a table outputting data from a MySQL table in a
Alright, so let's say I have a database with a table named COMPANY_PARAMETERS that
Alright. So I have a table called contacts. In this table I have people
I have a table called orders this table contains all the information we need.
Alright, here's the deal: I have a nice little 4Gb table called Mails on

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.