difficulty in making query for this in c# linq? [closed] - c#

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I have two records in my view in SQL
Now I have to show one record in my grid in which ledgername xxx xxx(1685) has minimum time in TimeIn and maximum time in TimeOut I have the following things..

With your brief question I will give a couple of pointers: GroupBy, Select, Min, Max

Related

How to invert logic on recursive calls? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 months ago.
Improve this question
How to invert logic on recursive calls?
I have this solve that counts the number of recursive calls. It's working properly. But how can I invert the logic to count number
In C# you can simply invert a statement using ! so it would be != instead of ==

Is there any alternative for string.Join() inside Select statement of IQueryable? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
SQL server does not understand C# inbuilt functions.
I would put skills as a collection instead and than join on presentation (Transform it in the controller or wherever you send it).
Sills = cjdb.jclsf.Select(i => i.sr.Name)

Validation Expression - C# [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I am trying to create a validation expression for a table name in the format of:
Name_TableName_YYYYMMDD
right now I have something like this:
^[a-zA-Z0-9][^_]+[a-zA-Z0-9][^_]+\d{8}
Number at the end can read 8 digits.
You could try this (very basic) expression
[a-zA-Z]+_[a-zA-Z]+_[0-9]{4}(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])
Link to a test

select top values from table [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I run the following query from C#:
SELECT TOP 100 colNamae FROM tableName
If the number of rows in the table is less that 100 - should I treat it in some way?(as catch exception etc)
While testing nothing happened - any error.
No , what you are doing is perfectly fine.

How To Compare two strings on Percentage Basis [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to compare two strings on percentage basis
like i have this
Player and wmplayer
Manager and IDMan
Mail and WINMail
Explorer and iexplorer
Any Help Please
You can probably make use of a library such as ScoreSharp. It is designed to do fuzzy matching to find similarities between strings.

Categories