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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:13:42+00:00 2026-06-11T15:13:42+00:00

The word table has 2 fields: WORDID and LEMMA. This code shows all records

  • 0

The word table has 2 fields: WORDID and LEMMA. This code shows all records in the word table. But I want to show only certain records like SELECT * WORD WHERE WORDID=10. Can anyone suggest how I can achieve this?

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication4
{
    class Program
    {
        static void Main(string[] args)
        {
            ConsoleApplication4.DataSet1TableAdapters.wordTableAdapter kata = new DataSet1TableAdapters.wordTableAdapter();

            foreach (ConsoleApplication4.DataSet1.wordRow row in kata.GetData())
            {
              System.Console.WriteLine(row.lemma);
            }

         System.Console.ReadLine();
        }
    }
}
  • 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-11T15:13:43+00:00Added an answer on June 11, 2026 at 3:13 pm

    You may try this..

    foreach (ConsoleApplication4.DataSet1.wordRow row in kata.GetData())
    {
         if(row.wordid==10)
             System.Console.WriteLine(row.lemma);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table of 2 fields. Word and timestamp. Then i have this
Imagine I have a database with one table, this table has only one field
There's a table that has three fields: id, word, username And it currently has
This is my current query WHERE Keywords.Word = '$search' But this only works if
Take this table WORDS WORD Hello Aardvark Potato Dog Cat And this list: ('Hello',
I have an online dictionary. All inputs are saved in table id-word-unixtime. Now I
Say, using MySQL, if the movies table has 20,000 records, and each record has
The Product table has 700K records in it. The query: SELECT TOP 1 ID,
I have table in my database which has fields of ID,NAME,CONTEXT. I am showing
I have a pre-made Word Template that has a table. I would like to

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.